You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.
After some digging I can't seem to get the --json-attributes command to add the associated attributes to the first-boot.json file on the bootstrapped node.
Example command:
knife esx vm create --vm-name "node" --use-template Ubuntu_1210_template.vmdk --verbose true --distro ubuntu12.04-19-gems --vm-memory 2048 -x miles -i ~/.ssh/id_rsa --run-list $RUN_LIST --json-attributes '{"set_fqdn":"node", "set_hostname":"node"}'
Hi all,
After some digging I can't seem to get the --json-attributes command to add the associated attributes to the first-boot.json file on the bootstrapped node.
Example command:
knife esx vm create --vm-name "node" --use-template Ubuntu_1210_template.vmdk --verbose true --distro ubuntu12.04-19-gems --vm-memory 2048 -x miles -i ~/.ssh/id_rsa --run-list $RUN_LIST --json-attributes '{"set_fqdn":"node", "set_hostname":"node"}'
Resulting first-boot.json file
{"run_list":["recipe[chef-client]","recipe[chef-cookbook-hostname]","recipe[users]","recipe[chef-ipaddress]"]}
If I manually bootstrap the node using chef-client providing the -j atribute and an associated json file it works as expected.
Any thoughts?
The text was updated successfully, but these errors were encountered: