[chef] Is there a difference between setting attributes like this?


Chronological Thread 
  • From: Greg Barker < >
  • To: " " < >
  • Subject: [chef] Is there a difference between setting attributes like this?
  • Date: Thu, 12 Feb 2015 15:41:56 -0800

This is for my "base cookbook", wasn't sure if there was a difference between setting attributes like this:

node.set["openssh"]["server"] = {
  "port" => 22,
  "permit_root_login" => "no"
}

Versus setting them like this:
node.set["openssh"]["server"]["port"] = 22
node.set["openssh"]["server"]["permit_root_login"] = "no"

Thanks!



Archive powered by MHonArc 2.6.16.

§