Hi,
/etc/puppetlabs/code/modules/amavisd/manifests/init.pp
ensure_resource('exec', '/usr/local/bin/amavisd.sh -sP', {
path => '/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin',
refreshonly => true,
command => 'su -l root -c "/usr/local/bin/amavisd.sh -sP"',
})
One client reports:
Server Error: Could not find resource 'Exec[/usr/local/bin/amavisd.sh
-sP]' in parameter 'notify' (file:
/etc/puppetlabs/code/modules/spamassassin/manifests/init.pp, line: 49)
So I add the same block also to
/etc/puppetlabs/code/modules/spamassassin/manifests/init.pp
But then another client reports:
Server Error: Evaluation Error: Error while evaluating a Function Call,
Duplicate declaration: Exec[/usr/local/bin/amavisd.sh -sP] is already
declared at (file:
/etc/puppetlabs/code/modules/amavisd/manifests/init.pp, line: 26);
cannot redeclare (file:
/etc/puppetlabs/code/modules/spamassassin/manifests/init.pp, line: 16)
I thought that "ensure_resource" should avoid such conflicts? Or am I
doing something wrong?
Thank you!
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/ril76c%24bs8%241%40ciao.gmane.io.