That doesn't work - I still get the same type of errors, with something like this:
file { "/usr/local/nagios": ; "/usr/local/nagios/libexec": requires => File['/usr/local/nagios'], owner => 'root', mode => 655, group => 'root', ensure => directory, } It says that require is an invalid parameter. Here is the full output of the log errors: Mar 31 16:43:02 my-server puppet-agent[28997]: Starting Puppet client version 2.6.4 Mar 31 16:43:03 my-server puppet-agent[28997]: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid parameter requires at /etc/puppet/manifests/classes/nagios-test.pp:26 on node my- server Mar 31 16:43:03 my-server puppet-agent[28997]: Using cached catalog Mar 31 16:43:04 my-server puppet-agent[28997]: (/Stage[main]/Nagios- test/File[/usr/local/nagios/libexec]) Failed to generate additional resources using 'eval_generate': Error 400 on SERVER: Not authorized to call search on /file_metadata/usr/local/nagios/libexec-empty with {:checksum_type=>"md5", :recurse=>true, :links=>"manage"} Mar 31 16:43:04 my-server puppet-agent[28997]: (/Stage[main]/Nagios- test/File[/usr/local/nagios/libexec]) Could not evaluate: Error 400 on SERVER: Not authorized to call find on /file_metadata/usr/local/nagios/ libexec-empty Could not retrieve file metadata for puppet:///usr/local/nagios/libexec-empty: Error 400 on SERVER: Not authorized to call find on /file_metadata/usr/local/nagios/libexec- empty at /etc/puppet/manifests/classes/nagios-test.pp:17 Mar 31 16:43:04 my-server puppet-agent[28997]: (/Stage[main]/Nagios- test/File[/usr/local/nagios/libexec/check_nfs_mounts.sh]) Dependency File[/usr/local/nagios/libexec] has failures: true Mar 31 16:43:04 my-server puppet-agent[28997]: (/Stage[main]/Nagios- test/File[/usr/local/nagios/libexec/check_nfs_mounts.sh]) Skipping because of failed dependencies Mar 31 16:43:04 my-server puppet-agent[28997]: Finished catalog run in 0.30 seconds On Mar 31, 4:30 pm, Arnau Bria <arnaub...@pic.es> wrote: > On Thu, 31 Mar 2011 13:19:21 -0700 (PDT) > > Forrie Forrie wrote: > > I only have a directory like: > > > /usr/local/nagios/libexec > > > for which I want to manage the plugins on the clients. It's pretty > > simple. > > > So are you suggesting the better approach may be to exec a mkdir -p as > > a requirement in the head of the *.pp as a dependency? Meaning, it > > would detect if the directory structure is already there and if not, > > mkdir -p. > > or simply, add more directories as depency... > > file { > '/usr/local/nagios': ; > '/usr/local/nagios/libexec': > requires => File['/usr/local/nagios'], > owner => 'nagios', > mode => 755; > > } > > HTH, > Arnau -- 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.