summaryrefslogtreecommitdiffstats
path: root/playbooks/ands-prepare.yml
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2017-04-01 04:53:28 +0200
committerSuren A. Chilingaryan <csa@suren.me>2017-04-01 04:53:28 +0200
commite7ed329bd81c2273c03e94c93c9ce9c1d01cdc86 (patch)
tree444778102e4f73b83ef9462235b7f614b004b264 /playbooks/ands-prepare.yml
downloadands-e7ed329bd81c2273c03e94c93c9ce9c1d01cdc86.tar.gz
ands-e7ed329bd81c2273c03e94c93c9ce9c1d01cdc86.tar.bz2
ands-e7ed329bd81c2273c03e94c93c9ce9c1d01cdc86.tar.xz
ands-e7ed329bd81c2273c03e94c93c9ce9c1d01cdc86.zip
Initial import
Diffstat (limited to 'playbooks/ands-prepare.yml')
-rw-r--r--playbooks/ands-prepare.yml46
1 files changed, 46 insertions, 0 deletions
diff --git a/playbooks/ands-prepare.yml b/playbooks/ands-prepare.yml
new file mode 100644
index 0000000..1b4fc2a
--- /dev/null
+++ b/playbooks/ands-prepare.yml
@@ -0,0 +1,46 @@
+- name: Common setup procedures
+ hosts: ands
+ roles:
+ - role: ands_facts
+ - role: common
+
+- name: Keepalived service
+ hosts: masters
+ roles:
+ - role: keepalived
+ vars:
+ keepalived_vips: "{{ ands_ipfailover_vips | default([]) }}"
+ keepalived_iface: "{{ ands_ipfailover_interface | default('eth0') }}"
+ keepalived_password: "{{ ands_secrets.keepalived }}"
+
+#OpenVPN started before Origin-node causes problems
+#- name: OpenVPN service
+# hosts: nodes
+# roles:
+# - role: openvpn
+# vars:
+# openvpn_config: "katrin"
+# openvpn_lb: "{{ ands_openshift_lb }}"
+# openvpn_servers: "masters"
+
+- name: Configures Ands storage
+ hosts: ands_storage_servers
+ roles:
+ - role: ands_storage
+
+- name: Docker setup
+ hosts: nodes
+ roles:
+ - role: docker
+ vars:
+ docker_exclude_vgs: "{{ [ ands_data_vg ] }}"
+
+- name: Configure GlusterFS cluster
+ hosts: ands_servers
+ roles:
+ - role: glusterfs
+ vars:
+ glusterfs_network: "{{ ands_storage_network }}"
+ glusterfs_servers: "{{ ands_storage_servers }}"
+ glusterfs_bricks_path: "{{ ands_data_path }}/glusterfs"
+ glusterfs_domains: "{{ ands_storage_domains }}"