mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 22:04:43 +03:00
feat(contrib/terraform): support custom ssh port (#9836)
This commit is contained in:
@@ -316,7 +316,9 @@ def openstack_host(resource, module_name):
|
|||||||
|
|
||||||
# attrs specific to Ansible
|
# attrs specific to Ansible
|
||||||
if 'metadata.ssh_user' in raw_attrs:
|
if 'metadata.ssh_user' in raw_attrs:
|
||||||
attrs['ansible_ssh_user'] = raw_attrs['metadata.ssh_user']
|
attrs['ansible_user'] = raw_attrs['metadata.ssh_user']
|
||||||
|
if 'metadata.ssh_port' in raw_attrs:
|
||||||
|
attrs['ansible_port'] = raw_attrs['metadata.ssh_port']
|
||||||
|
|
||||||
if 'volume.#' in list(raw_attrs.keys()) and int(raw_attrs['volume.#']) > 0:
|
if 'volume.#' in list(raw_attrs.keys()) and int(raw_attrs['volume.#']) > 0:
|
||||||
device_index = 1
|
device_index = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user