[quick-start] ssh-key-file configuration (#4256)

This commit is contained in:
YundongYe 2020-03-07 14:08:17 +08:00 коммит произвёл GitHub
Родитель a278fb5d42
Коммит 4d9caf2d0f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
5 изменённых файлов: 21 добавлений и 0 удалений

Просмотреть файл

@ -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: