Add support to generate inventory for OSP17
This patch specifies the overcloud_stack_name to generate inventory. Change-Id: Id6f8244a77b0e805507588f154e21a39fd07e3c7
This commit is contained in:
parent
e043181084
commit
bbf6e1f09b
@ -12,6 +12,7 @@ function usage
|
||||
}
|
||||
|
||||
user="stack"
|
||||
overcloud_stack_name=overcloud
|
||||
uncomment_localhost=false
|
||||
tripleo_ip_address=
|
||||
|
||||
@ -44,9 +45,9 @@ fi
|
||||
out_file="hosts.yml"
|
||||
if [ $uncomment_localhost ]; then
|
||||
source ~/stackrc
|
||||
tripleo-ansible-inventory --static-yaml-inventory ${out_file}
|
||||
tripleo-ansible-inventory --stack ${overcloud_stack_name} --static-yaml-inventory ${out_file}
|
||||
else
|
||||
file_path=$(ssh -tt -o "UserKnownHostsFile /dev/null" -o "StrictHostKeyChecking no" ${user}@${tripleo_ip_address} ". ~/stackrc; tripleo-ansible-inventory --static-yaml-inventory ${out_file}; pwd ${out_file}")
|
||||
file_path=$(ssh -tt -o "UserKnownHostsFile /dev/null" -o "StrictHostKeyChecking no" ${user}@${tripleo_ip_address} ". ~/stackrc; tripleo-ansible-inventory --stack ${overcloud_stack_name} --static-yaml-inventory ${out_file}; pwd ${out_file}")
|
||||
scp -o "UserKnownHostsFile /dev/null" -o "StrictHostKeyChecking no" ${user}@${tripleo_ip_address}:${file_path}/${out_file} .
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user