LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Linux Answers > Applications / GUI / Multimedia
User Name
Password

Notices


By szboardstretcher at 2013-10-29 12:24
Here is a copy and paste method to install puppet 3.3 on Centos 6.4/Scientific Linux 6.4

Tested on 28-OCT-2013

Code:
# some variables to fill
echo "JUST hostname of server: "; read HOSTNAME
echo "Now the WHOLE FQDN: "; read FQDN

# install puppet
yum install -y puppet-server
 
# configure puppet master
cat << EOF > /etc/puppet/puppet.conf
[main]
logdir = /var/log/puppet
rundir = /var/run/puppet
ssldir = $vardir/ssl
[agent]
classfile = $vardir/classes.txt
localconfig = $vardir/localconfig
[master]
certname = ${FQDN}
autosign = true
EOF

# config the puppet client
cat << EOF > /etc/sysconfig/puppet
PUPPET_SERVER=${FQDN}
PUPPET_LOG=/var/log/puppet/puppet.log
EOF

# configure fileserver, make test manifest
mkdir -p /opt/puppet-fileserver
mkdir -p /etc/puppet/manifests/classes
mkdir -p /etc/puppet/manifests/nodes
echo "nothing" > /opt/puppet-fileserver/nothing

chown -R puppet.puppet /opt/puppet-fileserver

cat << EOF > /etc/puppet/fileserver.conf
[files]
path /opt/puppet-fileserver
allow *
EOF

# configure default manifest
cat << EOF > /etc/puppet/manifests/site.pp
import "classes/*"
node default {
}
EOF

# configure puppetmaster manifest
cat << EOF > /etc/puppet/manifests/nodes/${HOSTNAME}.pp
node '${HOSTNAME}' {
include test
}
EOF

# create fileserver test manifest
cat << EOF > /etc/puppet/manifests/classes/test.pp
class test {
file { "/tmp/nothing":
owner => root,
group => root,
mode => 644,
source => "puppet://${FQDN}/files/nothing"
}
}
EOF

# start, create cert for server
service puppetmaster restart
service puppet restart
chkconfig puppetmaster on
chkconfig puppet on
puppet cert --generate ${FQDN}
puppet cert clean ${HOSTNAME}
rm -f /ssl/certs/${HOSTNAME}.pem

# test
puppet agent --test --debug --server ${FQDN}
The latest installation method will exist @ https://github.com/boardstretcher/puppet

by evo2 on Tue, 2014-04-22 14:48
Hi,
Quote:
Originally Posted by szboardstretcher View Post
A new la entry has been added:

How to install puppet 3.3 on Centos 6.4
this seems to be missing one important step: adding the required repo to yum.

Evo2.


  



All times are GMT -5. The time now is 04:17 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration