diff options
author | Ralph Bean <rbean@redhat.com> | 2017-08-31 16:29:10 +0000 |
---|---|---|
committer | Ralph Bean <rbean@redhat.com> | 2017-08-31 16:29:10 +0000 |
commit | 0b315b7d6c3ec7a8fe219d44761ef393fab2a43b (patch) | |
tree | a74999bbdc23566f7fad4df25bf7f0f28dfbaf2c | |
parent | 8dbbbf28a916264fecfb4ca78d8bda6c8b096e69 (diff) | |
download | ansible-0b315b7d6c3ec7a8fe219d44761ef393fab2a43b.tar.gz ansible-0b315b7d6c3ec7a8fe219d44761ef393fab2a43b.tar.xz ansible-0b315b7d6c3ec7a8fe219d44761ef393fab2a43b.zip |
Preliminary freshmaker and odcs playbooks.
-rw-r--r-- | playbooks/groups/freshmaker.yml | 79 | ||||
-rw-r--r-- | playbooks/groups/odcs.yml | 79 |
2 files changed, 158 insertions, 0 deletions
diff --git a/playbooks/groups/freshmaker.yml b/playbooks/groups/freshmaker.yml new file mode 100644 index 000000000..39d669c83 --- /dev/null +++ b/playbooks/groups/freshmaker.yml @@ -0,0 +1,79 @@ +- include: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=freshmaker:freshmaker-stg" + +- name: make the box be real + hosts: freshmaker:freshmaker-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 + + pre_tasks: + - include: "{{ tasks_path }}/yumrepos.yml" + + roles: + - base + - rkhunter + - nagios_client + - hosts + - fas_client + - rsyncd + - sudo + - collectd/base + + tasks: + - include: "{{ tasks_path }}/2fa_client.yml" + - include: "{{ tasks_path }}/motd.yml" + + handlers: + - include: "{{ handlers_path }}/restart_services.yml" + +- name: openvpn on the prod frontend nodes + hosts: freshmaker-frontend + user: root + gather_facts: True + + vars_files: + - /srv/web/infra/ansible/vars/global.yml + - "/srv/private/ansible/vars.yml" + - "{{ vars_path }}/{{ ansible_distribution }}.yml" + + roles: + - openvpn/client + + handlers: + - include: "{{ handlers_path }}/restart_services.yml" + +- name: Set up apache on the frontend MBS API app + hosts: freshmaker-frontend:freshmaker-frontend-stg + user: root + gather_facts: True + + vars_files: + - /srv/web/infra/ansible/vars/global.yml + - "/srv/private/ansible/vars.yml" + - "{{ vars_path }}/{{ ansible_distribution }}.yml" + + roles: + - mod_wsgi + + handlers: + - include: "{{ handlers_path }}/restart_services.yml" + +- name: set up fedmsg configuration and common freshmaker files + hosts: freshmaker:freshmaker-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: + - fedmsg/base + + handlers: + - include: "{{ handlers_path }}/restart_services.yml" diff --git a/playbooks/groups/odcs.yml b/playbooks/groups/odcs.yml new file mode 100644 index 000000000..cded19a84 --- /dev/null +++ b/playbooks/groups/odcs.yml @@ -0,0 +1,79 @@ +- include: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=odcs:odcs-stg" + +- name: make the box be real + hosts: odcs:odcs-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 + + pre_tasks: + - include: "{{ tasks_path }}/yumrepos.yml" + + roles: + - base + - rkhunter + - nagios_client + - hosts + - fas_client + - rsyncd + - sudo + - collectd/base + + tasks: + - include: "{{ tasks_path }}/2fa_client.yml" + - include: "{{ tasks_path }}/motd.yml" + + handlers: + - include: "{{ handlers_path }}/restart_services.yml" + +- name: openvpn on the prod frontend nodes + hosts: odcs-frontend + user: root + gather_facts: True + + vars_files: + - /srv/web/infra/ansible/vars/global.yml + - "/srv/private/ansible/vars.yml" + - "{{ vars_path }}/{{ ansible_distribution }}.yml" + + roles: + - openvpn/client + + handlers: + - include: "{{ handlers_path }}/restart_services.yml" + +- name: Set up apache on the frontend MBS API app + hosts: odcs-frontend:odcs-frontend-stg + user: root + gather_facts: True + + vars_files: + - /srv/web/infra/ansible/vars/global.yml + - "/srv/private/ansible/vars.yml" + - "{{ vars_path }}/{{ ansible_distribution }}.yml" + + roles: + - mod_wsgi + + handlers: + - include: "{{ handlers_path }}/restart_services.yml" + +- name: set up fedmsg configuration and common odcs files + hosts: odcs:odcs-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: + - fedmsg/base + + handlers: + - include: "{{ handlers_path }}/restart_services.yml" |