1

Is it possible to attributes from knife command (ssh),

e.g.

knife ssh ‘role:server’ ‘sudo chef-client’ <-- how to pass attributes to remote?
Ryan
  • 5,341
  • 21
  • 71
  • 87

1 Answers1

3

You should set the attributes you want on the node object(s) on the Chef Server.

You can do this through a variety of methods.

  • Add the attributes to the role you've applied to the nodes - this probably the best for systems that are all in a single role.
  • Modify the node(s) directly, with knife node edit, or script it with knife exec.
  • Set the attributes in an environment, if you're using those.
jtimberman
  • 7,511
  • 2
  • 33
  • 42