Thanks Thomas for your help ! I'll read all references that you pointed and test your module !! :)
On Tue, Mar 30, 2010 at 12:04 PM, Thomas Bellman <bell...@nsc.liu.se> wrote: > Darvin Denmian wrote: > >> I'm getting the following error: >> >> err: Could not retrieve catalog from remote server: Error 400 on >> SERVER: Could not find resource type line >> >> The lines bellow are responsable for this issue >> >> line { kernel_log: >> file => "/etc/syslog.conf", >> line => "kern.* /var/log/kernel.log", >> ensure => present, >> } >> >> What is wrong with those lines? >> Is there some doc about the "line" resource? > > There is no resource type named "line" in standard Puppet. > > http://projects.puppetlabs.com/projects/puppet/wiki/Simple_Text_Patterns > has some examples of implementing one yourself using define and exec. > I would recommend against those versions, though, because they are > rather fragile; if you have "strange" characters in the lines you > want to add, they will break horribly. > > Preferably, use the augeas type instead if you can. I don't think > Augeas can handle syslog.conf at the moment, though. > > Secondary recommendation (and shameless plug :-), use my module > "nsc-puppet-utils", which has a custom type named 'ensure_line' > which does this, but is more robust and has more features than > the examples at the wiki. You will need to deal with plugins, > though, and understanding how to do that from the documentation > can be somewhat daunting. You can clone that module from > <http://www.nsc.liu.se/~bellman/nsc-puppet-utils.git>. > > > /Bellman > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-us...@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. > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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.