- Scale builder count to 4 Spot e2-standard-16 instances - Fix hub host resolution in /etc/hosts on builder nodes to use VPN IP - Correct variable precedence for koji_build_tag in bootstrap playbooks Co-developed-by: Gemini AI <renich+gemini@woralelandia.com> Signed-off-by: Rénich Bon Ćirić <renich@woralelandia.com>
22 lines
839 B
YAML
22 lines
839 B
YAML
---
|
|
- name: Bootstrap Generation 1 (mxos0)
|
|
hosts: kojihub
|
|
gather_facts: false
|
|
vars_files:
|
|
- vars/default.yaml
|
|
- vars/credentials.yaml
|
|
pre_tasks:
|
|
- name: Set koji_build_tag fact to mxos0 to override default.yaml
|
|
ansible.builtin.set_fact:
|
|
koji_build_tag: mxos0
|
|
tasks:
|
|
- name: Import all RPM repositories into Koji for mxos0
|
|
ansible.builtin.command: sudo -u kojiadmin env KOJI_TARGET_TAG="{{ koji_build_tag }}" /home/kojiadmin/bin/import-repos.py
|
|
changed_when: true
|
|
|
|
- name: Run topological package compilation for mxos0
|
|
ansible.builtin.command: sudo -u kojiadmin env KOJI_TARGET_TAG="{{ koji_build_tag }}" /home/kojiadmin/bin/bootstrap-baseos.py
|
|
async: 86400 # allow running up to 24 hours
|
|
poll: 30 # check status every 30 seconds
|
|
changed_when: true
|
|
...
|