зеркало из https://github.com/microsoft/pai.git
[quick-start] ssh-key-file configuration (#4256)
This commit is contained in:
Родитель
a278fb5d42
Коммит
4d9caf2d0f
|
@ -4,6 +4,9 @@ branch-name: <% latest-release %>
|
|||
docker-image-tag: <% latest-release %>
|
||||
|
||||
# Optional
|
||||
|
||||
# ssh_key_file_path: /path/to/you/key/file
|
||||
|
||||
# docker-registry-domain: docker.io
|
||||
# docker-registry-namespace: openpai
|
||||
# docker-registry-username: exampleuser
|
||||
|
|
|
@ -8,5 +8,8 @@ all:
|
|||
ansible_ssh_user: {{ env["cfg"]['user'] }}
|
||||
ansible_ssh_pass: "{{ env["cfg"]['password'] }}"
|
||||
ansible_become_pass: "{{ env["cfg"]['password'] }}"
|
||||
{%- if "ssh_key_file_path" in env["cfg"]%}
|
||||
ansible_ssh_private_key_file: "{{ env["cfg"]["ssh_key_file_path"] }}"
|
||||
{%- endif %}
|
||||
ansible_ssh_extra_args: '-o StrictHostKeyChecking=no'
|
||||
{%- endfor %}
|
||||
|
|
|
@ -8,6 +8,9 @@ all:
|
|||
ansible_ssh_user: {{ env["cfg"]['user'] }}
|
||||
ansible_ssh_pass: "{{ env["cfg"]['password'] }}"
|
||||
ansible_become_pass: "{{ env["cfg"]['password'] }}"
|
||||
{%- if "ssh_key_file_path" in env["cfg"]%}
|
||||
ansible_ssh_private_key_file: "{{ env["cfg"]["ssh_key_file_path"] }}"
|
||||
{%- endif %}
|
||||
ansible_ssh_extra_args: '-o StrictHostKeyChecking=no'
|
||||
{%- endfor %}
|
||||
{%- for vm in env["worker"] %}
|
||||
|
@ -18,6 +21,9 @@ all:
|
|||
ansible_ssh_user: {{ env["cfg"]['user'] }}
|
||||
ansible_ssh_pass: "{{ env["cfg"]['password'] }}"
|
||||
ansible_become_pass: "{{ env["cfg"]['password'] }}"
|
||||
{%- if "ssh_key_file_path" in env["cfg"]%}
|
||||
ansible_ssh_private_key_file: "{{ env["cfg"]["ssh_key_file_path"] }}"
|
||||
{%- endif %}
|
||||
ansible_ssh_extra_args: '-o StrictHostKeyChecking=no'
|
||||
{%- endfor %}
|
||||
children:
|
||||
|
|
|
@ -8,5 +8,8 @@ all:
|
|||
ansible_ssh_user: {{ env["cfg"]['user'] }}
|
||||
ansible_ssh_pass: "{{ env["cfg"]['password'] }}"
|
||||
ansible_become_pass: "{{ env["cfg"]['password'] }}"
|
||||
{%- if "ssh_key_file_path" in env["cfg"]%}
|
||||
ansible_ssh_private_key_file: "{{ env["cfg"]["ssh_key_file_path"] }}"
|
||||
{%- endif %}
|
||||
ansible_ssh_extra_args: '-o StrictHostKeyChecking=no'
|
||||
{%- endfor %}
|
||||
|
|
|
@ -8,6 +8,9 @@ all:
|
|||
ansible_ssh_user: {{ env["cfg"]['user'] }}
|
||||
ansible_ssh_pass: "{{ env["cfg"]['password'] }}"
|
||||
ansible_become_pass: "{{ env["cfg"]['password'] }}"
|
||||
{%- if "ssh_key_file_path" in env["cfg"]%}
|
||||
ansible_ssh_private_key_file: "{{ env["cfg"]["ssh_key_file_path"] }}"
|
||||
{%- endif %}
|
||||
ansible_ssh_extra_args: '-o StrictHostKeyChecking=no'
|
||||
{%- endfor %}
|
||||
{%- for vm in env["worker"] %}
|
||||
|
@ -18,6 +21,9 @@ all:
|
|||
ansible_ssh_user: {{ env["cfg"]['user'] }}
|
||||
ansible_ssh_pass: "{{ env["cfg"]['password'] }}"
|
||||
ansible_become_pass: "{{ env["cfg"]['password'] }}"
|
||||
{%- if "ssh_key_file_path" in env["cfg"]%}
|
||||
ansible_ssh_private_key_file: "{{ env["cfg"]["ssh_key_file_path"] }}"
|
||||
{%- endif %}
|
||||
ansible_ssh_extra_args: '-o StrictHostKeyChecking=no'
|
||||
{%- endfor %}
|
||||
children:
|
||||
|
|
Загрузка…
Ссылка в новой задаче