Browse Source

Read IdentityFile from openshift_aws_scaleup_key_path var

Vadim Rutkovsky 6 years ago
parent
commit
a20829bafe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/aws/create_machineset.yml

+ 1 - 1
test/aws/create_machineset.yml

@@ -66,4 +66,4 @@
     name: "{{ new_machine.results.results[0]['items'][0].status.addresses | selectattr('type', 'match', '^InternalIP$') | map(attribute='address') | first }}"
     node_name: "{{ new_machine.results.results[0]['items'][0].status.addresses | selectattr('type', 'match', '^InternalDNS$') | map(attribute='address') | first }}"
     groups: new_workers
-    ansible_ssh_common_args: '-o ProxyCommand="ssh -o IdentityFile="/opt/app-root/src/.ssh/id_rsa" -o StrictHostKeyChecking=no -W %h:%p -q core@{{ ssh_bastion }}"'
+    ansible_ssh_common_args: "-o ProxyCommand=\"ssh -o IdentityFile='{{ openshift_aws_scaleup_key_path | default('/opt/app-root/src/.ssh/id_rsa') }}' -o StrictHostKeyChecking=no -W %h:%p -q core@{{ ssh_bastion }}\""