Ask Your Question

How to remote install agent with ensure => 'stopped' and enable => 'false'

asked 2014-12-17 15:56:26 -0600

Pindish gravatar image

Per the instructions given here, agent installation can be customized with configuration parameters.

We need to have pe-puppet installed with both ensure => 'stopped' and enable => false. That is, just install the agent, do not activate it. What parameters should we pass in to install.bash?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-12-17 21:33:06 -0600

GregLarkin gravatar image

The command-line configuration parameters that you refer to can only manage entries in the puppet.conf file and can't control the activation or deactivation of the Puppet agent service.

However, if you are building a script to perform the agent installation, you could add the following line immediately after installation to disable the service and stop it:

/opt/puppet/bin/puppet resource service pe-puppet ensure=stopped enable=false
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: 2014-12-17 15:56:26 -0600

Seen: 96 times

Last updated: Dec 17 '14