install puppet client to many linux clients
How to push the puppet agent to many Linux servers with minimal administration
An addition to the yum method. This will set the server in the
puppet.conf file easily:
$ puppet config set server puppet.example.com --section main
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 https://yum.puppetlabs.com/puppetlabs-release-pc1-el-7.noarch.rpm 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.
Asked: 2016-02-18 05:04:52 -0500
Seen: 83 times
Last updated: Feb 19 '16