Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 2.81 KB

README.md

File metadata and controls

54 lines (35 loc) · 2.81 KB

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.