This commit is contained in:
Miroslav Suchý 2015-05-14 17:31:08 +02:00
parent 77a51304e9
commit 74b02ea284
4 changed files with 8 additions and 26 deletions

View file

@ -6,7 +6,7 @@ copr_nova_tenant_id: "undefined_tenant_id"
copr_nova_tenant_name: "copr"
copr_nova_username: "copr"
copr_builder_image_name: "builder_base_image_2015_04_01"
copr_builder_image_name: "Fedora-Cloud-Base-20141203-21"
copr_builder_flavor_name: "m1.builder"
copr_builder_network_name: "copr-net"
copr_builder_key_name: "buildsys"

View file

@ -6,7 +6,7 @@ copr_nova_tenant_id: "566a072fb1694950998ad191fee3833b"
copr_nova_tenant_name: "coprdev"
copr_nova_username: "copr"
copr_builder_image_name: "builder_base_image_2015_04_01"
copr_builder_image_name: "Fedora-Cloud-Base-20141203-21"
copr_builder_flavor_name: "m1.builder"
copr_builder_network_name: "coprdev-net"
copr_builder_key_name: "buildsys"

View file

@ -6,7 +6,7 @@ config_opts['plugin_conf']['ccache_enable'] = False
config_opts['plugin_conf']['yum_cache_enable'] = True
config_opts['plugin_conf']['yum_cache_opts']['max_age_days'] = 150
config_opts['plugin_conf']['yum_cache_opts']['max_metadata_age_days'] = 150
config_opts['plugin_conf']['yum_cache_opts']['dir'] = %(cache_topdir)s/%(root)s/%(package_manager)s_cache/"
config_opts['plugin_conf']['yum_cache_opts']['dir'] = "%(cache_topdir)s/%(root)s/%(package_manager)s_cache/"
config_opts['plugin_conf']['yum_cache_opts']['target_dir'] = "/var/cache/%(package_manager)s/"
config_opts['plugin_conf']['root_cache_enable'] = False

View file

@ -8,8 +8,8 @@
yum: state=present pkg={{ item }}
with_items:
- dnf
- mock
- mock-lvm
# - mock
# - mock-lvm
- createrepo
- yum-utils
- pyliblzma
@ -19,6 +19,9 @@
- libselinux-python
- libsemanage-python
- get_url: url=https://kojipkgs.fedoraproject.org//packages/mock/1.2.9/1.fc21/noarch/mock-1.2.9-1.fc21.noarch.rpm dest=/tmp/
- yum: state=present name=/tmp/mock-1.2.9-1.fc21.noarch.rpm
- name: make sure newest rpm
# todo: replace with dnf after ansible 1.9 is available
yum: name={{ item }} state=latest
@ -26,7 +29,6 @@
- rpm
- glib2
- ca-certificates
- https://kojipkgs.fedoraproject.org//packages/mock/1.2.9/1.fc21/noarch/mock-1.2.9-1.fc21.noarch.rpm
- name: put updated mock configs into /etc/mock
copy: src=files/mock/{{ item }} dest=/etc/mock
@ -35,26 +37,6 @@
# ansible doesn't support simultaneously usage of async and with_* options
# it's not even planned for implementation, see https://github.com/ansible/ansible/issues/5841
#- name: prepare caches
# when: prepare_base_image is defined
# async: 3600
# command: mock -r {{ item }} --init
# with_items:
# - epel-5-i386
# - epel-5-x86_64
# - epel-6-i386
# - epel-6-x86_64
# - epel-7-x86_64
# - fedora-20-i386
# - fedora-20-x86_64
# - fedora-21-i386
# - fedora-21-x86_64
# - fedora-22-i386
# - fedora-22-x86_64
# - fedora-rawhide-i386
# - fedora-rawhide-x86_64
- name: prepare cache
when: prepare_base_image is defined
async: 3600