copr-builder: improve prepare_base_image handling

This commit is contained in:
clime 2018-04-25 06:36:20 +02:00
parent b8e61c03bc
commit 1faf31fa4a
3 changed files with 7 additions and 6 deletions

View file

@ -41,8 +41,8 @@
- nova_cloud_vars.yml
vars:
# pass this options if you need to create new base image from snapshot
#prepare_base_image: True
# change this to True if you need to create new base image from snapshot
prepare_base_image: False
tasks:
- include: "provision_builder_tasks.yml"
@ -59,4 +59,4 @@
- glibc.i686
- nosync
- nosync.i686
when: prepare_base_image is defined
when: prepare_base_image

View file

@ -41,8 +41,8 @@
- nova_cloud_vars.yml
vars:
# pass this options if you need to create new base image from snapshot
#prepare_base_image: True
# change this to True if you need to create new base image from snapshot
prepare_base_image: False
tasks:
- include: "provision_builder_tasks.yml"

View file

@ -4,6 +4,7 @@
- name: put infra stg repos into yum.repos.d if staging
copy: src=files/dnf/infra-tags-stg.repo dest=/etc/yum.repos.d
when: network_name == "coprdev-net"
when: not prepare_base_image
- name: disable updates-testing
file:
@ -11,7 +12,7 @@
state: absent
- shell: dnf -y upgrade
when: prepare_base_image is defined
when: prepare_base_image
- name: set bigger timeout for yum
ini_file: dest=/etc/yum.conf section=main option=timeout value=1000