This is an old revision of the document!


Install puppet on Centos you should enable reposiotry

vi /etc/sysconfig/network-scripts/ifcfg-eth0 
vi /etc/networks 
vi /etc/sysconfig/network
vi /etc/hosts
iptables -F
iptables -X
iptables -F
service iptables off
service iptables stop
chkconfig iptables off
reboot
rpm -ivh https://yum.puppetlabs.com/el/6.5/products/x86_64/puppetlabs-release-6-10.noarch.rpm 
yum install puppet-server 
chkconfig puppetmaster on
service puppetmaster start 
service iptables status
hostname 
ifconfig 
puppet cert list 
puppet cert sign "pp-c01.test01.devops.athenaiss.com"
mkdir -p /etc/puppet/manifests 
vi /etc/puppet/manifests/site.pp
service puppetmaster restart 
puppet cert list 
shutdown
puppet master --configprint certname
vi /etc/puppet/puppet.conf
service puppetmaster stop
find $(puppet master --configprint ssldir) -name "$(puppet master --configprint certname).pem"
find $(puppet master --configprint ssldir) -name "$(puppet master --configprint certname).pem" -delete
puppet master --no-daemonize --verbose
service puppetmaster start

Good guide:

http://docs.puppetlabs.com/guides/troubleshooting.html?_ga=1.151383225.1480551404.1440070296#agents-are-failing-with-a-hostname-was-not-match-with-the-server-certificate-error-whats-wrong

kb/puppet.1440334184.txt.gz · Last modified: 2022/01/03 16:03 (external edit)
Back to top
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0