Differences between revisions 1 and 2
Revision 1 as of 2017-09-28 05:29:10
Size: 1950
Editor: thog
Comment:
Revision 2 as of 2017-09-28 07:16:02
Size: 2316
Editor: thog
Comment:
Deletions are marked like this. Additions are marked like this.
Line 122: Line 122:
add the client.pp files and restart the puppetserver add the client.pp files and restart the puppetserve. Install some modules:

{{{
puppet module install puppetlabs-stdlib --version 4.20.0
puppet module install puppet-selinux --version 0.5.0
puppet module install maestrodev-wget --version 1.7.3
puppet module install ceritsc-yum --version 0.9.8
puppet module install camptocamp-rsyncd --version 1.0.15
puppet module install puppetlabs-rsync --version 0.4.0
}}}

We have a puppet server in westcoast (li823-33.members.linode.com)

Following are steps how to install and configure the puppet server:

rpm -ivh https://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm

yum -y install puppetserver

service puppetserver start

service puppetserver stop

edit /etc/puppet/puppet.conf

[main]
  • # The Puppet log directory. # The default value is '$vardir/log'.
  • logdir = /var/log/puppet
  • # Where Puppet PID files are kept.
  • # The default value is '$vardir/run'.
  • rundir = /var/run/puppet
  • # Where SSL certificates are kept.
  • # The default value is '$confdir/ssl'.
  • ssldir = $vardir/ssl
  • #put your hostname in here.
  • dns_alt_names = <PUPPET SERVER HOSTNAME>
  • always_cache_features=true
  • environmentpath=/etc/puppet/environments/

[agent]
  • # The file in which puppetd stores a list of the classes
  • # associated with the retrieved configuratiion.  Can be loaded in
    # the separate puppet executable using the --loadclasses
  • # option.
  • # The default value is '$confdir/classes.txt'.
  • classfile = $vardir/classes.txt
  • # Where puppetd caches the local configuration.  An
  • # extension indicating the cache format is added automatically.
  • # The default value is '$confdir/localconfig'.
  • localconfig = $vardir/localconfig

Make new environments dir in /etc/puppet/

cd /etc/puppet

mkdir environments

cd environments

mkdir production

cd production/

touch environment.conf

mkdir manifests

mkdir modules

cd manifests

add the client.pp files and restart the puppetserve. Install some modules:

puppet module install puppetlabs-stdlib --version 4.20.0
puppet module install puppet-selinux --version 0.5.0
puppet module install maestrodev-wget --version 1.7.3
puppet module install ceritsc-yum --version 0.9.8
puppet module install camptocamp-rsyncd --version 1.0.15
puppet module install puppetlabs-rsync --version 0.4.0

Installpuppetserver (last edited 2017-10-03 23:29:17 by thog)