copr-be: add consolidated playbook for resalloc-aws-new
This commit is contained in:
parent
da96ddeeae
commit
07dc36c766
2 changed files with 20 additions and 0 deletions
19
roles/copr/backend/files/provision/builderpb-aws.yml
Normal file
19
roles/copr/backend/files/provision/builderpb-aws.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
- name: provision AWS builder
|
||||
hosts: all
|
||||
become: true
|
||||
user: fedora
|
||||
|
||||
vars_files:
|
||||
- vars.yml
|
||||
- aws_cloud_vars.yml
|
||||
|
||||
vars:
|
||||
ansible_python_interpreter: /usr/bin/python3
|
||||
|
||||
tasks:
|
||||
- include: "create_swap_file.yml"
|
||||
when:
|
||||
- prepare_base_image is defined
|
||||
|
||||
- include: "provision_builder_tasks.yml"
|
|
@ -43,6 +43,7 @@ aws_x86_64_{% if spot %}spot{% else %}normal{% endif %}_{% if devel %}dev{% else
|
|||
--tag CoprPurpose=builder
|
||||
--tag CoprInstance={% if devel %}devel{% else %}production{% endif %}
|
||||
--tag arch=x86_64
|
||||
--playbook /var/lib/resallocserver/provision/builderpb-aws.yml
|
||||
{% else %}
|
||||
cmd_new: "/var/lib/resallocserver/resalloc_provision/vm-aws-new --arch=x86_64 {% if spot %}--spot{% endif %}"
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue