how pass the bash script's parameter into heat template.
Dear all,
Could you please help to let know how to pass the bash script's parameter into heat template? Thank you very much.
I'd like to show an example to make my question more clear.
Suppose I have two heat templates. test.env.yaml and test.hot.yaml.
[root@vm1 ~]#cat test.env.yaml
parameters:
.....
.....
[root@vm1 ~]#cat test.hot.yaml
heat_template_
parameters:
_user_
echo ${IPV6_
exit 0
resources:
test_group1:
type: OS::Nova::Server
properties:
.....
My question is:
how to pass the result of the command
`echo ${ipv6_addr} | grep \"/\" | cut '/' -d -f2`
to the bash script in the heat template?
I tried to echo the IPV6_ADDR_POSTFIX in the bash script. When check the user_data.txt in the VM and found that IPV6_ADDR_POSTFIX is not replaced by the result of the command: `echo ${ipv6_addr} | grep \"/\" | cut '/' -d -f2`
Thanks,
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Jeffrey Guan
- Solved:
- Last query:
- Last reply: