chakkerz
2009-Aug-14 00:44 UTC
[Puppet Users] mailalias ... re-running newaliases despite no changes being made
Hello there
I''ve got a module that sets the root mail destination, and thereafter
runs newaliases:
class shared-mailaliases
{
if ($skip_mailaliases != "true")
{
mailalias
{ "root":
ensure => present,
recipient => $operatingsystem ?
{
solaris => "sunroot+
$hostname@example.com",
default => "linuxroot+
$hostname@example.com"
,
},
notify => Exec["$newaliases_cmd"],
}
exec
{ "$newaliases_cmd":
cwd => "/",
}
}
}
Is there a way of stopping this? it''s one more false positive my
offsider''s intrusion detection system is throwing up. But
realistically, we don''t want this file to change ... so we want to
monitor it.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
Peter Meier
2009-Aug-16 12:09 UTC
[Puppet Users] Re: mailalias ... re-running newaliases despite no changes being made
Hi> I''ve got a module that sets the root mail destination, and thereafter > runs newaliases: > > class shared-mailaliases > { > if ($skip_mailaliases != "true") > { > mailalias > { "root": > ensure => present, > recipient => $operatingsystem ? > { > solaris => "sunroot+ > $hostname@example.com", > default => "linuxroot+ > $hostname@example.com" > , > }, > notify => Exec["$newaliases_cmd"], > } > > exec > { "$newaliases_cmd": > cwd => "/", > } > } > } > > Is there a way of stopping this? it''s one more false positive my > offsider''s intrusion detection system is throwing up. But > realistically, we don''t want this file to change ... so we want to > monitor it.have a look at refreshonly of exec. 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 -~----------~----~----~----~------~----~------~--~---