G''day my module''s init.pp: class mailaliases { if ($skip_mailaliases != "true") { mailalias { "root": # ensure => absent, ensure => present, target => "/etc/aliases", recipient => "linuxroot+ $hostname@example.org", notify => Exec["newaliases"], } } } does nothing, my client continues to look like : [root@puppetslave lenses]# grep root: /etc/aliases #root: marc what am i missing? from the recipes i''ve looked at (and the one post on here which i just completely failed to understand) i''m not gathering what the magic incantation is that''s lacking. cheers chakkerz --~--~---------~--~----~------------~-------~--~----~ 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
2009-Feb-04 06:12 UTC
[Puppet Users] Re: mailalias ... not doing anything???
On Tue, Feb 03, 2009 at 08:14:57PM -0800, chakkerz wrote:> > G''day > > my module''s init.pp: > > class mailaliases > { > if ($skip_mailaliases != "true") > { > mailalias > { "root": > # ensure => absent, > ensure => present, > target => "/etc/aliases", > recipient => "linuxroot+ > $hostname@example.org", > notify => Exec["newaliases"], > } > } > } > > does nothing, my client continues to look like : > [root@puppetslave lenses]# grep root: /etc/aliases > #root: marcYou need to specify a name explicitely, I think: mailalias { "www-data phone home": ensure => present, name => "www-data", recipient => "rlpowell@digitalkingdom.org"; } -Robin -- They say: "The first AIs will be built by the military as weapons." And I''m thinking: "Does it even occur to you to try for something other than the default outcome?" -- http://shorl.com/tydruhedufogre http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/ --~--~---------~--~----~------------~-------~--~----~ 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 Feb 3, 2009, at 10:14 PM, chakkerz wrote:> > G''day > > my module''s init.pp: > > class mailaliases > { > if ($skip_mailaliases != "true") > { > mailalias > { "root": > # ensure => absent, > ensure => present, > target => "/etc/aliases", > recipient => "linuxroot+ > $hostname@example.org", > notify => Exec["newaliases"], > } > } > } > > does nothing, my client continues to look like : > [root@puppetslave lenses]# grep root: /etc/aliases > #root: marc > > what am i missing? from the recipes i''ve looked at (and the one post > on here which i just completely failed to understand) i''m not > gathering what the magic incantation is that''s lacking.That looks like it should work. When you run with debugging, does it talk about rewriting the file? -- Morgan''s Second Law: To a first approximation all appointments are canceled. --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.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 -~----------~----~----~----~------~----~------~--~---
yeah ... "ensure => present" helped, i must have misunderstood the doco... Also, the name does not need to be there Thanks for the help chakkerz --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---