Issue #6526 has been updated by Ben Hughes.

Assignee set to Nigel Kersten

<pre>
[ben@Paresthesia:~]% envpuppet puppet --version
0.24.6
[ben@Paresthesia:~]% cat ~/test.pp             
class foo {
        $noop = true

        file{ "/tmp/test1":
                content => "I should not work in noop mode!",
        }
}

node default {
        include foo
}
[ben@Paresthesia:~]% ls -la /tmp/test1          
ls: /tmp/test1: No such file or directory
[ben@Paresthesia:~]% envpuppet puppet ~/test.pp 
notice: //Node[default]/foo/File[/tmp/test1]/content: is absent, should be I 
should not work in noop mode! (noop)
[ben@Paresthesia:~]% ls -la /tmp/test1          
ls: /tmp/test1: No such file or directory
</pre>

Then switching to 2.6.1:

<pre>
[ben@Paresthesia:~]% envpuppet puppet --version
2.6.4
[ben@Paresthesia:~]% envpuppet puppet apply ~/test.pp 
notice: /Stage[main]/Foo/File[/tmp/test1]/ensure: defined content as 
'{md5}73878c2b0e1386f3127bb77f5a1c96e3'
[ben@Paresthesia:~]% ls -la /tmp/test1                
-rw-r--r--  1 ben  wheel  31  2 Mar 12:42 /tmp/test1
</pre>

I think that sums up the problem Kal?

So yeah, this looks like a regression. I can't find a mention of it in the 
release notes (https://projects.puppetlabs.com/projects/1/wiki/Release_Notes).
----------------------------------------
Bug #6526: $noop metaparameter no longer works
https://projects.puppetlabs.com/issues/6526

Author: Kal McFate
Status: Unreviewed
Priority: Normal
Assignee: Nigel Kersten
Category: 
Target version: 
Affected Puppet version: 2.6.4
Keywords: 
Branch: 


In 0.24.6 you could use $noop = true to specify no-op mode at top level or per 
class (taken from the Pulling Strings book.) This no longer seems to work in 
any scope in 2.6.4. I have tried many permutations and all seem to ignore the 
value of $noop.


-- 
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.

Reply via email to