I'd like to create a node for chef infra server using the knife command from workstation.
knife node create [node_name]
Then you will be asked to enter node information in the editor.
I'd like to automate this part, but is there a way to create nodes with only cli?
As far as the documentation goes, there seems to be a way to create a node by specifying a pre-prepared JSON file.
https://docs.chef.io/workstation/knife_node/ #from-file
Use the from file
argument to create a node using existing node data as a template.
Example:Create a node using a JSON file
knife node from file "PATH_TO_JSON_FILE"
© 2024 OneMinuteCode. All rights reserved.