How to set up variables in multi-part cloud-init userdata scripts? -


i want able set variable in shell-script - part of multi-part cloud-init userdata configuration setup, , use variable in cloud-config script comes later in multi-part userdata.

is possible do? example helpful.

you use file. set "variable" echo "value" > /tmp/myvar , echo `cat /tmp/myvar`.


Comments

Popular posts from this blog

git - Initial Commit: "fatal: could not create leading directories of ..." -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -