[chef] Re: Re: File Provider Changes in 11.6


Chronological Thread 
  • From: Daniel DeLeo < >
  • To:
  • Subject: [chef] Re: Re: File Provider Changes in 11.6
  • Date: Mon, 10 Jun 2013 09:20:03 -0700


On Friday, June 7, 2013 at 2:48 PM, Jesse Nelson wrote:

This is awesome! So excited for template methods. This and partials have been things I wanted to see for a long time. Thanks to everyone who worked on this stuff.

Dan is there an easy way to detect file resources that have not specified modes? Might be nice to have an option flag that raises this. Maybe a simple cook that will emit all resources that might be effected on the upcoming change.

Here's a more detailed breakdown of the changes:

* cookbook_file:  some 0600 files created 0644 for umask 022 users 
* directory: no change
* file: no change
* remote_directory: no change
* remote_file:  old ruby, no change.  new_ruby, some 0600 files created 0644 for umask 022 users
* template:  old ruby, no change.  new_ruby, some 0600 files created 0644 for umask 022 users

Where "old ruby" is 1.9.2 and lower.

It should be pretty straightforward to check the RUBY_VERSION constant to figure out what you should look for, then iterate through `run_context.resource_collection` to find resources where the mode is nil.

-- 
Daniel DeLeo




Archive powered by MHonArc 2.6.16.

§