diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-11-14 09:41:46 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-11-14 09:41:46 +0200 |
commit | 0747981877071bb1aa12f66e486c980b4b501748 (patch) | |
tree | 683b0f1798b560a1148c5c72d5e2eaa23dc1b366 | |
parent | 7dcb10a7ab3111370692c3d2113c6098f0cf662d (diff) | |
download | ick2-ansible-0747981877071bb1aa12f66e486c980b4b501748.tar.gz |
Add: effi .hz, .yml and hosts files
-rw-r--r-- | effi.hz | 5 | ||||
-rw-r--r-- | effi.yml | 51 | ||||
-rw-r--r-- | hosts.effi | 1 |
3 files changed, 57 insertions, 0 deletions
@@ -0,0 +1,5 @@ +defaults: + type: cx11 + image: debian-9 +hosts: + - name: reg diff --git a/effi.yml b/effi.yml new file mode 100644 index 0000000..f029c4e --- /dev/null +++ b/effi.yml @@ -0,0 +1,51 @@ +- hosts: reg + remote_user: root + become: yes + roles: + - sane_debian_system + - unix_users + - haproxy + - qvisqve + - muck + vars: + hostname: effi-reg + + debian_codename: stretch + debian_mirror: deb.debian.org + debian_mirror_src: deb.debian.org + + sources_lists: + - repo: "deb http://ci-prod-controller.vm.liw.fi/debian stretch-ci main ickhost" + signing_key: "{{ ci_prod_apt_signing_key }}" + + letsencrypt_email: liw@liw.fi + letsencrypt_domain: "{{ reg_domain }}" + + haproxy_domain: "{{ reg_domain }}" + haproxy_rules: + - name: qvisqve1 + path: /token + backends: ["127.0.0.1:{{ qvisqve_port }}"] + + - name: qvisqve2 + path: /clients + backends: ["127.0.0.1:{{ qvisqve_port }}"] + + - name: muck1 + path: /status + backends: ["127.0.0.1:{{ muck_port }}"] + + - name: muck2 + path: /res + backends: ["127.0.0.1:{{ muck_port }}"] + + - name: muck3 + path: /search + backends: ["127.0.0.1:{{ muck_port }}"] + + muck_port: 12765 + + qvisqve_port: 10000 + qvisqve_domain: "{{ reg_domain }}" + qvisqve_token_private_key: "{{ lookup('pipe', 'pass show effireg/token.key') }}" + qvisqve_token_public_key: "{{ lookup('pipe', 'pass show effireg/token.key.pub') }}" diff --git a/hosts.effi b/hosts.effi new file mode 100644 index 0000000..eb032a7 --- /dev/null +++ b/hosts.effi @@ -0,0 +1 @@ +reg ansible_ssh_host=effi-reg.vm.liw.fi |