copr builders: on F22 tell mock to use yum-deprecated
This commit is contained in:
parent
2234ac418f
commit
e5becd03b8
4 changed files with 10 additions and 5 deletions
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
- hosts: builder_temp_group
|
- hosts: builder_temp_group
|
||||||
user: root
|
user: root
|
||||||
gather_facts: False
|
gather_facts: True
|
||||||
vars:
|
vars:
|
||||||
- files: files/
|
- files: files/
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@
|
||||||
action: authorized_key user=mockbuilder key='{{ lookup('file', '/home/copr/provision/files/buildsys.pub') }}'
|
action: authorized_key user=mockbuilder key='{{ lookup('file', '/home/copr/provision/files/buildsys.pub') }}'
|
||||||
|
|
||||||
- name: put updated mock configs into /etc/mock
|
- name: put updated mock configs into /etc/mock
|
||||||
action: copy src={{ files }}/mock/{{ item }} dest=/etc/mock
|
action: template src={{ files }}/mock/{{ item }} dest=/etc/mock
|
||||||
with_items:
|
with_items:
|
||||||
- site-defaults.cfg
|
- site-defaults.cfg
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
- name: provision builder
|
- name: provision builder
|
||||||
hosts: builder_temp_group
|
hosts: builder_temp_group
|
||||||
gather_facts: False
|
gather_facts: True
|
||||||
sudo: True
|
sudo: True
|
||||||
user: fedora
|
user: fedora
|
||||||
|
|
||||||
|
|
|
@ -22,3 +22,7 @@ config_opts['plugin_conf']['tmpfs_opts']['required_ram_mb'] = 1024
|
||||||
config_opts['plugin_conf']['tmpfs_opts']['max_fs_size'] = '50g'
|
config_opts['plugin_conf']['tmpfs_opts']['max_fs_size'] = '50g'
|
||||||
config_opts['plugin_conf']['tmpfs_opts']['mode'] = '0755'
|
config_opts['plugin_conf']['tmpfs_opts']['mode'] = '0755'
|
||||||
config_opts['plugin_conf']['tmpfs_opts']['keep_mounted'] = False
|
config_opts['plugin_conf']['tmpfs_opts']['keep_mounted'] = False
|
||||||
|
|
||||||
|
{% if ansible_distribution == 'Fedora' and ansible_distribution_major_version|int > 21 %}
|
||||||
|
config_opts['yum_command'] = '/usr/bin/yum-deprecated'
|
||||||
|
{% endif %}
|
||||||
|
|
|
@ -3,9 +3,10 @@
|
||||||
yum: state=present pkg={{ item }}
|
yum: state=present pkg={{ item }}
|
||||||
with_items:
|
with_items:
|
||||||
- dnf
|
- dnf
|
||||||
|
- dnf-plugins-core
|
||||||
- mock
|
- mock
|
||||||
# - mock-lvm
|
# - mock-lvm
|
||||||
- createrepo
|
- createrepo_c
|
||||||
- yum-utils
|
- yum-utils
|
||||||
- pyliblzma
|
- pyliblzma
|
||||||
- rsync
|
- rsync
|
||||||
|
@ -27,7 +28,7 @@
|
||||||
- ca-certificates
|
- ca-certificates
|
||||||
|
|
||||||
- name: put updated mock configs into /etc/mock
|
- name: put updated mock configs into /etc/mock
|
||||||
copy: src=files/mock/{{ item }} dest=/etc/mock
|
template: src=files/mock/{{ item }} dest=/etc/mock
|
||||||
with_items:
|
with_items:
|
||||||
- site-defaults.cfg
|
- site-defaults.cfg
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue