summaryrefslogtreecommitdiff
path: root/ick-cluster.yml
blob: ae025421b7a0ebda4ae5c72e1c9a8b242dbd66c0 (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
- hosts: workers
  remote_user: root
  become: yes
  roles:
    - sane_debian_system
    - comfortable
    - unix_users
    - ick-worker
  vars:
    wm_ssh_key: "{{  lookup('pipe', 'pass show ick2/wm_ssh_key') }}"
    wm_ssh_key_pub: "{{  lookup('pipe', 'pass show ick2/wm_ssh_key_pub') }}"
    unix_users:
      - username: _ickwm
        sudo: yes
        ssh_key: "{{ wm_ssh_key }}"
        ssh_key_pub: "{{ wm_ssh_key_pub }}"

- hosts: blob_service
  remote_user: root
  become: yes
  roles:
    - sane_debian_system
    - comfortable
    - haproxy
    - ick-blob-service
  vars:
    hostname: blobs

- hosts: controller
  remote_user: root
  become: yes
  roles:
    - sane_debian_system
    - comfortable
    - haproxy
    - ick-controller
  vars:
    hostname: controller