[chef] directory resource (recursive) not changing ownership below top level


Chronological Thread 
  • From: "Van Fossan,Randy" < >
  • To: < >
  • Subject: [chef] directory resource (recursive) not changing ownership below top level
  • Date: Fri, 27 Jan 2012 11:56:42 -0500

I have a recipe and in it I am trying to change the ownership recursively of an existing directory, subdirectory and files.   I thought the Directory resource would be what I should use.   However, it only changes the top level directory…    How could I do this idempotently if the directory resource doesn’t work?

 

 

directory "/var/spool/postfix" do

  owner "postfix"

  group "root"

  mode "0755"

  recursive true

  action :create

end

 

Randy




Archive powered by MHonArc 2.6.16.

§