On 03/31/2011 11:13 PM, Forrie wrote:
> I found that the file struct under /etc/puppet/files was owned by root
> (oops, fixed).
> 
> However,
> 
> in using this method outlined earlier, I'm still not able to get the
> desired result:

That's because this still isn't right.

> 
>>     file {  "/usr/local/nagios": ;

This resource is missing an ensure, which should be "directory".

>>             "/usr/local/nagios/libexec":
>>                 requires => File['/usr/local/nagios'],
>>                 owner    => 'root',
>>                 mode     => 655,
>>                 group    => 'root',
>>                 ensure   => directory,
>>     }

The hint about an explicit require was a bad one. Puppet will add this
require on its own. You want to do this:

file { [ "/usr/local/nagios",
         "/usr/local/nagios/libexec"]:
             ensure => directory,
             mode => 644, # 655 is nonsense.
             group => "root";
}

655 is nonsense because puppet changes 644 (and 655) to 755 (when you
specify +r, you get +x for free).

Cheers,
Felix

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to