A stab at summershum deployment.

This commit is contained in:
Ralph Bean 2014-02-19 17:25:50 +00:00
parent b7060c4f29
commit d903e76839
14 changed files with 250 additions and 0 deletions

View file

@ -0,0 +1,69 @@
# 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"
- include: "{{ tasks }}/accelerate_prep.yml"
handlers:
- include: "{{ handlers }}/restart_services.yml"
- name: dole out the generic configuration
hosts: summershum;summershum-stg
user: root
gather_facts: True
accelerate: True
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "{{ private }}/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
roles:
- base
- rkhunter
- denyhosts
- nagios_client
- fas_client
- fedmsg_base
tasks:
- include: "{{ tasks }}/hosts.yml"
- include: "{{ tasks }}/yumrepos.yml"
- include: "{{ tasks }}/2fa_client.yml"
- include: "{{ tasks }}/motd.yml"
- include: "{{ tasks }}/sudo.yml"
# The proxies don't actually need to talk to these hosts so we won't bother
# putting them on the vpn.
#- include: "{{ tasks }}/openvpn_client.yml"
# when: env != "staging"
handlers:
- include: "{{ handlers }}/restart_services.yml"
- name: dole out the service-specific config
hosts: summershum;summershum-stg
user: root
gather_facts: True
accelerate: True
roles:
- fedmsg-hub
- summershum
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "{{ private }}/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml