Hi > Hi, so I'm exporting a nagios_host type that gets collected by the > nagios server and each host has it's own file, however, when each host > file is written, it's only readable by root. How can I make all the > files mode 644 when they're written? Or how would I go about using > the "file" type to make sure that all the files in a dir are mode > 644? Thanks.
you can define a file resource to manage these files and set the appropriate modes in this resource. have a look @ how I do it on: https://git.puppet.immerda.ch/?p=module-nagios;a=blob;f=manifests/init.pp;h=1df5008493aaeecae97a8a2e7754ad9e0634c604;hb=HEAD from line 83 on. cheers pete --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---