buildvm-ppc64le-osbuild: drop these for now as they are not currently needed

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi
2025-06-19 09:57:26 -07:00
parent 6cbff995cb
commit ae1a0c4800
5 changed files with 9 additions and 75 deletions

View File

@@ -272,9 +272,3 @@ buildvm_stg
buildvm_ppc64le_stg
buildvm_aarch64_stg
buildvm_s390x_stg
[buildvm_osbuild_ppc64le]
buildvm-ppc64le-osbuild01.iad2.fedoraproject.org
[buildvm_osbuild_ppc64le_staging]
buildvm-ppc64le-osbuild02.iad2.fedoraproject.org

View File

@@ -1,4 +0,0 @@
---
datacenter: iad2
eth0_ipv4_ip: 10.3.171.38
vmhost: bvmhost-p09-05.iad2.fedoraproject.org

View File

@@ -1,4 +0,0 @@
---
datacenter: iad2
eth0_ipv4_ip: 10.3.171.39
vmhost: bvmhost-p09-05.iad2.fedoraproject.org

View File

@@ -0,0 +1,9 @@
---
datacenter: iad2
eth0_ipv4_gw: 10.16.163.254
eth0_ipv4_ip: 10.16.163.47
ks_repo: https://infrastructure.fedoraproject.org/pub/fedora/linux/releases/42/Server/x86_64/os/
ks_url: https://infrastructure.fedoraproject.org/repo/rhel/ks/kvm-fedora
mem_size: 4096
vmhost: vmhost-x86-04.rdu3.fedoraproject.org
volgroup: /dev/vg_guests

View File

@@ -1,61 +0,0 @@
# create a new osbuild worker
---
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
vars:
myhosts: "buildvm_osbuild_ppc64le:buildvm_osbuild_ppc64le_staging"
- name: Make osbuild-worker
hosts: buildvm_osbuild_ppc64le:buildvm_osbuild_ppc64le_staging
user: root
gather_facts: true
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "{{ private }}/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
pre_tasks:
- include_vars: dir=/srv/web/infra/ansible/vars/all/ ignore_files=README
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
roles:
- base
- hosts
- ipa/client
- sudo
- nagios_client
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"
tasks:
- name: Set up osbuild worker
block:
- name: Create temporary file for client secret
local_action: ansible.builtin.tempfile state="file" prefix="osbuild_"
# never report this as changed to make the playbook idempotent
changed_when: false
register: client_secret_tempfile
- name: Put secret into the temporary file
local_action: ansible.builtin.copy
content="{{ osbuild_worker_authentication_client_secret }}"
dest="{{ client_secret_tempfile.path }}"
mode="440"
# never report this as changed to make the playbook idempotent
changed_when: false
- name: Import role to configure osbuild-worker
ansible.builtin.import_role:
name: ansible-osbuild-worker
vars:
# rest of the vars are set in the appropriate group_vars
osbuild_worker_authentication_client_secret_file: "{{ client_secret_tempfile.path }}"
always:
- name: Remove temporary file with client secret
local_action: ansible.builtin.file path="{{ client_secret_tempfile.path }}" state=absent
# never report this as changed to make the playbook idempotent
changed_when: false
when: client_secret_tempfile is defined and client_secret_tempfile.path is defined