weizhouapache commented on code in PR #273: URL: https://github.com/apache/cloudstack-documentation/pull/273#discussion_r886391429
########## source/adminguide/virtual_machines/user-data.rst: ########## @@ -47,6 +47,27 @@ To register a new userdata: :align: center :alt: Regiser userdata dialog box +If userdata content has variables declared in it, user can register the Userdata +with userdata parameters. + +For example, if userdata content is like below having a custom variable "variable1" + .. code:: bash + ## template: jinja + #cloud-config + runcmd: + - echo 'TestVariable {{ ds.meta_data.variable1 }}' >> /tmp/variable + - echo 'Hostname {{ ds.meta_data.public_hostname }}' > /tmp/hostname Review Comment: @harikrishna-patnala thanks for the update. strange I cannot see this piece of code in doc. http://qa.cloudstack.cloud/docs/WIP-PROOFING/pr/273/adminguide/virtual_machines/user-data.html -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@cloudstack.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org