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
(cherrypicked from commit 878e5376d3
)
This commit is contained in:
parent
6f15c96eb0
commit
7a136d8fb2
|
@ -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-inventory $config_dir/tripleo-ansible-inventory"
|
||||
local inventory_args=" --plan $STACK_NAME --static-inventory $config_dir/tripleo-ansible-inventory"
|
||||
if [[ $UPGRADE_NODE_USER != $UPGRADE_NODE_USER_DEFAULT ]]; then
|
||||
inventory_args+=" --ansible_ssh_user $UPGRADE_NODE_USER"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue