user60679
user60679

Reputation: 729

when to use --json-attributes option in knife bootstrap command

I have bootstrap a node using the --json-attributes, my JSON file does not contain some attributes, but after bootstrapping the node, node does contain additional attributes, I wonder from where this additional attributes come from.

 knife bootstrap --json-attributes

Upvotes: 1

Views: 860

Answers (1)

coderanger
coderanger

Reputation: 54267

It is used to set additional data on the node itself during creation. This is generally not considered a good idea as it encourages special-snowflake servers which are not easy to recreate. Try putting those attributes on a role or cookbook instead.

Upvotes: 1

Related Questions