summaryrefslogtreecommitdiffstats
path: root/playbooks/ands-prepare.yml
blob: 1b4fc2a1353f889a1fafc4907c7ffa94f69daac8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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 }}"