[BGP] undercloud_ssh_key_filename added to infrared plugin options

The undercloud_ssh_key_filename was a configurable parameter, but the
infrared plugin and the tobiko-configure role did not support it
This patch adds support to configure a value for this parameter using
the infrared tobiko plugin

Change-Id: I79929044034d6e457a4673195613cc69c24afa3e
This commit is contained in:
Eduardo Olivares 2022-11-22 17:11:41 +01:00
parent 2cd7d6bc39
commit 643b180873
3 changed files with 7 additions and 1 deletions

View File

@ -149,6 +149,10 @@ subparsers:
type: Value type: Value
help: hostname or IP address to be used to connect to undercloud host help: hostname or IP address to be used to connect to undercloud host
ansible_variable: undercloud_ssh_hostname ansible_variable: undercloud_ssh_hostname
undercloud_ssh_key_filename:
type: Value
help: SSH key filename to connect to undercloud host
ansible_variable: undercloud_ssh_key_filename
overcloud-ssh-username: overcloud-ssh-username:
type: Value type: Value
help: user name to be used to connect to TripleO Overcloud hosts help: user name to be used to connect to TripleO Overcloud hosts

View File

@ -13,6 +13,7 @@ test_default_conf:
tripleo: tripleo:
undercloud_ssh_hostname: "{{ undercloud_ssh_hostname }}" undercloud_ssh_hostname: "{{ undercloud_ssh_hostname }}"
overcloud_ssh_username: "{{ overcloud_ssh_username }}" overcloud_ssh_username: "{{ overcloud_ssh_username }}"
undercloud_ssh_key_filename: "{{ undercloud_ssh_key_filename }}"
test_log_debug: '' test_log_debug: ''
@ -24,5 +25,6 @@ stackrc_file: '{{ ansible_user_dir }}/overcloudrc'
undercloud_hostname: '{{ groups.get("undercloud", []) | first | default("undercloud-0") }}' undercloud_hostname: '{{ groups.get("undercloud", []) | first | default("undercloud-0") }}'
undercloud_ssh_hostname: '' undercloud_ssh_hostname: ''
undercloud_ssh_key_filename: ''
overcloud_ssh_username: '' overcloud_ssh_username: ''

View File

@ -1,6 +1,6 @@
--- ---
- name: "pick undercloud SSH shotname from inventory" - name: "pick undercloud SSH hostname from inventory"
set_fact: set_fact:
undercloud_ssh_hostname: >- undercloud_ssh_hostname: >-
{{ hostvars[undercloud_hostname].ansible_fqdn | {{ hostvars[undercloud_hostname].ansible_fqdn |