nijotz / thesourcecoffee

0 stars 0 forks source link

Configuration management and provisioning automation #12

Open nijotz opened 11 years ago

nijotz commented 11 years ago

Use salt, ansible, puppet, chef, bash scripts and netcat, whatever to make it easier to deploy new web servers.

The django site can already be deployed with fabric. This is to provision new servers and configure them appropriately for server the site. Fabric can handle doing the actual deploy of the site.

There is a file on the current server with things I have done to set it up (/home/nick/things-done). Probably not exhaustive, but it's something. Current contents:

passwordless sudo install htop install git set hostname install postgresql install virtualenvwrapper nginx install python-dev install supervisor install postgresql-server-dev-9.1 disable ipv6 to simply vspf=1 a mx -all and prevent spam (Received-SPF: fail (google.com: domain of nick@thesourcecoffee.com does not designate 2600:3c01::f03c:91ff:fe70:7dcc as permitted sender) client-ip=2600:3c01::f03c:91ff:fe70:7dcc;) net.ipv6.conf.all.autoconf=0 net.ipv6.conf.all.accept_ra=0

nijotz commented 11 years ago

Fabric install gunicorn, deploys the nginx config and sets up the application