Hi Jeffrey,
You cannot override the default parameter to be undef, but you can
override the service resource's behaviour with a resource collector[0].
It's less than ideal because you have to know the name of the service,
but something like this:
class{'apache':}
Service <|title == 'apache'|> {
noop => true,
}
should work. You can alternatively search by the class tag, but be sure
it has no unintended side effects.
Cheers,
David
[0]:
http://docs.puppetlabs.com/puppet/latest/reference/lang_collectors.html
On Fri, Jan 10, 2014 at 6:04 PM, Jeffrey Lewis <jle...@42lines.net>
wrote:
Hello,
I apologize in advance if this question is redundant.
I'm using puppet version 2.7.11 (because that's what Ubuntu 12.04 LTS
has to offer) and I'd like to override a class default parameter with
'undef'. For example, the puppetlabs 'apache' module (version
0.10.0) sets 'ensure => running' for service 'apache' by default. I
do not what puppet to attempt starting or stopping apache, so I'm
trying the following (which does not work):
class {
'apache': service_ensure => undef;
}
The above gives me the default 'ensure => running' for the 'apache'
service. Any idea how I can express 'ensure => undef' when
declaring the apache class in my manifest?
Could suppose I could always hack the 'apache' module, but would
prefer not to.
Thanks,
Jeffrey
--
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/af002012-5084-48e8-9f61-9fac2b64889e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/20140111154917.6463B120BDC%40mail.aqwari.net.
For more options, visit https://groups.google.com/groups/opt_out.