This repository automates provisioning a bare machine to act as a site server. We use this mostly to document the server configuration.
To provision a server machine ...
-
Install git and puppet. For example:
$ sudo apt-get install git puppet
-
Install the
puppetlabs-vcsrepo
puppet module:$ sudo puppet module install puppetlabs-vcsrepo
-
Clone this repository and apply the puppet manifest:
$ git clone https://github.com/peebleslab/conf $ cd conf $ sudo puppet apply peebleslab.pp
-
Obtain
plab-secrets.txt
(how? that's a secret ...) and place it in /www.
That's it! Puppet should be able to pilot the provisioning process from there.
NOTE: the setup script clones the sites from source control, using the public
read-only URL (https://...
). If you need push access for a particular repo.
you'll have to manually change the repo's origin
to point to the private URL
(git@github.com/...
).