ReferencePlatforms/Puppet Server: Difference between revisions
Jump to navigation
Jump to search
| Line 14: | Line 14: | ||
= Clone manifests and mount the file share = | = Clone manifests and mount the file share = | ||
As root, | As root, | ||
cd /etc/puppet | cd /etc/puppet | ||
| Line 20: | Line 19: | ||
hg clone http://hg.mozilla.org/build/puppet-manifests manifests | hg clone http://hg.mozilla.org/build/puppet-manifests manifests | ||
:NOTE - this is not accurate - NFS turned out to be ineffective between datacenters, so each master is now manually synchronized. | |||
Mount the puppet-files directory by adding an entry to fstab: | Mount the puppet-files directory by adding an entry to fstab: | ||
10.2.71.136:/export/buildlogs/puppet-files /N nfs defaults 0 0 | 10.2.71.136:/export/buildlogs/puppet-files /N nfs defaults 0 0 | ||
Revision as of 17:27, 29 November 2010
Puppet: Usage | Server Setup | Client Setup
This page describes how to recreate a Puppet server such as staging-puppet.build.mozilla.org or production-puppet.build.mozilla.org. These machines are based on the CentOS 5.0 Reference Platform and were originally cloned from Version 19 - but any version should do. The following changes were made to it after cloning:
Install Mercurial
yum install mercurial
Install the EPEL (Extra Packages for Enterprise Linux) Package
su -c 'rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm'
Install puppet
yum install ruby facter puppet-server ruby-shadow augeas-libs ruby-augeas chkconfig --level 235 puppetmaster on
As root,
cd /etc/puppet rm -rf manifests hg clone http://hg.mozilla.org/build/puppet-manifests manifests
- NOTE - this is not accurate - NFS turned out to be ineffective between datacenters, so each master is now manually synchronized.
Mount the puppet-files directory by adding an entry to fstab:
10.2.71.136:/export/buildlogs/puppet-files /N nfs defaults 0 0
And then run,
mkdir /N mount -a
to mount it.
Start the puppemaster daemon
service puppetmaster start