Software Público - configuration management

Requirements

Configuration parameters

All configuration parameters are defined in nodes.yaml, with exception of IP
addresses and ssh configuration, which are defined in different files.
Each environment are defined on config/<ENV>/* and to deploy
you're need to use the SPB_ENV variable. The environment
local is defined by default. The files to configure a new env are:

config.yaml: any configuration used for the specific environment.

ips.yaml: the IP of each node.

ssh_config: used to login into the machine with the
command rake login:$server.

iptables-filter-rules: any iptables configuration needed
to the environment.

If you need to do any changes on the IPs addresses, make sure
that the ips.yaml are configure for the right environment.
You will probably not need to change nodes.yaml unless you are
developing the deployment process.

Deploy

Development

First you have to bring up the development virtual machines:

$ vagrant up
$ rake preconfig
$ rake bootstrap_common

WARNING: Right now there are 7 VM's: six of them with 512MB of
RAM and one with 1GB of RAM. Make sure that your local machine
can handle this environment. Also, this might take a while.