# common variables for osbuild workers (staging)
csi_primary_contact: Image Builder team - osbuilders@redhat.com
csi_purpose: This group of VMs builds OS images via Koji (staging) using image builder for ppc64le architecture.
csi_relationship: |
  * Relies on koji-hub and image-builder-api (external).
  * Produces automated builds of OS images for the architecture listed. Wokers can be scaled by adding new
    virtual instances

datacenter: iad2
dns: 10.3.163.33
dns_search1: iad2.fedoraproject.org
dns_search2: fedoraproject.org
eth0_ipv4_gw: 10.3.171.254

ks_repo: http://10.3.163.35/pub/fedora-secondary/releases/39/Server/ppc64le/os/
ks_url: http://10.3.163.35/repo/rhel/ks/kvm-fedora
lvm_size: 102400  # 100 GB
main_bridge: br0
max_mem_size: "{{ mem_size }}"
mem_size: 4096  # 4 GB
num_cpus: 2
virt_install_command: "{{ virt_install_command_ppc64le_one_nic_unsafe }}"
volgroup: /dev/vg_guests

# setup access to workers
ipa_server: ipa01.iad2.fedoraproject.org
ipa_host_group: osbuild
ipa_host_group_desc: osbuild Build vms
primary_auth_source: ipa
ipa_client_shell_groups:
  - sysadmin-osbuild
  - sysadmin-releng
ipa_client_sudo_groups:
  - sysadmin-osbuild
  - sysadmin-releng

# osbuild worker variables
osbuild_worker_server_hostname: "api.stage.openshift.com"
osbuild_worker_server_api_base_path: "/api/image-builder-worker/v1"
osbuild_worker_authentication_oauth_url: "https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token"
osbuild_worker_authentication_client_id: "07120c6c-fd31-4735-bb2f-891439b0bf41"
# the secret is turned into file in the playbook
osbuild_worker_authentication_client_secret: "{{ osbuild_worker_stg_client_secret }}"
osbuild_worker_koji_instances:
  - koji_host: "koji.stg.fedoraproject.org"
    krb_principal: "osbuild-automation-bot@STG.FEDORAPROJECT.ORG"
    krb_keytab_file: "{{ private }}/files/osbuild/worker_stg_koji.keytab"
