fedora-ansible/playbooks/groups/composers.yml

92 lines
2.1 KiB
YAML
Raw Normal View History

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
# 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
- "{{ 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:
- include: "{{ tasks }}/virt_instance_create.yml"
2013-05-03 23:22:43 +02:00
handlers:
- 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
- "{{ 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
roles:
- base
- nagios_client
- collectd/base
- hosts
- 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'
- releng
2014-07-08 23:51:48 +02:00
- fedmsg/base
2013-07-11 23:37:33 +02:00
tasks:
2014-09-30 18:48:29 +02:00
- include: "{{ tasks }}/yumrepos.yml"
- include: "{{ tasks }}/motd.yml"
2013-07-11 23:37:33 +02:00
handlers:
- 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"
- name: Install the fedmsg-atomic-composer
# Staging only, for now.
hosts: composers-stg
user: root
gather_facts: True
roles:
- atomic-composer