-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added a new recipe for a wordpress cluster using RDS, bug fix in varn…
…ish_reload for ubuntu natty
- Loading branch information
Ryan Mark
committed
May 16, 2011
1 parent
c41ecd9
commit cb4b646
Showing
5 changed files
with
101 additions
and
35 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
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,29 @@ | ||
{%extends 'wordpress/base.sh' %} | ||
|
||
{% block install %} | ||
# install some basic stuff | ||
DEBIAN_FRONTEND='noninteractive' \ | ||
apt-get -q -y -o Dpkg::Options::='--force-confnew' install \ | ||
zip git-core subversion unattended-upgrades \ | ||
build-essential \ | ||
apache2 \ | ||
php5 php5-mysql php5-gd php-pear libapache2-mod-php5 php-apc php5-curl \ | ||
mysql-client \ | ||
postfix | ||
|
||
# enable mod_rewrite | ||
a2enmod rewrite | ||
|
||
# Install apache config | ||
cp /home/$USERNAME/cloud-commander/wordpress/etc/apache2/apache2.conf /etc/apache2/apache2.conf | ||
chown root:root /etc/apache2/apache2.conf | ||
chmod 644 /etc/apache2/apache2.conf | ||
|
||
# Needs a reboot - | ||
{% include "_nfs-server.sh" %} | ||
|
||
{% endblock %} | ||
|
||
{% block finish %} | ||
reboot | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
server: | ||
- type: 'app' | ||
name: 'app1.beta.wp' | ||
hosts: 'cache, app1' | ||
script: 'wordpress/app.sh' | ||
size: 'small' | ||
os: 'ubuntu' | ||
version: '11.04' | ||
arch: '32bit' | ||
security_group: 'app-staging' | ||
cluster: 'wordpress-staging' | ||
|
||
- type: 'app' | ||
name: 'app2.beta.wp' | ||
hosts: 'app2' | ||
script: 'wordpress/app.sh' | ||
size: 'small' | ||
os: 'ubuntu' | ||
version: '11.04' | ||
arch: '32bit' | ||
security_group: 'app-staging' | ||
cluster: 'wordpress-staging' | ||
|
||
- type: 'admin' | ||
name: 'admin.beta.wp' | ||
hosts: 'admin, log, mail, cron, nfs' | ||
script: 'wordpress/admin-nfs.sh' | ||
size: 'small' | ||
os: 'ubuntu' | ||
version: '11.04' | ||
arch: '32bit' | ||
security_group: 'admin-staging' | ||
cluster: 'wordpress-staging' | ||
|
||
- type: 'lb' | ||
name: 'lb.beta.wp' | ||
hosts: 'lb' | ||
script: 'wordpress/lb.sh' | ||
size: 'small' | ||
os: 'ubuntu' | ||
version: '11.04' | ||
arch: '32bit' | ||
security_group: 'lb-staging' | ||
cluster: 'wordpress-staging' | ||
|
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