A bunch of StackScripts that I use to easily deploy full web+db+django stack at Linode.com
Shell Python
Latest commit 52c39cb Feb 6, 2014 @nigma Update readme
Permalink
Failed to load latest commit information.
1 - StackScript Bash Library.sh Updated bash library to latest version. May 15, 2012
122 - lib-apache.sh No need to install mod-wsgi from source anymore. May 15, 2012
123 - lib-system-ubuntu.sh
124 - lib-system.sh Added iotop to installed utils. May 16, 2012
125 - lib-postgresql.sh Function postgresql_recreate_cluster is not needed anymore. May 15, 2012
126 - lib-python.sh Use pip to install virtualenv. May 15, 2012
127 - lib-django.sh Parametrized paths and removed unnecessary functions. May 17, 2012
128 - lib-mongodb.sh Simplified MongoDB install. May 15, 2012
130 - monit.sh Renamed script to match source id. Jun 26, 2012
131 - Stack - Security, PostgreSQL, MySQL, MongoDB, Apache, Django.sh Renamed script to match source id. Jun 26, 2012
README.md Update readme Feb 6, 2014
prepare.py Small fixes. May 16, 2012
settings.txt Python script for parsing and concatenating StackSctipts Apr 14, 2012

README.md

Linode StackScripts

Please note

These scripts may be a bit outdated now although the solution served me well on many occasions. I have now moved to Ansible and other configuration management tools that are just much metter than the bash scripts approach, although you may pick up some configs and scripting ideas from here.

If there is an interest in a similar full-stack web-server setup go ahead and open a ticket and I can prepare a set of Ansible roles and playbooks with Nginx & uWSGI as the web server.


Original readme

A Linode.com StackScript shell script that configures a complete web environment with Apache, PostgreSQL/MySQL/MongoDB, Python, mod_wsgi, virtualenv and Django.

Optionally creates a PostgreSQL/MySQL user and database and installs MongoDB NoSQL database.

By default, it creates a VirtualHost using the reverse DNS of your Linode's primary IP and sets up a sample Django project in the /srv directory.

Installs common system and dev utilities, sets up postfix loopback, Uncomplicated Firewall and Fail2Ban.

Writes command output to /root/stackscript.log and records /etc changes using Mercurial. When completed notifies via email.