summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--playbooks/groups/freshmaker.yml79
-rw-r--r--playbooks/groups/odcs.yml79
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"