Include the stack name when generating the tripleo-ansible-inventory
The stack name is not included when generating the tripleo-ansible-inventory this patch adds this option. Change-Id: Ie19f4ffad0f652a1d5f519b8976181e7d3c7c18a Partial-bug: 1785040
This commit is contained in:
parent
81f931792b
commit
878e5376d3
|
@ -172,7 +172,7 @@ function find_node_by_name_id_or_ip {
|
|||
function get_static_inventory {
|
||||
local config_dir=$1
|
||||
if [ -d "$config_dir" ] ;then
|
||||
local inventory_args=" --static-yaml-inventory $config_dir/tripleo-ansible-inventory.yaml"
|
||||
local inventory_args=" --stack $STACK_NAME --static-yaml-inventory $config_dir/tripleo-ansible-inventory.yaml"
|
||||
if [[ $UPGRADE_NODE_USER != $UPGRADE_NODE_USER_DEFAULT ]]; then
|
||||
inventory_args+=" --ansible_ssh_user $UPGRADE_NODE_USER"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue