Add the option for assigning a specific SSH key to a node. (#1356)
* Add the option for specifying an SSH key. * Add ability to specify SSH key. * Update config.sample.yaml * Update config.sample.yaml * Update bootstrap/templates/ansible/inventory/hosts.yaml.j2 * Update bootstrap/templates/ansible/inventory/hosts.yaml.j2 --------- Co-authored-by: Devin Buhl <onedr0p@users.noreply.github.com>
This commit is contained in:
1 parent
e6f8f4dd33
commit
d1b5fa1c98
2 files changed
+12
-5
No files matched your search
@@ -8,6 +8,9 @@ kubernetes:
|
||||
"#{ item.name }#":
|
||||
ansible_user: "#{ item.ssh_user }#"
|
||||
ansible_host: "#{ item.address }#"
|
||||
#% if item.ssh_key %#
|
||||
ansible_ssh_private_key_file: "#{ item.ssh_key }#"
|
||||
#% endif %#
|
||||
#% endif %#
|
||||
#% endfor %#
|
||||
#% if bootstrap_node_inventory | selectattr('controller', 'equalto', False) | list | length %#
|
||||
@@ -18,6 +21,9 @@ kubernetes:
|
||||
"#{ item.name }#":
|
||||
ansible_user: "#{ item.ssh_user }#"
|
||||
ansible_host: "#{ item.address }#"
|
||||
#% if item.ssh_key %#
|
||||
ansible_ssh_private_key_file: "#{ item.ssh_key }#"
|
||||
#% endif %#
|
||||
#% endif %#
|
||||
#% endfor %#
|
||||
#% endif %#
|
||||
Reference in new issue
Block a user