docstranslation: fix key reading for secrets injection
This commit is contained in:
parent
cc426a90e3
commit
c366454e46
2 changed files with 6 additions and 2 deletions
|
@ -27,11 +27,15 @@
|
||||||
openssh_keypair:
|
openssh_keypair:
|
||||||
path: "/etc/openshift_apps/{{ app }}/id_rsa_docs_trans"
|
path: "/etc/openshift_apps/{{ app }}/id_rsa_docs_trans"
|
||||||
mode: 0600
|
mode: 0600
|
||||||
regenerate: never
|
|
||||||
type: rsa
|
type: rsa
|
||||||
size: 4096
|
size: 4096
|
||||||
register: r_ssh_key
|
register: r_ssh_key
|
||||||
|
|
||||||
|
- name: Retrieve ssh priv key
|
||||||
|
slurp:
|
||||||
|
path: r_ssh_key.filename
|
||||||
|
register: r_docs_priv_key
|
||||||
|
|
||||||
- name: Define imagestream
|
- name: Define imagestream
|
||||||
include_role:
|
include_role:
|
||||||
name: openshift/imagestream
|
name: openshift/imagestream
|
||||||
|
|
|
@ -7,7 +7,7 @@ metadata:
|
||||||
app: docstranslation
|
app: docstranslation
|
||||||
stringData:
|
stringData:
|
||||||
id_rsa_docs_trans: |-
|
id_rsa_docs_trans: |-
|
||||||
{{ lookup('file', '/etc/openshift_apps/{{ app }}/id_rsa_docs_trans') }}
|
{{ r_docs_priv_key.content | b64decode | indent(4) }}
|
||||||
config: |-
|
config: |-
|
||||||
Host pagure.io
|
Host pagure.io
|
||||||
User git
|
User git
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue