Issue #7793 has been updated by Stephen Johnson.
The issues is still present
class test ($string = "hello")
{
file {'/tmp/test':
ensure => file,
content => $string,
}
file {'/tmp/test2':
ensure => file,
content => $string,
}
}
class{'test': noop => true}
I expected all the resource in the class to be noop but it is actually still
applying the resource.
----------------------------------------
Bug #7793: setting the $noop metaparameter as class parameter does not work
https://projects.puppetlabs.com/issues/7793#change-80110
Author: Michael GrĂ¼ner
Status: Accepted
Priority: Normal
Assignee:
Category: metaparameters
Target version:
Affected Puppet version: 2.6.8
Keywords: noop
Branch:
As explained in https://projects.puppetlabs.com/issues/6526 I am trying to
set the $noop metaparameter as a class parameter to set a class and all
its resources to $noop. This does not seem to work:
<pre>
mgruener@lt-mgr:~$ cat test.pp
class foo($noop=true) {
file{ "/tmp/test1":
content => "I should not work in noop mode!",
}
}
node default {
include foo
}
mgruener@lt-mgr:~$ envpuppet puppet --version
2.6.8
mgruener@lt-mgr:~$ envpuppet puppet apply test.pp
warning: noop is a metaparam; this value will inherit to all contained resources
notice: /Stage[main]/Foo/File[/tmp/test1]/ensure: defined content as
'{md5}73878c2b0e1386f3127bb77f5a1c96e3'
notice: Finished catalog run in 0.01 seconds
mgruener@lt-mgr:~$ ls -la /tmp/test1
-rw-r--r-- 1 mgruener mgruener 31 2011-06-06 11:56 /tmp/test1
mgruener@lt-mgr:~$
</pre>
I would expect it to work as if the noop parameter was set
directly for the resource.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.