Issue #20841 has been updated by Roger Kennedy.

Status changed from Unreviewed to Needs More Information
Assignee changed from Charlie Sharpsteen to Lee Lowder

What Puppet version are you using? Can you provide an example config and log 
messages from puppet-agent?


I added to puppet.conf
    [agent]
    noop=true

my test:
    root@neoice-dev2:/home/puppet-triage# puppet --version
    2.7.22

    root@neoice-dev2:/home/puppet-triage# date
    Sat Jul 13 08:51:08 PDT 2013
    root@neoice-dev2:/home/puppet-triage# /etc/init.d/puppet start
    Starting puppet agent.
    root@neoice-dev2:/home/puppet-triage# grep "puppet-agent" /var/log/syslog | 
tail
    Jul 13 08:51:17 neoice-dev2 puppet-agent[32696]: 
(/Stage[main]/Ssh::Foo/User[bob]/ensure) current_value absent, should be 
present (noop)
    Jul 13 08:51:17 neoice-dev2 puppet-agent[32696]: 
(/Stage[main]/Ssh::Foo/Ssh_authorized_key[bob_2]/ensure) current_value absent, 
should be present (noop)
    Jul 13 08:51:17 neoice-dev2 puppet-agent[32696]: 
(/Stage[main]/Ssh::Foo/User[frank]/ensure) current_value absent, should be 
present (noop)
    Jul 13 08:51:17 neoice-dev2 puppet-agent[32696]: 
(/Stage[main]/Ssh::Foo/Ssh_authorized_key[frank_1]/ensure) current_value 
absent, should be present (noop)
    Jul 13 08:51:17 neoice-dev2 puppet-agent[32696]: 
(/Stage[main]/Ssh::Foo/Ssh_authorized_key[frank_2]/ensure) current_value 
absent, should be present (noop)
    Jul 13 08:51:17 neoice-dev2 puppet-agent[32696]: 
(/Stage[main]/Ssh::Foo/Ssh_authorized_key[bob_1]/ensure) current_value absent, 
should be present (noop)
    Jul 13 08:51:17 neoice-dev2 puppet-agent[32696]: (Class[Ssh::Foo]) Would 
have triggered 'refresh' from 8 events
    Jul 13 08:51:17 neoice-dev2 puppet-agent[32696]: (Stage[main]) Would have 
triggered 'refresh' from 1 events
    Jul 13 08:51:17 neoice-dev2 puppet-agent[32696]: Finished catalog run in 
0.03 seconds
    Jul 13 08:51:17 neoice-dev2 puppet-agent[32696]: Could not send report: 
Connection refused - connect(2)

I manually verified that the resources were not created. Output looked almost 
identical with Puppet 3.2.2. I ran the 2.7 test on Debian 7 and the 3.2.2 test 
on Debian 7 and CentOS6.


----------------------------------------
Bug #20841: noop not honored when set in [agent] block and puppet is ran as a 
daemon
https://projects.puppetlabs.com/issues/20841#change-94540

* Author: Lee Lowder
* Status: Needs More Information
* Priority: High
* Assignee: Lee Lowder
* Category: 
* Target version: 
* Affected Puppet version: 
* Keywords: noop runinterval daemon no-daemonize agent main config customer
* Branch: 
----------------------------------------
When running the puppet agent in daemon mode and having 'noop=true' set in the 
[agent] stanza, puppet still ran in normal (non noop) mode.

Moving 'noop=true' to the [main] stanza did cause it to be honored.

This was seen on RHEL 5.x and 6.x


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to