[chef] Re: opscode nagios quick start

Chronological Thread 
  • From: Gourav Shah < >
  • To:
  • Subject: [chef] Re: opscode nagios quick start
  • Date: Mon, 31 Dec 2012 12:04:28 +0530


I believe the following part is what is overwriting your validating key with something else. 

 I followed all the steps of the tutorial including cloning the git repo and especially these particular steps:

mkdir ~/nagios-quick-start/.chef
cp ~/chef-repo/.chef/knife.rb ~/nagios-quick-start/.chef
cp ~/chef-repo/.chef/USERNAME.pem ~/nagios-quick-start/.chef
cp ~/chef-repo/.chef/validation.pem ~/nagios-quick-start/.chef

As per the link that you are following (http://wiki.opscode.com/display/chef/Nagios+Quick+Start) this  part is valid only if you are using opscode chef server and not the community chef server.  If you have your own chef server, it may not be required to do this step. 

When you run knife ec2 server create, it will
1.  launch a new ec2 instance  
2.  install chef on this instance
3.  bootstrap it. it will automatically copy the correct validation.pem key while this happens. 

Can you remove the validation.pem from ~/nagios-quick-start/.chef and try. Alternately, you could copy /etc/chef/validation.pem there.  

Also, can you make sure that if you are using a AMI to launch instnace, it does not have stale /etc/chef/validation.pem on it. 

Gourav Shah
Founder and Principal Consultant
Initcron | www.initcron.com

Archive powered by MHonArc 2.6.16.