An attempt to concisely define the server configuration for Hackasaurus sites.
Python Puppet
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
fabfile
hackasaurus.org @ b9e1737
htmlpad @ 8529a93
manifests
modules
webxray @ 23ae862
.gitignore
.gitmodules
README.md
secrets.json

README.md

This is an attempt to concisely define and document the server configuration and deployment for Hackasaurus sites using a combination of Python scripts and Puppet Best Practices.

The sites this repository is capable of configuring and deploying include:

Deployment is assumed to target a bare Ubuntu natty server (11.04). All other dependencies are automatically installed by the various configuration files in this repository.

Prerequisites

You'll need Fabric.

Usage

First, clone the repository and check out its submodules:

git clone git://github.com/hackasaurus/hackasaurus-puppet-data.git
cd hackasaurus-puppet-data
git submodule update --init

To deploy Hackasaurus applications to a remote server, run:

fab -u root -H yourserver.org deploy

To run integration tests on a remote server, run:

fab -H yourserver.org test

Run fab -l for more commands, and fab -d <command> for detailed help on a particular command.

Secrets

Default passwords and other secrets for Hackasaurus applications are stored in secrets.json. You can override specific values by creating secrets.hostname.json, where hostname is your server's hostname.

Local Configuration

Virtual hosting configurations are used for the domains of Hackasaurus sites. To make development and testing easy, each site can also be accessed at its normal domain suffixed with .dev.

For example, if you want to access htmlpad.org on your development server, you can add an entry for htmlpad.org.dev to your /etc/hosts file.