docstranslation: fix key reading for secrets injection

This commit is contained in:
Francois Andrieu 2020-10-29 09:36:33 +01:00 committed by kevin
parent cc426a90e3
commit c366454e46
2 changed files with 6 additions and 2 deletions

View file

@ -27,11 +27,15 @@
openssh_keypair:
path: "/etc/openshift_apps/{{ app }}/id_rsa_docs_trans"
mode: 0600
regenerate: never
type: rsa
size: 4096
register: r_ssh_key
- name: Retrieve ssh priv key
slurp:
path: r_ssh_key.filename
register: r_docs_priv_key
- name: Define imagestream
include_role:
name: openshift/imagestream

View file

@ -7,7 +7,7 @@ metadata:
app: docstranslation
stringData:
id_rsa_docs_trans: |-
{{ lookup('file', '/etc/openshift_apps/{{ app }}/id_rsa_docs_trans') }}
{{ r_docs_priv_key.content | b64decode | indent(4) }}
config: |-
Host pagure.io
User git