From 0747981877071bb1aa12f66e486c980b4b501748 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 14 Nov 2018 09:41:46 +0200 Subject: Add: effi .hz, .yml and hosts files --- effi.hz | 5 +++++ effi.yml | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ hosts.effi | 1 + 3 files changed, 57 insertions(+) create mode 100644 effi.hz create mode 100644 effi.yml create mode 100644 hosts.effi diff --git a/effi.hz b/effi.hz new file mode 100644 index 0000000..6146f71 --- /dev/null +++ b/effi.hz @@ -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 -- cgit v1.2.1