Thursday, April 12, 2012
Custom puppet master hostname error hostname was not match with the server certificate
When you want to use custom hostname for puppet it shows the following error.
=============
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
err: Could not send report: hostname was not match with the server certificate
==============
In my case I wanted to use the default hostname "puppet" . Add the following entries to puppet master configuration file /etc/puppet/puppet.conf
certname = puppet
stop puppet master; mv /var/lib/puppet /var/lib/puppet-bak
start puppet
Ensure that the cert is loaded with the name you want.
==================
puppet cert print $(puppet master --configprint certname)|grep Subject
Subject: CN=puppet
==================
If the CN field is showing your hostname then this would not work.
Now you can use puppet agents to connect using
puppet agent --test --server puppet
Ensure that you have entries in /etc/hosts for puppet master
Subscribe to:
Post Comments (Atom)
Great Article. Thank you for sharing! Really an awesome post for every one.
ReplyDeleteA Big Data Architecture for Fault Prognostics of Electronic Devices Application to Power MOSFETs Project For CSE
Active Data Replica Recovery for Quality Assurance Big Data Analysis in IC IoT Project For CSE
Applying Big Data for Intelligent Agriculture Based Crop Selection Analysis Project For CSE
Big Data Adoption and Knowledge Management Sharing An Empirical Investigation on their Adoption and Sustainability as a Purpose of Education Project For CSE
Big Data Analytics and Mining for Effective Visualization and Trends Forecasting of Crime Data Project For CSE
Big Data Opportunities System Health Monitoring and Management Project For CSE
Good Information with great information thank you for the blog...
ReplyDeletesalesforce training in hyderabad
devops training institutes in hyderabad
full stack development course
Kudos to the author for this invaluable article! Your clear instructions and troubleshooting steps for resolving the Puppet hostname mismatch issue are a lifesaver. Much appreciated efforts.
ReplyDeleteIs iim skills fake?
Finally got my puppet master sorted thanks to this post! Smooth sailing now.
ReplyDeleteData Analytics Courses In Gujarat
good blog
ReplyDeleteData Analytics Courses In Vadodara
This comment has been removed by the author.
ReplyDeleteYour examination of the subject is comprehensive and clear, and I'm eager to read more of your work.
Deletedata Analytics courses in leeds
The "Custom puppet master hostname" error typically occurs in Puppet configuration when the master's hostname is not recognized, often requiring adjustments to the configuration file for a successful connection. While unrelated to Puppet errors, London offers excellent Data Analytics courses, equipping professionals with the skills to analyze and derive insights from diverse datasets. Please also Digital Marketing Courses in London .
ReplyDeletesuch an informative post about the topic, very interesting.
ReplyDeletefinancial modelling course in melbourne
ReplyDelete"Very helpful blog addressing the 'Custom Puppet Master Hostname' error! Your detailed walkthrough on resolving the hostname mismatch with the server certificate is a lifesaver. The clear steps and explanations offer a practical solution for users encountering this issue. Thanks for providing such a valuable resource, making it easier for others to navigate and troubleshoot this common problem in Puppet setups."
Investment banking course details
Wow! This article beautifully captures the essence of the topic.
ReplyDeleteInvestment banking skills and responsibilities