Ask Your Question

how to set a group of servers to 'noop = true'

asked 2015-10-07 08:53:10 -0600

yrb6924 gravatar image

How can I set a pre-determined set of servers to have 'noop = true' at the bottom of their puppet.conf file?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-10-07 21:29:06 -0600

lupin gravatar image

updated 2015-10-07 22:48:47 -0600

There are multiple ways of achieving this, depending on your setup.

  • By modifying the deb/rpm post-install file
  • By creating a module which modify the puppet config file, assign it to your group of servers and setting the parameter.

The second one imho is easier to achieve and more flexible.

 class puppet_agent ( $noop = false, )
       if $noop == true {
          file_line { '/etc/puppet.conf':
             path => '/etc/puppet/puppet.conf',
             line => 'noop = true',
             notify => Service[puppet],
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-10-07 08:53:10 -0600

Seen: 94 times

Last updated: Oct 07 '15