ansible/playbooks/groups/sundries.yml
Kevin Fenzi 7aba98780e fedora-messaging-migration: Patches from Karsten Hopp to move script calling things from fedmsg to fedora-messaging
We will need to check these services after pushing this out and confirm
that they are still emitting or hearing messages they need to.

Many thanks Karsten!
2020-04-24 21:34:16 +02:00

85 lines
2.3 KiB
YAML

# create a new sundries server
#
# These servers run a number of smaller apps that don't merit their own instances.
#
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=sundries:sundries_stg"
- name: make the box be real
hosts: sundries:sundries_stg
user: root
gather_facts: True
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
roles:
- base
- rkhunter
- nagios_client
- hosts
- fas_client
- collectd/base
- mod_wsgi
- geoip
- geoip-city-wsgi/app
- role: easyfix/gather
when: master_sundries_node|bool
- role: regindexer/build
when: master_sundries_node|bool
- role: bz_review_report
when: master_sundries_node|bool and env != "staging"
- rsyncd
- freemedia
- sudo
- pager_server
- { role: openvpn/client,
when: env != "staging" }
- role: review-stats/build
when: master_sundries_node|bool
- role: zanata
when: master_sundries_node|bool
- role: fedora-web/build
when: master_sundries_node|bool
- role: fedora-budget/build
when: master_sundries_node|bool
- role: fedora-docs/build
when: master_sundries_node|bool
- role: membership-map/build
when: master_sundries_node|bool
- role: developer/build
when: master_sundries_node|bool
- { role: fedmsg/base,
when:
- master_sundries_node|bool
- deployment_type == "prod" }
- { role: rabbit/user,
username: "sundries{{ env_suffix }}",
when:
- master_sundries_node|bool
- deployment_type == "stg" }
- role: fedmsg/base
when: master_sundries_node|bool
- role: nfs/client
mnt_dir: '/srv/docs'
nfs_src_dir: 'openshift_{{ env_short }}_docs'
mount_stg: true
when: '"sundries01" in ansible_fqdn'
- role: nfs/client
mnt_dir: '/srv/websites'
nfs_src_dir: 'openshift_{{ env_short }}_websites'
mount_stg: true
when: '"sundries01" in ansible_fqdn'
pre_tasks:
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- import_tasks: "{{ tasks_path }}/2fa_client.yml"
- import_tasks: "{{ tasks_path }}/motd.yml"
- import_tasks: "{{ tasks_path }}/reg-server.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"