Difference between revisions of "GCube Puppet integration"

From D4Science Wiki
Jump to: navigation, search
(Created page with "== Puppet client installation == 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...")
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
Puppet nodes for testing
 +
 +
* puppet master : node12.d.d4science.research-infrastructures.eu
 +
* puppet agent : gcube-puppet-test.cern.ch
 +
* code : https://github.com/andrea-manzi/gcube-puppet
 +
 +
 
== Puppet client installation ==
 
== 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)
 
The installation of the puppet client  can be performed as follows: ( on RH systems)
Line 5: Line 14:
 
*  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 11: Line 22:
 
  ...
 
  ...
 
     pluginsync = true
 
     pluginsync = true
 +
...
 +
 +
[agent]
 +
...
 +
    server=node12.d.d4science.research-infrastructures.eu
 +
 +
== Puppet client test ==
 +
 +
*  puppet agent --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'

Latest revision as of 15:24, 18 January 2014

Puppet nodes for testing


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)

. 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 --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'