Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lots of fixes and updates for the wordpress scripts and recipes, star…
…ted new django newsapps cluster stuff
- Loading branch information
Showing
23 changed files
with
220 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
install_pkg libxml2-dev libxslt-dev \ | ||
apache2 apache2-mpm-worker apache2-utils apache2.2-common \ | ||
proj libgeoip1 geoip-database python-gdal \ | ||
python-virtualenv python-pip ruby libruby-extras python-dev \ | ||
libapache2-mod-wsgi virtualenvwrapper | ||
|
||
# enable mod_rewrite | ||
a2enmod rewrite | ||
|
||
# disable deflate | ||
a2dismod deflate | ||
|
||
# Install apache config | ||
install_file /etc/apache2/apache2.conf | ||
|
||
# setup virtualenvwrapper | ||
echo "export WORKON_HOME=/home/$USERNAME/sites/virtualenvs" >> /home/$USERNAME/.bashrc | ||
|
||
reload apache2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
|
||
# install postgres | ||
install_pkg postgresql-8.4-postgis pgpool libpq-dev | ||
|
||
# create postgres user | ||
sudo -u postgres createuser -s $USERNAME | ||
|
||
# POSTGIS setup | ||
# Where the postgis templates should be | ||
POSTGIS_SQL_PATH=/usr/share/postgresql/8.4/contrib/postgis-1.5 | ||
|
||
# Creating the template spatial database. | ||
sudo -u postgres createdb -E UTF8 template_postgis | ||
|
||
# Adding PLPGSQL language support. | ||
sudo -u postgres createlang -d template_postgis plpgsql | ||
|
||
# Allows non-superusers the ability to create from this template | ||
sudo -u postgres psql -d postgres -c "UPDATE pg_database SET datistemplate='true' WHERE datname='template_postgis';" | ||
|
||
# Loading the PostGIS SQL routines | ||
sudo -u postgres psql -d template_postgis -f $POSTGIS_SQL_PATH/postgis.sql | ||
|
||
# Enabling users to alter spatial tables. | ||
sudo -u postgres psql -d template_postgis -c "GRANT ALL ON geometry_columns TO PUBLIC;" | ||
sudo -u postgres psql -d template_postgis -c "GRANT ALL ON spatial_ref_sys TO PUBLIC;" | ||
|
||
# install configs | ||
install_file newsapps /etc/pgpool.conf | ||
install_file newsapps /etc/postgresql/8.4/main/pg_hba.conf | ||
install_file newsapps /etc/postgresql/8.4/main/postgresql.conf | ||
|
||
# reload everything | ||
service postgresql restart | ||
service pgpool restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Sets up a postfix server that reroutes all email to the local user account | ||
|
||
# Need to set $MAIL_DOMAIN to what ever domain you will be sending from | ||
if [ -z "${MAIL_DOMAIN+xxx}" ]; then MAIL_DOMAIN=example.com; fi | ||
|
||
install_pkg postfix | ||
|
||
echo "localhost : | ||
$MAIL_DOMAIN : | ||
* local:$USERNAME" > /etc/postfix/transport | ||
|
||
postmap /etc/postfix/transport | ||
|
||
echo "mynetworks = 10.0.0.0/8 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 | ||
transport_maps = hash:/etc/postfix/transport" >> /etc/postfix/main.cf | ||
|
||
service postfix restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{%extends 'wordpress/base.sh' %} | ||
|
||
{% block install %} | ||
|
||
# install some basic stuff | ||
install_pkg postfix | ||
|
||
{% include "_apache-python.sh" %} | ||
|
||
{% include "_nfs-client.sh" %} | ||
|
||
{% include "_syslog-server.sh" %} | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{% extends 'newsapps/base.sh' %} | ||
|
||
{% block install %} | ||
|
||
{% include '_syslog-client.sh' %} | ||
|
||
{% include '_nfs-client.sh' %} | ||
|
||
{% include '_apache-python.sh' %} | ||
|
||
{% include '_memcached.sh' %} | ||
|
||
{% endblock %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{% extends 'newsapps/base.sh' %} | ||
|
||
{% block install %} | ||
|
||
{% include '_syslog-client.sh' %} | ||
|
||
{% include '_nfs-client.sh' %} | ||
|
||
{% include '_apache-python.sh' %} | ||
|
||
{% endblock %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{% extends 'newsapps/base.sh' %} | ||
|
||
{% block install %} | ||
|
||
{% include '_postgres.sh' %} | ||
|
||
{% include '_nfs-server.sh' %} | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{%extends 'newsapps/base.sh' %} | ||
|
||
{% block install %} | ||
|
||
{% include "_syslog-client.sh" %} | ||
|
||
{% include "_nfs-client.sh" %} | ||
|
||
{% include "_varnish.sh" %} | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{%extends 'wordpress/base.sh' %} | ||
|
||
{% block install %} | ||
# install some basic stuff | ||
install_pkg \ | ||
php5 php5-mysql php5-gd php5-fpm php-pear php-apc php5-curl php5-memcache \ | ||
mysql-client | ||
|
||
# include the script to build nginx from source | ||
{% include "_nginx.sh" %} | ||
|
||
# Install nginx config | ||
install_file newsapps /etc/nginx/nginx.conf | ||
|
||
# Install php-fpm config | ||
install_file wordpress /etc/php5/fpm/pool.d/www.conf | ||
|
||
{% include "_nfs-server.sh" %} | ||
|
||
{% include "_syslog-server.sh" %} | ||
|
||
{% include "_memcached.sh" %} | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.