Hi @r00ta /@troyanov /all…Can anybody tell how to pass cloud init via api. I had tried multiple ways like using - d user-data=custom-cloudinit.yaml, --data-urlencode user_data@“custom-cloudinit.yaml” but none seems working…can u tell the correct way to pass cloud init via api with exact parameters.
please check MAAS API . You have to submit it as a b64econded string
Hi @akashram611
user_data=$(base64 -w 0 custom-cloudinit.yaml)
should work.
-w 0
is to disable line wrapping
https://linux.die.net/man/1/base64