Ask Your Question

install puppet client to many linux clients

asked 2016-02-18 05:04:52 -0500

Slim Garci gravatar image

How to push the puppet agent to many Linux servers with minimal administration

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2016-02-19 07:39:51 -0500

asktbt gravatar image

An addition to the yum method. This will set the server in the puppet.conf file easily:

$ puppet config set server --section main
edit flag offensive delete link more

answered 2016-02-19 00:00:27 -0500

rajeevsharma gravatar image

Hi Slim,

There could be several ways of installing puppet agent on many servers. I would have done one of the ways described below where you would need to make a small script and ssh to existing linux servers. The script would consist following algorithm:

Method using yum

rpm -Uvh
service puppet start
sudo yum install puppet-agent
server = puppet [add into /etc/puppetlabs/puppet/puppet.conf]
sudo /opt/puppetlabs/bin/puppet resource service puppet ensure=running enable=true

Note: make sure your agent node is resolving puppet master with hostname "puppet"

Method using curl command:

curl -k https://<puppetserver>:8140/packages/current/install.bash | sudo bash

Here, the curl command will do everything for you(installation, configuration and putting CSR). Either of the commands given above should be wrapped into a script and ssh to all linux server. Then after the puppet agent will put CSR on puppet master which can be accepted using below command to start communication between agent and master.

puppet cert sign --all

I hope this will help to resolve your problem.

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


Asked: 2016-02-18 05:04:52 -0500

Seen: 83 times

Last updated: Feb 19 '16