Created
April 13, 2011 22:44
-
-
Save uggedal/918587 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| node "helium.uggedal.com" inherits servernode { | |
| include europe | |
| hostname { "helium.uggedal.com": | |
| aliases => ["helium", "he"], | |
| } | |
| include sshserver::web | |
| include webserver | |
| include sqlserver | |
| include postgresql::python | |
| gunicorn { "viva": | |
| domain => "vivaglasmagasinet.no", | |
| aliases => ["www.vivaglasmagasinet.no"], | |
| django => true, | |
| postgresql => true, | |
| } | |
| nginx::site { "home": | |
| domain => "uggedal.com", | |
| aliases => ["www.uggedal.com", "ugg.is"], | |
| default_vhost => true, | |
| root => "/var/www/home", | |
| } | |
| nginx::site { "journal": | |
| domain => "journal.uggedal.com", | |
| rewrite_html => true, | |
| root => "/var/www/journal", | |
| } | |
| include screenshotserver | |
| redis_server { "hydrogen": | |
| requirepass => 'RETRACTED', | |
| } | |
| gunicorn { "mediaqueri.es": | |
| domain => "mediaqueri.es", | |
| aliases => ["www.mediaqueri.es"], | |
| modulename => "mediaqueries:app", | |
| media => "mediaqueries/static", | |
| mediaprefix => "/static", | |
| workers => 4, | |
| } | |
| include tarsnap | |
| $mq_manage = "/var/www/mediaqueri.es/bin/python /var/www/mediaqueri.es/mediaqueri.es/manage.py" | |
| tarsnap::backup { "hydrogen": | |
| commands => [ | |
| "'viva.sql': 'sudo -u postgres pg_dump viva'", | |
| "'mediaqueries.site.json': 'sudo -u www-mgr $mq_manage backup site'", | |
| "'mediaqueries.like.json': 'sudo -u www-mgr $mq_manage backup like'", | |
| "'mediaqueries.suggestion.json': 'sudo -u www-mgr $mq_manage backup suggestion'", | |
| ], | |
| directories => [ | |
| "'mediaqueries-shots': '/var/www/mediaqueri.es/mediaqueri.es/mediaqueries/static/shots'", | |
| ], | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment