Use PEM format for paramiko ssh key
This commit is contained in:
parent
84495bfa92
commit
5a75cb621f
@ -29,7 +29,7 @@
|
|||||||
when: not zuul_ssh_key
|
when: not zuul_ssh_key
|
||||||
block:
|
block:
|
||||||
- name: Create ssh key
|
- name: Create ssh key
|
||||||
command: "ssh-keygen -f /opt/ansible/ssh-{{ zuul_cluster_name }} -t rsa -N '' -C zuul"
|
command: "ssh-keygen -f /opt/ansible/ssh-{{ zuul_cluster_name }} -m PEM -t rsa -N '' -C zuul"
|
||||||
args:
|
args:
|
||||||
creates: "/opt/ansible/ssh-{{ zuul_cluster_name }}"
|
creates: "/opt/ansible/ssh-{{ zuul_cluster_name }}"
|
||||||
|
|
||||||
@ -47,7 +47,7 @@
|
|||||||
namespace: "{{ namespace }}"
|
namespace: "{{ namespace }}"
|
||||||
type: Opaque
|
type: Opaque
|
||||||
stringData:
|
stringData:
|
||||||
id_rsa: |-
|
id_rsa: |
|
||||||
{{lookup('file', '/opt/ansible/ssh-' + zuul_cluster_name) }}
|
{{lookup('file', '/opt/ansible/ssh-' + zuul_cluster_name) }}
|
||||||
|
|
||||||
- name: Create ssh pub secret
|
- name: Create ssh pub secret
|
||||||
@ -64,7 +64,7 @@
|
|||||||
namespace: "{{ namespace }}"
|
namespace: "{{ namespace }}"
|
||||||
type: Opaque
|
type: Opaque
|
||||||
stringData:
|
stringData:
|
||||||
id_rsa.pub: |-
|
id_rsa.pub: |
|
||||||
{{lookup('file', '/opt/ansible/ssh-' + zuul_cluster_name + '.pub') }}
|
{{lookup('file', '/opt/ansible/ssh-' + zuul_cluster_name + '.pub') }}
|
||||||
|
|
||||||
# TODO: cleanup key file from operator pod
|
# TODO: cleanup key file from operator pod
|
||||||
|
Loading…
x
Reference in New Issue
Block a user