Difference between revisions of "GCube Puppet integration"
From D4Science Wiki
Andrea.manzi (Talk | contribs) (→Puppet client test) |
Andrea.manzi (Talk | contribs) (→Puppet client installation) |
||
Line 7: | Line 7: | ||
* rpm -ivh http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-7.noarch.rpm | * rpm -ivh http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-7.noarch.rpm | ||
* yum install puppet | * yum install puppet | ||
− | * Make sure that pluginsync is enabled on your puppet client. Open the file /etc/puppet/puppet.conf and enter | + | * Make sure that pluginsync is enabled on your puppet client and the puppet master server address is configured |
+ | |||
+ | . Open the file /etc/puppet/puppet.conf and enter | ||
# vim /etc/puppet/puppet.conf | # vim /etc/puppet/puppet.conf | ||
Line 13: | Line 15: | ||
... | ... | ||
pluginsync = true | pluginsync = true | ||
+ | ... | ||
+ | |||
+ | [agent] | ||
+ | ... | ||
+ | server=node12.d.d4science.research-infrastructures.eu | ||
== Puppet client test == | == Puppet client test == |
Revision as of 12:30, 18 January 2014
Puppet client installation
Architecture http://docs.puppetlabs.com/learning/agent_master_basic.html
The installation of the puppet client can be performed as follows: ( on RH systems)
- rpm -ivh http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-7.noarch.rpm
- yum install puppet
- Make sure that pluginsync is enabled on your puppet client and the puppet master server address is configured
. Open the file /etc/puppet/puppet.conf and enter
# vim /etc/puppet/puppet.conf [main] ... pluginsync = true ...
[agent] ... server=node12.d.d4science.research-infrastructures.eu
Puppet client test
- puppet agent --server=node12.d.d4science.research-infrastructures.eu --test
the server should authenticate the client request, on Puppet master:
- puppet cert list ( to see the list of pending authentication ) :
puppet cert list "gcube-puppet-test.cern.ch" (6B:A5:93:66:4D:E5:3B:BC:EF:30:A5:00:91:3B:76:D4)
- puppet cert sign <agent1.localdomain>
puppet cert sign gcube-puppet-test.cern.ch notice: Signed certificate request for gcube-puppet-test.cern.ch notice: Removing file Puppet::SSL::CertificateRequest gcube-puppet-test.cern.ch at '/var/lib/puppet/ssl/ca/requests/gcube-puppet-test.cern.ch.pem'