Skip to content

Commit 5585af0

Browse files
committed
Add ~/.config/validated-patterns in the secret search path
1 parent c328c1e commit 5585af0

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

ansible/roles/vault_utils/README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,16 @@ This relies on [kubernetes.core](https://docs.ansible.com/ansible/latest/collect
4242
4343
## Values secret file format
4444
45-
Currently this role supports two formats: version 1.0 (which is the assumed default when not specified) and version 2.0.
46-
The latter is more fatureful and supports generating secrets directly into the vault and also prompting the user for a secret.
47-
By default, the first file that will looked up is `~/.config/hybrid-cloud-patterns/values-secret-<patternname>.yaml`, then
48-
`~/values-secret-<patternname>.yaml` and should that not exist it will look for `~/values-secret.yaml`.
45+
Currently this role supports two formats: version 1.0 (which is the assumed
46+
default when not specified) and version 2.0. The latter is more fatureful and
47+
supports generating secrets directly into the vault and also prompting the user
48+
for a secret.
49+
50+
By default, the first file that will looked up is
51+
`~/.config/hybrid-cloud-patterns/values-secret-<patternname>.yaml`, then
52+
`~/.config/validated-patterns/values-secret-<patternname>.yaml`,
53+
`~/values-secret-<patternname>.yaml` and should that not exist it will look for
54+
`~/values-secret.yaml`.
4955
The paths can be overridden by setting the environment variable `VALUES_SECRET` to the path of the
5056
secret file.
5157

ansible/roles/vault_utils/tasks/push_secrets.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
vars:
6767
findme:
6868
- "~/.config/hybrid-cloud-patterns/values-secret-{{ pattern_name }}.yaml"
69+
- "~/.config/validated-patterns/values-secret-{{ pattern_name }}.yaml"
6970
- "~/values-secret-{{ pattern_name }}.yaml"
7071
- "~/values-secret.yaml"
7172
- "{{ pattern_dir }}/values-secret.yaml.template"

0 commit comments

Comments
 (0)