diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-02-09 17:13:12 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-02-10 18:25:21 +0200 |
commit | cf30b6aabfee13a19dccf59d5a3236daff3ed2ed (patch) | |
tree | 1980005ba79f274911af846082a5437f6929bf60 /ick-cluster.yml | |
parent | 243df59a036c4c4410ff5a31d62a6d1fa0aaa1f0 (diff) | |
download | ick2-ansible-cf30b6aabfee13a19dccf59d5a3236daff3ed2ed.tar.gz |
Add: ick cluster playbook, shell script
Diffstat (limited to 'ick-cluster.yml')
-rw-r--r-- | ick-cluster.yml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/ick-cluster.yml b/ick-cluster.yml new file mode 100644 index 0000000..0a8e668 --- /dev/null +++ b/ick-cluster.yml @@ -0,0 +1,39 @@ +- hosts: worker + remote_user: ansible + become: yes + roles: + - sane_debian_system + - comfortable + - unix_users + - ick-worker + vars: + hostname: worker + 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: ansible + become: yes + roles: + - sane_debian_system + - comfortable + - haproxy + - ick-blob-service + vars: + hostname: blobs + +- hosts: controller + remote_user: ansible + become: yes + roles: + - sane_debian_system + - comfortable + - haproxy + - ick-controller + vars: + hostname: controller |