Skip to content

Commit 266b3ff

Browse files
committed
Add new directories
1 parent 4695e63 commit 266b3ff

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

ansible/group_vars/all.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
# ops
33
ops_slack_channel_url: https://hooks.slack.com/services/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
44
pager_duty_key: testkey
5-
opts_root: "../environments/{{ env }}/k8/{{ name }}"
5+
environment_root: "../environments/{{ env }}/"
6+
opts_root: "{{ environment_root }}/k8/{{ name }}"
7+
secrets_root: "{{ environment_root }}/secrets/"
8+
certs_root: "{{ secrets_root }}/certs/"
9+
domains_root: "{{ secrets_root }}/domains/"
610
config_maps_path: "{{ opts_root }}/configMaps"
711
services_path: "{{ opts_root }}/services"
812
deployments_path: "{{ opts_root }}/deployments"

ansible/roles/dock_launch_config/tasks/main.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,20 @@
4343
set_fact:
4444
vault_tokens:
4545
- { file_name: 'auth-token', value: "{{ vault_auth_token }}" }
46-
- { file_name: 'user-vault-auth-token', value: "{{ dock_vault_user_creation_access_token }}" }
4746
- { file_name: 'token-01', value: "{{ vault_token_01 }}" }
4847
- { file_name: 'token-02', value: "{{ vault_token_02 }}" }
4948
- { file_name: 'token-03', value: "{{ vault_token_03 }}" }
5049

5150
- name: encode ca.pem to base64
52-
shell: cat ./certs/ca.pem | gbase64 -w 0
51+
shell: cat ./secrets/certs/ca.pem | gbase64 -w 0
5352
register: ca_pem_base64
5453

5554
- name: encode ca-key.pem to base64
56-
shell: cat ./certs/ca-key.pem | gbase64 -w 0
55+
shell: cat ./secrets/certs/ca-key.pem | gbase64 -w 0
5756
register: ca_key_pem_base64
5857

5958
- name: encode pass to base64
60-
shell: cat ./certs/pass | gbase64 -w 0
59+
shell: cat ./secrets/certs/pass | gbase64 -w 0
6160
register: pass_base64
6261

6362
- name: Generate dock script

0 commit comments

Comments
 (0)