hi,
I have a problem with purging. I tried to create directory that are:
file {
"$basedir":
ensure => directory,
owner => ''root'',
purge => true,
recurse => true,
mode => 640;
}
but i can create whatever file in the directory puppet never delete
them. Do i need to do something else to make this work ? the fun thing
is that it changes the file''s mode but do not purge it :)
puppetversion => 0.24.5
facterversion => 1.5.1
regards,
Jean.
--~--~---------~--~----~------------~-------~--~----~
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 Sat, May 16, 2009 at 09:45:10PM +0200, jean wrote:> > hi, > > I have a problem with purging. I tried to create directory that are: > > file { > "$basedir": > ensure => directory, > owner => ''root'', > purge => true,I think purge and ensure conflict? -Robin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Robin Lee Powell a écrit :> On Sat, May 16, 2009 at 09:45:10PM +0200, jean wrote: > >> hi, >> >> I have a problem with purging. I tried to create directory that are: >> >> file { >> "$basedir": >> ensure => directory, >> owner => ''root'', >> purge => true, >> > > I think purge and ensure conflict? > > -Robin >hummm, not far, it seems this is the owner and mode .. ? So it seems we cannot create a directory owned by root without loosing the purging capability :( regards, JEan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi>>> I have a problem with purging. I tried to create directory that are: >>> >>> file { >>> "$basedir": >>> ensure => directory, >>> owner => ''root'', >>> purge => true, >>> >> I think purge and ensure conflict? >> >> -Robin >> > hummm, not far, > > it seems this is the owner and mode .. ? So it seems we cannot create a > directory owned by root without loosing the purging capability :(no you can do that without any problems: http://reductivelabs.com/trac/puppet/wiki/FrequentlyAskedQuestions#i-want-to-manage-a-directory-and-purge-its-contents 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---