I had installed puppet master and client on two different machines. machine 
A has puppet master and machine B has client. both are centos6 64 bit 
machines.
Machine B (client) is successfully connected to master (machine A). My aim 
is to install New Relic agent (server monitorinig tool) on different 
client. I had installed new reliec agent on machine A and trying to build a 
module so that I can deploy new Relic agent remotely to my clients. right 
now I have only one client but there can be n number of clients.

steps carried out on puppetmaster Machine A

a) I had created a new module mcollective under /etc/puppet/modules 
directory. 

 b) under manifests, I had created a init.pp with the follwoing contents

#Module: mcollective
#
# Class: mcollective
# Description:
# This class does it all.
#
# Files:
# /etc/yum.repos.d/newrelic.repo
#
#
class mcollective {
$my_repo = 'newrelic_repo'
 if $my_repo { include "mcollective::${my_repo}" }
$my_install = 'install'
 if $my_install { include "mcollective::${my_install}" }
}

class mcollective::newrelic_repo {
file { '/etc/yum.repos.d/newrelic.repo':
 owner => "root",
 group => "root",
 mode => 644,
 source => 'puppet:///modules/mcollective/newrelic.repo',
}
}
class mcollective::install {
exec { 'Installing newrelic-repo':
 command => 'yum -y install newrelic-repo*',
 timeout => 600,
 }
}

c) I had also copied newrelic.repo from /etc/yum.repos.d/newrelic.repo to 
/etc/puppet/modules/manifests

d) under files diretcory, I had created sites.pp as 

import 'mcollective'

node 'basenode' {
include mcollective
include mcollective::newrelic_repo
include mcollective::install
}

node 'WA19487ORACLE01' inherits basenode {
license_key => 'd15ff577e5f27e071fe9b2d6809b9f2950fe87d1',
}
e)  here I have called module and passed the license_key for the node.

f) I have restarted my puppetmaster(machine A) and puppet (machine B). when 
I checked /varlog/messages/ of machine A and machine B, new reliec agent is 
not getting deployed on machine B (clinet).
I think my puppet client is  not able to retrieve the informatiojn from 
puppet master. when I tried to run puppet agent --test on client machine, I 
am gettingt the error message
 
[root@WA19487ORACLE01 ~]# puppet agent --test
notice: Ignoring --listen on onetime run
info: Retrieving plugin
err: /File[/var/lib/puppet/lib]: Failed to generate additional resources 
using 'eval_generate': hostname was not match with the server certificate
err: /File[/var/lib/puppet/lib]: Could not evaluate: hostname was not match 
with the server certificate Could not retrieve file metadata for 
puppet://WA19487PUPPET01/plugins: hostname was not match with the server 
certificate
err: Could not retrieve catalog from remote server: hostname was not match 
with the server certificate
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
Time:
         Last run: 1362381429
err: Could not send report: hostname was not match with the server 
certificate
Please post your suggestions to help me out.
 
Thanks 
Sachin 

 

 

 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to