2013-05-03 23:22:43 +02:00
|
|
|
# create a new releng system
|
|
|
|
# NOTE: should be used with --limit most of the time
|
|
|
|
# NOTE: make sure there is room/space for this instance on the buildvmhost
|
2014-01-06 18:49:22 +01:00
|
|
|
# NOTE: most of these vars_path come from group_vars/releng or from hostvars
|
2013-05-03 23:22:43 +02:00
|
|
|
|
|
|
|
- name: make releng systems
|
2014-10-14 14:59:33 +02:00
|
|
|
hosts: composers;composers-stg
|
2013-05-03 23:22:43 +02:00
|
|
|
user: root
|
|
|
|
gather_facts: False
|
|
|
|
|
|
|
|
vars_files:
|
|
|
|
- /srv/web/infra/ansible/vars/global.yml
|
2014-01-01 20:15:11 +01:00
|
|
|
- "{{ private }}/vars.yml"
|
2014-01-06 19:22:18 +01:00
|
|
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
2013-05-03 23:22:43 +02:00
|
|
|
|
|
|
|
tasks:
|
2014-01-01 20:15:11 +01:00
|
|
|
- include: "{{ tasks }}/virt_instance_create.yml"
|
2013-05-03 23:22:43 +02:00
|
|
|
|
|
|
|
handlers:
|
2014-01-01 20:15:11 +01:00
|
|
|
- include: "{{ handlers }}/restart_services.yml"
|
2013-05-03 23:22:43 +02:00
|
|
|
|
2013-07-11 23:37:33 +02:00
|
|
|
# Once the instance exists, configure it.
|
|
|
|
|
|
|
|
- name: make releng server system
|
2014-10-14 14:59:33 +02:00
|
|
|
hosts: composers;composers-stg
|
2013-07-11 23:37:33 +02:00
|
|
|
user: root
|
|
|
|
gather_facts: True
|
2013-05-03 23:22:43 +02:00
|
|
|
|
2013-07-11 23:37:33 +02:00
|
|
|
vars_files:
|
|
|
|
- /srv/web/infra/ansible/vars/global.yml
|
2014-01-01 20:15:11 +01:00
|
|
|
- "{{ private }}/vars.yml"
|
2014-01-06 19:22:18 +01:00
|
|
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
2013-05-03 23:22:43 +02:00
|
|
|
|
2013-08-19 22:12:26 +02:00
|
|
|
roles:
|
2014-01-23 18:12:40 +01:00
|
|
|
- base
|
|
|
|
- nagios_client
|
2014-03-21 14:41:06 +01:00
|
|
|
- collectd/base
|
2014-06-23 02:49:31 +02:00
|
|
|
- hosts
|
2014-06-24 20:40:18 +02:00
|
|
|
- builder_repo
|
2014-10-16 18:37:42 +02:00
|
|
|
- role: nfs/client
|
|
|
|
mnt_dir: '/pub/fedora'
|
|
|
|
nfs_src_dir: 'fedora_ftp/fedora.redhat.com/pub/fedora'
|
|
|
|
when: datacenter != 'staging'
|
|
|
|
- role: nfs/client
|
|
|
|
mnt_dir: '/mnt/fedora_koji'
|
|
|
|
nfs_src_dir: 'fedora_koji'
|
|
|
|
when: datacenter != 'staging'
|
|
|
|
- role: nfs/client
|
2014-10-16 19:06:38 +02:00
|
|
|
mnt_dir: 'mnt/fedora_koji'
|
|
|
|
nfs_src_dir: 'mnt/fedora_koji'
|
2014-10-16 18:37:42 +02:00
|
|
|
when: datacenter == 'staging'
|
2014-07-08 23:25:53 +02:00
|
|
|
- releng
|
2014-07-08 23:51:48 +02:00
|
|
|
- fedmsg/base
|
2013-08-19 22:12:26 +02:00
|
|
|
|
2013-07-11 23:37:33 +02:00
|
|
|
tasks:
|
2014-09-30 18:48:29 +02:00
|
|
|
- include: "{{ tasks }}/yumrepos.yml"
|
2014-01-01 20:15:11 +01:00
|
|
|
- include: "{{ tasks }}/motd.yml"
|
2013-07-11 23:37:33 +02:00
|
|
|
|
|
|
|
handlers:
|
2014-01-01 20:15:11 +01:00
|
|
|
- include: "{{ handlers }}/restart_services.yml"
|
2013-05-03 23:22:43 +02:00
|
|
|
|
2014-10-27 20:24:12 +01:00
|
|
|
- name: put fasClient and 2fa on the staging releng systems
|
2014-10-23 21:59:40 +02:00
|
|
|
# Staging only, for debugging please.
|
|
|
|
hosts: composers-stg
|
|
|
|
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
|
|
|
|
|
|
|
|
roles:
|
|
|
|
- fas_client
|
2014-10-27 20:40:18 +01:00
|
|
|
- sudo
|
2014-10-23 21:59:40 +02:00
|
|
|
|
2014-10-27 20:24:12 +01:00
|
|
|
tasks:
|
|
|
|
- include: "{{ tasks }}/2fa_client.yml"
|
|
|
|
|
2014-10-23 21:59:40 +02:00
|
|
|
handlers:
|
|
|
|
- include: "{{ handlers }}/restart_services.yml"
|
2014-10-30 17:23:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
- name: Install the fedmsg-atomic-composer
|
|
|
|
# Staging only, for now.
|
|
|
|
hosts: composers-stg
|
|
|
|
user: root
|
|
|
|
gather_facts: True
|
|
|
|
|
|
|
|
roles:
|
|
|
|
- atomic-composer
|