summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-03-15 14:19:16 +0200
committerLars Wirzenius <liw@liw.fi>2021-03-15 14:19:16 +0200
commit4853270d9f32ba6ab20d8e5bc5554c3847a55f36 (patch)
tree4dbab4ad1489af1ec9573435887ca5f5f17801dd
parent141fb4eee39f15f818ca331ecee2fca58183e5a1 (diff)
downloadick2-ansible-4853270d9f32ba6ab20d8e5bc5554c3847a55f36.tar.gz
more scopes
-rw-r--r--liw.yml2
-rw-r--r--roles/qvisqve/tasks/main.yml8
-rwxr-xr-xrun-cluster.sh2
3 files changed, 11 insertions, 1 deletions
diff --git a/liw.yml b/liw.yml
index 097cb5e..b96c187 100644
--- a/liw.yml
+++ b/liw.yml
@@ -53,6 +53,8 @@ qvisqve_token_public_key: "{{ lookup('pipe', 'pass show ick2/token_key.pub') }}"
qvisqve_token_private_key: "{{ lookup('pipe', 'pass show ick2/token_key') }}"
qvisqve_admin_hash: "{{ lookup('pipe', 'pass show ick2/liw_hash') }}"
qvisqve_admin_salt: "{{ lookup('pipe', 'pass show ick2/liw_salt') }}"
+qvisqve_liw_hash: "{{ lookup('pipe', 'pass show ick2/liw_hash') }}"
+qvisqve_liw_salt: "{{ lookup('pipe', 'pass show ick2/liw_salt') }}"
qvisqve_controller_secret: "{{ lookup('pipe', 'pass show ick2/controller_secret') }}"
qvisqve_controller_hash: "{{ lookup('pipe', 'pass show ick2/controller_hash') }}"
qvisqve_controller_salt: "{{ lookup('pipe', 'pass show ick2/controller_salt') }}"
diff --git a/roles/qvisqve/tasks/main.yml b/roles/qvisqve/tasks/main.yml
index 0d14917..9ef636a 100644
--- a/roles/qvisqve/tasks/main.yml
+++ b/roles/qvisqve/tasks/main.yml
@@ -62,6 +62,14 @@
owner: _qvisqve
group: _qvisqve
+- name: "install Ick liw client"
+ template:
+ src: liw.j2
+ dest: /var/lib/qvisqve/client/liw
+ mode: 0600
+ owner: _qvisqve
+ group: _qvisqve
+
- name: "enable and restart Qvisqve services"
service:
name: "{{ item }}"
diff --git a/run-cluster.sh b/run-cluster.sh
index cb695ec..2ae3cc2 100755
--- a/run-cluster.sh
+++ b/run-cluster.sh
@@ -3,6 +3,6 @@
set -eu
ansible-playbook -i hosts ick-cluster.yml \
- -e controller_domain=controller \
+ -e controller_domain=ick \
-e @liw.yml \
"$@"