I expect that there is something simple that I am missing, but if I set a file to "ensure => absent", puppet is actually just renaming it to "${ORIGINALNAME}puppet" (i.e., appending puppet to the name). Did I forget to turn off a debug flag somewhere? The file definition that I am using is just: file { "/usr/lib/xen-tools/debian.d/55-create-dev": ensure => absent } After puppet runs, there ends up being a file in that directory named "55-create-devpuppet". Actually, come to think of it, I have also had this happen when I replaced a package-installed symlink with a file (by specifying the file to puppet). Thanks, Jordan
On Thu, Jun 07, 2007 at 04:33:09PM -0700, Jordan Share wrote:> I expect that there is something simple that I am missing, but if I set a file to "ensure => absent", puppet is actually just renaming it to "${ORIGINALNAME}puppet" (i.e., appending puppet to the name). > > Did I forget to turn off a debug flag somewhere?Nope, it''s just Puppet being paranoid. Read the docs for the ''backup'' parameter of the File resource type, and possibly all about the concept of ''filebuckets'' if you''re interested in keeping backups. - Matt
Matthew Palmer wrote:> On Thu, Jun 07, 2007 at 04:33:09PM -0700, Jordan Share wrote: >> I expect that there is something simple that I am missing, but if I set a file to "ensure => absent", puppet is actually just renaming it to "${ORIGINALNAME}puppet" (i.e., appending puppet to the name). >> >> Did I forget to turn off a debug flag somewhere? > > Nope, it''s just Puppet being paranoid. Read the docs for the ''backup'' > parameter of the File resource type, and possibly all about the concept of > ''filebuckets'' if you''re interested in keeping backups.Ah, for almost all of my stuff I was using the remotefile function which I cribbed from the wiki. That is setting backup to false by default. Thus, I only encountered this when I finally did a file definition by hand. Still...those docs say "Puppet automatically creates a local filebucket named puppet and defaults to backing up there". But it seem as if it is backing up in the directory instead. No? Jordan
On Jun 7, 2007, at 7:32 PM, Jordan Share wrote:> > Ah, for almost all of my stuff I was using the remotefile function > which I cribbed from the wiki. That is setting backup to false by > default. Thus, I only encountered this when I finally did a file > definition by hand. > > Still...those docs say "Puppet automatically creates a local > filebucket named puppet and defaults to backing up there". But it > seem as if it is backing up in the directory instead. No?It depends on the version -- automatically backing up to a filebucket is relatively recent, maybe 0.22.3 or 0.22.4. -- It is curious that physical courage should be so common in the world and moral courage so rare. -- Mark Twain --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com