summaryrefslogtreecommitdiff
path: root/ick-cluster.yml
blob: 3121ee8ad948397ee027c631157d8d1ec9e696e3 (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
- 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: artifacts
  remote_user: root
  become: yes
  roles:
    - sane_debian_system
    - comfortable
    - letsencrypt
    - haproxy
    - ick-artifact-store
  vars:
    hostname: blobs

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