This works: file { "/some/directory": ensure => "directory", recurse => true, purge => true } This also works: file { "/some/directory": owner => "root", group => "root", mode => "640", ensure => "directory", recurse => true } This does not purge, it only sets the owner, group and mode: file { "/some/directory": owner => "root", group => "root", mode => "640", ensure => "directory", recurse => true, purge => true } --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
On Wed, 2008-08-20 at 19:26 -0400, Trevor Vaughan wrote:> This does not purge, it only sets the owner, group and mode: > > > file { "/some/directory": > owner => "root", > group => "root", > mode => "640", > ensure => "directory", > recurse => true, > purge => true > }I think you are encountering the following FAQ item: http://reductivelabs.com/trac/puppet/wiki/FrequentlyAskedQuestions#id45 -- Brice Figureau <brice-puppet@daysofwonder.com> --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Yep, my bad. --walking the walk of FAQ shame-- Trevor On Thu, Aug 21, 2008 at 2:42 AM, Brice Figureau <brice-puppet@daysofwonder.com> wrote:> > On Wed, 2008-08-20 at 19:26 -0400, Trevor Vaughan wrote: >> This does not purge, it only sets the owner, group and mode: >> >> >> file { "/some/directory": >> owner => "root", >> group => "root", >> mode => "640", >> ensure => "directory", >> recurse => true, >> purge => true >> } > > I think you are encountering the following FAQ item: > http://reductivelabs.com/trac/puppet/wiki/FrequentlyAskedQuestions#id45 > > -- > Brice Figureau <brice-puppet@daysofwonder.com> > > > > >--~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Do you happen to know why is this workaround required? On Aug 21, 8:42 am, Brice Figureau <brice-pup...@daysofwonder.com> wrote:> On Wed, 2008-08-20 at 19:26 -0400, Trevor Vaughan wrote: > > This does not purge, it only sets the owner, group and mode: > > > file { "/some/directory": > > owner => "root", > > group => "root", > > mode => "640", > > ensure => "directory", > > recurse => true, > > purge => true > > } > > I think you are encountering the following FAQ item:http://reductivelabs.com/trac/puppet/wiki/FrequentlyAskedQuestions#id45 > > -- > Brice Figureau <brice-pup...@daysofwonder.com>--~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---