Skip to content

Commit 8e43431

Browse files
committed
Yes it is a demo
1 parent 6988e44 commit 8e43431

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

inventory/local/group_vars/semaphore.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
semaphore_web_root: 'https://controller'
33
nginx_add_repo: false
44
vault_admin_user: admin
5-
vault_admin_password: "{{ lookup('pipe', 'head -c32 /dev/urandom | base64') }}"
5+
# These default values should be generated for your own environment like:
6+
#vault_admin_password: "{{ lookup('pipe', 'head -c32 /dev/urandom | base64') }}"
7+
vault_admin_password: '/nOKL/PaudDI1J80KB0pQYPGlvAoaMg8ea71MdvS2tI='
8+
vault_access_key_encryption: 'POHO2/pWKVRIVmV8gJGlcF9I/RNBHplD5Ki4aMWnz6M='
9+
vault_cookie_encryption: 'q0luUwCsnzAUBjUYNHCNU5VpZEvjy0fPS698t9SvBYQ='
10+
vault_cookie_hash: 'w9vz6qSsDIQVLM7kC42QdXC/YoIgH9MFWIONIMSFfxc='
611
ssh_passphrase: "{{ lookup('env', 'SSH_PASS') | default('KeyWillBeGeneratedWithAPassphrase') }}"
712

813
use_docker: true

roles/api/tasks/cookie.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
---
2-
- name: Set facts
3-
ansible.builtin.set_fact:
4-
semaphore_admin_user: "{{ vault_admin_user }}"
5-
semaphore_admin_password: "{{ vault_admin_password }}"
6-
no_log: "{{ not debug }}"
72

83
- name: Set API token
94
ansible.builtin.uri:

roles/api/vars/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
---
22
# shared with semaphore role
33
semaphore_env: /home/semaphore/.env
4+
semaphore_admin_user: "{{ vault_admin_user }}"
5+
semaphore_admin_password: "{{ vault_admin_password }}"

roles/semaphore/defaults/main.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,3 @@ semaphore_admin_user_manage: true
2525
# Use ansible-vault to encrypt values vars/main.yml refers to the vault_* variables
2626
vault_admin_user: admin
2727
vault_admin_email: [email protected]
28-
# These default values should be generated for your own environment.
29-
# Generated with `head -c32 /dev/urandom | base64`
30-
vault_access_key_encryption: 'POHO2/pWKVRIVmV8gJGlcF9I/RNBHplD5Ki4aMWnz6M='
31-
vault_admin_password: '/nOKL/PaudDI1J80KB0pQYPGlvAoaMg8ea71MdvS2tI='
32-
vault_cookie_encryption: 'q0luUwCsnzAUBjUYNHCNU5VpZEvjy0fPS698t9SvBYQ='
33-
vault_cookie_hash: 'w9vz6qSsDIQVLM7kC42QdXC/YoIgH9MFWIONIMSFfxc='

0 commit comments

Comments
 (0)