copr: distribute devel/production to spawn/terminate playbooks
This commit is contained in:
parent
9031eb5af2
commit
91825fa419
8 changed files with 23 additions and 4 deletions
|
@ -8,6 +8,7 @@
|
||||||
remote_user: root
|
remote_user: root
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
|
- vars.yml
|
||||||
- nova_cloud_vars.yml
|
- nova_cloud_vars.yml
|
||||||
vars:
|
vars:
|
||||||
prepare_base_image: False
|
prepare_base_image: False
|
||||||
|
|
|
@ -3,6 +3,9 @@
|
||||||
gather_facts: False
|
gather_facts: False
|
||||||
connection: local
|
connection: local
|
||||||
|
|
||||||
|
vars_files:
|
||||||
|
- vars.yml
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: spin machine with script
|
- name: spin machine with script
|
||||||
local_action: shell /bin/bash ./vm-aarch64-alloc
|
local_action: shell /bin/bash ./vm-aarch64-alloc
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
gather_facts: False
|
gather_facts: False
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
|
- vars.yml
|
||||||
- nova_cloud_vars.yml
|
- nova_cloud_vars.yml
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
|
@ -38,6 +39,7 @@
|
||||||
user: fedora
|
user: fedora
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
|
- vars.yml
|
||||||
- nova_cloud_vars.yml
|
- nova_cloud_vars.yml
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
gather_facts: False
|
gather_facts: False
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
|
- vars.yml
|
||||||
- nova_cloud_vars.yml
|
- nova_cloud_vars.yml
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
|
@ -38,6 +39,7 @@
|
||||||
user: fedora
|
user: fedora
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
|
- vars.yml
|
||||||
- nova_cloud_vars.yml
|
- nova_cloud_vars.yml
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
gather_facts: False
|
gather_facts: False
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
|
- vars.yml
|
||||||
- nova_cloud_vars.yml
|
- nova_cloud_vars.yml
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
|
@ -153,7 +153,12 @@
|
||||||
- provision_config
|
- provision_config
|
||||||
|
|
||||||
- name: put some files into the provision subdir
|
- name: put some files into the provision subdir
|
||||||
template: src="provision/nova_cloud_vars.yml" dest="/home/copr/provision/nova_cloud_vars.yml" owner=copr group=copr
|
template:
|
||||||
|
src: "provision/{{ item }}"
|
||||||
|
dest: "/var/lib/resallocserver/provision/{{ item }}"
|
||||||
|
with_items:
|
||||||
|
- vars.yml
|
||||||
|
- nova_cloud_vars.yml
|
||||||
tags:
|
tags:
|
||||||
- provision_config
|
- provision_config
|
||||||
|
|
||||||
|
|
|
@ -13,10 +13,13 @@
|
||||||
tags:
|
tags:
|
||||||
- provision_config
|
- provision_config
|
||||||
|
|
||||||
- name: resalloc, nova_cloud_vars
|
- name: resalloc, generate vars files
|
||||||
template:
|
template:
|
||||||
src: provision/nova_cloud_vars.yml
|
src: "provision/{{ item }}"
|
||||||
dest: /var/lib/resallocserver/provision/nova_cloud_vars.yml
|
dest: "/var/lib/resallocserver/provision/{{ item }}"
|
||||||
|
with_items:
|
||||||
|
- vars.yml
|
||||||
|
- nova_cloud_vars.yml
|
||||||
tags:
|
tags:
|
||||||
- provision_config
|
- provision_config
|
||||||
|
|
||||||
|
|
2
roles/copr/backend/templates/provision/vars.yml
Normal file
2
roles/copr/backend/templates/provision/vars.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
---
|
||||||
|
devel: {% if devel %}true{% else %}false{% endif %}
|
Loading…
Add table
Add a link
Reference in a new issue