Make setting up a Puppetmaster easier.

There is a helpful script we can use that avoids the plumbing
discussion, and neither raring nor F19 can run a Puppet master, so we
should document that to avoid false starts.

Change-Id: I72f8767dc3fc7967207c37911e8e45a6d85c6001
This commit is contained in:
Robert Collins 2013-08-29 16:27:31 +12:00
parent 01e19830c3
commit d6fd7db432
2 changed files with 14 additions and 18 deletions

View File

@ -35,27 +35,22 @@ ship the data to the clients.
The cron jobs, current configuration files and more can be done with ``puppet The cron jobs, current configuration files and more can be done with ``puppet
apply`` but first some bootstrapping needs to be done. apply`` but first some bootstrapping needs to be done.
First want to install these from puppetlabs' apt repo, but we typically pin to First want to install these from puppetlabs' apt repo. We have not yet migrated
a specific version, so you'll want to copy in the preferences file from the git to puppet 3, so we pin puppet to 2.x. There is a script in the root of the
repository. Configuration files for puppet master are stored in a git repo config repository that will setup appropriate pinning and install the puppet
clone at ``/opt/config/production`` so we'll just do this checkout now and copy client. After that installing the puppetmaster and hiera (used to maintain
over the preferences file: secrets on the puppet master).
Please note: Fedora F19 and Ubuntu Raring and above cannot successfully run an
OpenStack-CI puppetmaster due to new Ruby and older Puppet not being
compatible, so be sure to use an older release - e.g. Ubuntu Precise.
.. code-block:: bash .. code-block:: bash
sudo su -
git clone https://git.openstack.org/openstack-infra/config /opt/config/production git clone https://git.openstack.org/openstack-infra/config /opt/config/production
cp /opt/config/production/modules/openstack_project/files/00-puppet.pref /etc/apt/preferences.d/ /opt/config/production/install_puppet.sh
apt-get install puppetmaster-passenger hiera hiera-puppet
Then we can add the repo and install the packages, we'll also install the hiera
packages here which are used to maintain secret information on the
puppetmaster:
.. code-block:: bash
apt-add-repository "deb http://apt.puppetlabs.com `lsb_release -cs` devel"
apt-key adv --keyserver pool.sks-keyservers.net --recv <KEY_ID>
apt-get update
apt-get install puppet puppetmaster-passenger hiera hiera-puppet
Finally, install the modules and use ``puppet apply`` to finish configuration: Finally, install the modules and use ``puppet apply`` to finish configuration:

View File

@ -54,8 +54,9 @@ EOF
yum install -y redhat-lsb-core git puppet yum install -y redhat-lsb-core git puppet
else else
#defaults to Ubuntu #defaults to Ubuntu
# NB: keep in sync with openstack_project/files/00-puppet.pref
cat > /etc/apt/preferences.d/00-puppet.pref <<EOF cat > /etc/apt/preferences.d/00-puppet.pref <<EOF
Package: puppet puppet-common puppetmaster puppetmaster-common Package: puppet puppet-common puppetmaster puppetmaster-common puppetmaster-passenger
Pin: version 2.7* Pin: version 2.7*
Pin-Priority: 501 Pin-Priority: 501
EOF EOF