Hi, I am using puppet 2.6.2 and stepped over a situation, I cannot explain to myself. So here is the deal: - I want to source several directories and files one time to a client - with the first puppet run, puppet should copy the files and directories to the client to the specified location - if files are changed in their content, puppet does not replace them Up to this point everything works fine, but here comes the problem: - if files are deleted, puppet "restores" them and copies them back from the master And thats what I do not want, I have tried several things but did not get the trick how to prevent puppet from being so thoughtful. Can anyone give me a hint how to stop puppet from replacing deleted files? Here is my puppet construct: file { "/oracle/files/": source => "puppet:///modules/oracle_prereq/ORACLE_BASE", ensure => "directory", recurse => "true", replace => "false", checksum => "none", } I think one problem might be the checksums, I have no clue how to prevent puppet from checkuming those files! -- 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.
You should propably package these files. Then you will not have this problem. The replace option for the file type is NOT intended for what you are trying. Regards, Stefan. On Nov 29, 4:34 pm, Os <ozzim...@googlemail.com> wrote:> Hi, > > I am using puppet 2.6.2 and stepped over a situation, I cannot explain > to myself. So here is the deal: > - I want to source several directories and files one time to a client > - with the first puppet run, puppet should copy the files and > directories to the client to the specified location > - if files are changed in their content, puppet does not replace them > > Up to this point everything works fine, but here comes the problem: > - if files are deleted, puppet "restores" them and copies them back > from the master > > And thats what I do not want, I have tried several things but did not > get the trick how to prevent puppet from being so thoughtful. Can > anyone give me a hint how to stop puppet from replacing deleted files? > > Here is my puppet construct: > file { "/oracle/files/": > source => "puppet:///modules/oracle_prereq/ORACLE_BASE", > ensure => "directory", > recurse => "true", > replace => "false", > checksum => "none", > } > > I think one problem might be the checksums, I have no clue how to > prevent puppet from checkuming those files!-- 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 Mon, Nov 29, 2010 at 9:21 PM, ZipKid <zipkid.com@gmail.com> wrote:> You should propably package these files. Then you will not have this > problem. > The replace option for the file type is NOT intended for what you are > trying. >Sorry for barging in, but "package" the files, in the sense... ? -- 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 Mon, Nov 29, 2010 at 3:54 PM, Mohit Chawla <mohit.chawla.binary@gmail.com> wrote:> On Mon, Nov 29, 2010 at 9:21 PM, ZipKid <zipkid.com@gmail.com> wrote: > >> You should propably package these files. Then you will not have this >> problem. >> The replace option for the file type is NOT intended for what you are >> trying. >> > > Sorry for barging in, but "package" the files, in the sense... ? >As in using your operating systems package management. If you''re running Debian/Ubuntu that''ll be a .deb, if you''re using RedHat/CentOS/Fedora that''ll be a .rpm. -- 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.
> As in using your operating systems package management. If you''re running > Debian/Ubuntu that''ll be a .deb, if you''re using RedHat/CentOS/Fedora > that''ll be a .rpm.Thanks for the advice, thats something I did not think about but absolutly solves my problem! Although I am a bit confused about the puppet command mot working for me. -- 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 Nov 30, 2010, at 5:25 AM, Os wrote:>> As in using your operating systems package management. If you''re running >> Debian/Ubuntu that''ll be a .deb, if you''re using RedHat/CentOS/Fedora >> that''ll be a .rpm. > > Thanks for the advice, thats something I did not think about but > absolutly solves my problem! > Although I am a bit confused about the puppet command mot working for > me.That''s because Puppet doesn''t remember almost any state between runs. "Remembering" that it copied the file just isn''t part of puppet''s model. In puppet''s case, "replace" means, do not change the content of an existing file. -- 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.