2019-05-20 18:23:42 +00:00
|
|
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/happy_birthday.yml myhosts=buildhw:bkernel"
|
2013-06-03 16:14:28 +00:00
|
|
|
|
|
|
|
- name: make koji builder(s) on raw hw
|
2018-02-01 22:45:57 +00:00
|
|
|
hosts: buildhw:bkernel
|
2015-03-24 12:16:50 +00:00
|
|
|
remote_user: root
|
2013-06-03 16:37:56 +00:00
|
|
|
gather_facts: True
|
2013-06-03 16:14:28 +00:00
|
|
|
|
2016-02-18 13:57:27 -06:00
|
|
|
vars_files:
|
2013-06-03 16:14:28 +00:00
|
|
|
- /srv/web/infra/ansible/vars/global.yml
|
2015-01-09 22:59:18 +00:00
|
|
|
- "/srv/private/ansible/vars.yml"
|
2014-01-06 18:22:18 +00:00
|
|
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
2013-06-03 16:14:28 +00:00
|
|
|
|
2015-11-12 01:55:06 +00:00
|
|
|
pre_tasks:
|
2017-10-17 17:37:03 +00:00
|
|
|
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
|
|
|
|
- import_tasks: "{{ tasks_path }}/osbs_certs.yml"
|
2015-11-12 01:55:06 +00:00
|
|
|
|
2013-08-27 05:22:42 +00:00
|
|
|
roles:
|
2014-01-23 17:12:40 +00:00
|
|
|
- base
|
2016-04-14 17:28:20 +00:00
|
|
|
- { role: nfs/client, mnt_dir: '/mnt/fedora_koji', nfs_src_dir: "{{ koji_hub_nfs }}", when: koji_hub_nfs is defined }
|
2020-02-24 23:03:44 +00:00
|
|
|
- role: nfs/client
|
|
|
|
mnt_dir: '/mnt/koji/ostree'
|
2020-06-09 21:08:21 -07:00
|
|
|
nfs_src_dir: 'fedora_ostree_content/ostree'
|
2020-05-28 12:57:09 -07:00
|
|
|
when: env != 'staging' and 'runroot' in group_names
|
2020-02-24 23:03:44 +00:00
|
|
|
|
|
|
|
- role: nfs/client
|
|
|
|
mnt_dir: '/mnt/koji/compose/ostree'
|
2020-06-09 21:08:21 -07:00
|
|
|
nfs_src_dir: 'fedora_ostree_content/compose/ostree'
|
2020-05-28 12:57:09 -07:00
|
|
|
when: env != 'staging' and 'runroot' in group_names
|
2020-05-25 10:21:47 -07:00
|
|
|
|
|
|
|
- role: nfs/client
|
|
|
|
mnt_dir: '/mnt/koji/ostree'
|
|
|
|
nfs_src_dir: 'fedora_ostree_content/ostree'
|
2020-05-28 12:57:09 -07:00
|
|
|
when: env != 'staging' and 'runroot' in group_names
|
2020-05-25 10:21:47 -07:00
|
|
|
|
|
|
|
- role: nfs/client
|
|
|
|
mnt_dir: '/mnt/koji/compose/ostree'
|
|
|
|
nfs_src_dir: 'fedora_ostree_content/compose/ostree'
|
2020-05-28 12:57:09 -07:00
|
|
|
when: env != 'staging' and 'runroot' in group_names
|
2020-02-24 23:03:44 +00:00
|
|
|
|
|
|
|
- role: nfs/client
|
|
|
|
mnt_dir: '/mnt/koji/ostree'
|
2020-06-09 21:08:21 -07:00
|
|
|
nfs_src_dir: 'fedora_ostree_content_stg/ostree'
|
2020-02-24 23:03:44 +00:00
|
|
|
when: env == 'staging' and 'runroot' in group_names
|
|
|
|
|
2020-05-01 20:21:07 +00:00
|
|
|
- role: nfs/client
|
2020-05-05 07:15:45 -04:00
|
|
|
mnt_dir: '/srv/odcs'
|
2020-05-01 20:21:07 +00:00
|
|
|
nfs_src_dir: 'fedora_odcs'
|
|
|
|
when: env != 'staging' and 'runroot' in group_names
|
|
|
|
|
|
|
|
- role: nfs/client
|
|
|
|
mnt_dir: '/srv/odcs'
|
|
|
|
nfs_src_dir: 'fedora_odcs_stg'
|
|
|
|
when: env == 'staging' and 'runroot' in group_names
|
|
|
|
|
2020-02-24 23:03:44 +00:00
|
|
|
- role: nfs/client
|
|
|
|
mnt_dir: '/mnt/koji/compose/ostree'
|
2020-06-09 21:08:21 -07:00
|
|
|
nfs_src_dir: 'fedora_ostree_content_stg/compose/ostree'
|
2020-02-24 23:03:44 +00:00
|
|
|
when: env == 'staging' and 'runroot' in group_names
|
|
|
|
|
2016-10-28 13:06:50 +00:00
|
|
|
- koji_builder
|
2014-05-29 16:24:09 +00:00
|
|
|
- { role: bkernel, when: inventory_hostname.startswith('bkernel') }
|
2020-06-26 15:33:27 -07:00
|
|
|
- { role: clevis, when: "inventory_hostname.startswith(('bkernel', 'buildhw-x86'))" }
|
2020-06-10 12:27:00 -07:00
|
|
|
- { role: serial-console, when: inventory_hostname.startswith('bkernel') }
|
2014-06-23 00:49:31 +00:00
|
|
|
- hosts
|
2021-02-12 12:42:38 +00:00
|
|
|
- { role: ipa/client, when: not inventory_hostname.startswith('bkernel') and env == "staging" }
|
|
|
|
- { role: fas_client, when: not inventory_hostname.startswith('bkernel') and env != "staging" }
|
2015-03-24 16:37:31 +00:00
|
|
|
- { role: sudo, when: not inventory_hostname.startswith('bkernel') }
|
2016-11-03 19:03:17 +00:00
|
|
|
- role: keytab/service
|
|
|
|
kt_location: /etc/kojid/kojid.keytab
|
|
|
|
service: compile
|
2018-01-05 12:25:23 +00:00
|
|
|
- role: keytab/service
|
|
|
|
owner_user: root
|
|
|
|
owner_group: root
|
|
|
|
service: innercompose
|
|
|
|
host: "odcs{{ env_suffix }}.fedoraproject.org"
|
|
|
|
kt_location: /etc/kojid/secrets/odcs_inner.keytab
|
|
|
|
when: env == "staging"
|
2013-08-27 05:22:42 +00:00
|
|
|
|
2016-12-15 01:10:10 +00:00
|
|
|
tasks:
|
2017-10-17 17:37:03 +00:00
|
|
|
- import_tasks: "{{ tasks_path }}/2fa_client.yml"
|
2015-03-24 16:37:31 +00:00
|
|
|
when: not inventory_hostname.startswith('bkernel')
|
2017-10-17 17:37:03 +00:00
|
|
|
- import_tasks: "{{ tasks_path }}/motd.yml"
|
2015-03-24 16:37:31 +00:00
|
|
|
when: not inventory_hostname.startswith('bkernel')
|
2013-06-03 16:14:28 +00:00
|
|
|
|
2015-11-20 01:58:06 +00:00
|
|
|
- name: make sure kojid is running
|
2017-04-13 01:37:21 +00:00
|
|
|
service: name=kojid state=started enabled=yes
|
2015-11-20 01:58:06 +00:00
|
|
|
|
2013-06-03 16:14:28 +00:00
|
|
|
handlers:
|
2017-10-15 20:33:11 +00:00
|
|
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|