2014-02-19 18:25:50 +01:00
|
|
|
# create a new summershum server
|
|
|
|
# NOTE: should be used with --limit most of the time
|
|
|
|
# NOTE: make sure there is room/space for this server on the vmhost
|
|
|
|
# NOTE: most of these vars_path come from group_vars/mirrorlist or from hostvars
|
|
|
|
|
|
|
|
- name: make summershum server
|
|
|
|
hosts: summershum;summershum-stg
|
|
|
|
user: root
|
|
|
|
gather_facts: False
|
|
|
|
|
|
|
|
vars_files:
|
|
|
|
- /srv/web/infra/ansible/vars/global.yml
|
|
|
|
- "{{ private }}/vars.yml"
|
|
|
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
- include: "{{ tasks }}/virt_instance_create.yml"
|
|
|
|
|
|
|
|
handlers:
|
|
|
|
- include: "{{ handlers }}/restart_services.yml"
|
|
|
|
|
|
|
|
- name: dole out the generic configuration
|
|
|
|
hosts: summershum;summershum-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:
|
|
|
|
- base
|
|
|
|
- rkhunter
|
2014-10-13 20:13:51 +02:00
|
|
|
- { role: denyhosts, when: ansible_distribution_major_version != '7' }
|
2014-02-19 18:25:50 +01:00
|
|
|
- nagios_client
|
2014-03-21 14:45:02 +01:00
|
|
|
- collectd/base
|
2014-06-23 02:49:31 +02:00
|
|
|
- hosts
|
2014-02-19 18:25:50 +01:00
|
|
|
- fas_client
|
2014-06-14 22:58:52 +02:00
|
|
|
- sudo
|
2014-08-01 18:23:40 +02:00
|
|
|
# The proxies don't actually need to talk to these hosts so we won't bother
|
|
|
|
# putting them on the vpn.
|
|
|
|
#- { role: openvpn/client,
|
|
|
|
# when: env != "staging" }
|
2014-02-19 18:25:50 +01:00
|
|
|
|
|
|
|
tasks:
|
|
|
|
- include: "{{ tasks }}/yumrepos.yml"
|
|
|
|
- include: "{{ tasks }}/2fa_client.yml"
|
|
|
|
- include: "{{ tasks }}/motd.yml"
|
|
|
|
|
|
|
|
handlers:
|
|
|
|
- include: "{{ handlers }}/restart_services.yml"
|
|
|
|
|
2014-02-19 18:46:10 +01:00
|
|
|
- name: set up fedmsg basics
|
|
|
|
hosts: summershum;summershum-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:
|
2014-03-14 16:47:11 +01:00
|
|
|
- fedmsg/base
|
2014-02-19 18:46:10 +01:00
|
|
|
|
|
|
|
handlers:
|
|
|
|
- include: "{{ handlers }}/restart_services.yml"
|
|
|
|
|
2014-02-19 18:25:50 +01:00
|
|
|
- name: dole out the service-specific config
|
|
|
|
hosts: summershum;summershum-stg
|
|
|
|
user: root
|
|
|
|
gather_facts: True
|
|
|
|
|
|
|
|
roles:
|
2014-03-14 16:49:18 +01:00
|
|
|
- fedmsg/hub
|
2014-02-19 18:25:50 +01:00
|
|
|
- summershum
|
2014-04-30 22:42:56 +02:00
|
|
|
- role: collectd/fedmsg-service
|
|
|
|
process: fedmsg-hub
|
2014-02-19 18:25:50 +01:00
|
|
|
|
|
|
|
vars_files:
|
|
|
|
- /srv/web/infra/ansible/vars/global.yml
|
|
|
|
- "{{ private }}/vars.yml"
|
|
|
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
2014-04-23 16:48:34 +02:00
|
|
|
|
|
|
|
handlers:
|
|
|
|
- include: "{{ handlers }}/restart_services.yml"
|