[chef] Re: Issue with chef-client 12 on OS X workstations


Chronological Thread 
  • From: "Julian C. Dunn" < >
  • To:
  • Subject: [chef] Re: Issue with chef-client 12 on OS X workstations
  • Date: Wed, 31 Dec 2014 17:11:36 -0500 (EST)
  • Organization: Aquezada Productions

On Tue, 30 Dec 2014, Ryan Moon wrote:

I use chef to manage OS X workstations, slowly but surely moving out of my old
method of building pkg installers for everything than using munki.

Prior to updating to chef 12 (for instance running 11.12.8) on my bootstrapped
workstations this portion of a recipe I use to set a base config would work:

        directory "/Users/#{node['current_user']}/.ssh" do
            owner node['current_user']
            mode "0700"
            action :create
        end

With the result being that an .ssh folder was created for the logged in admin
user, for instance foo-admin, not the root user.

However after updating to chef-client 12, this same recipe fails, as it tries
to create a .ssh folder for root, who doesn't have a home at /Users.

Note that the semantics for node['current_user'] changed in Chef 12/Ohai 8 to correct confusing behavior when running under sudo.

https://github.com/opscode/ohai/pull/386

- Julian

[ Julian C. Dunn 
< >
          * Sorry, I'm    ]
[ WWW: http://www.aquezada.com/staff/julian    * only Web 1.0  ;]
gopher://sdf.org/1/users/keymaker/           * compliant!    ;]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9       ]



Archive powered by MHonArc 2.6.16.

§