From 0b315b7d6c3ec7a8fe219d44761ef393fab2a43b Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Thu, 31 Aug 2017 16:29:10 +0000 Subject: [PATCH] Preliminary freshmaker and odcs playbooks. --- playbooks/groups/freshmaker.yml | 79 +++++++++++++++++++++++++++++++++ playbooks/groups/odcs.yml | 79 +++++++++++++++++++++++++++++++++ 2 files changed, 158 insertions(+) create mode 100644 playbooks/groups/freshmaker.yml create mode 100644 playbooks/groups/odcs.yml diff --git a/playbooks/groups/freshmaker.yml b/playbooks/groups/freshmaker.yml new file mode 100644 index 0000000000..39d669c833 --- /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 0000000000..cded19a84b --- /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"