Permalink
Browse files

adding hostname and debug to puppet

  • Loading branch information...
1 parent 9548e00 commit a5efe7269cc06acf6cfb01598edfaa7534b1d358 @oppianmatt oppianmatt committed Apr 10, 2012
Showing with 12 additions and 5 deletions.
  1. +10 −3 puppet/modules/oppian/manifests/init.pp
  2. +2 −2 puppet/modules/oppian/templates/settings.py.erb
@@ -1,20 +1,27 @@
class oppian {
$project = "oppianproj"
- $debug_django = "True"
class { "webapp::python": owner => "root",
group => "wheel",
src_root => "/deploy",
nginx_workers => 1,
- monit_admin => "matt@oppian.com",
+ monit_admin => $cfn_adminemail,
monit_interval => 30,
}
+
+ if $cfn_hostname2 {
+ $aliases = [$cfn_hostname2]
+ }
+ else {
+ $aliases = []
+ }
webapp::python::instance { $project:
workers => inline_template("<%= (processorcount.to_i * 2 + 1) -%>"),
listen_port => 8080,
- domain => "oppian.com",
+ domain => $cfn_hostname,
+ aliases => $aliases,
django => true,
requirements => true,
django_syncdb => true,
@@ -1,5 +1,5 @@
-DEBUG = <%= debug_django %>
+DEBUG = <%= cfn_debug %>
TEMPLATE_DEBUG = DEBUG
DATABASE_ENGINE = 'mysql'
@@ -9,7 +9,7 @@ DATABASE_PASSWORD = '<%= cfn_password %>'
DATABASE_HOST = '<%= cfn_host %>'
DATABASE_PORT = ''
-SITE_DOMAIN = "oppian.com"
+SITE_DOMAIN = "<%= cfn_hostname %>"
# the twitter email account of the site
TWITTER_EMAIL = "twitter@oppian.com"

0 comments on commit a5efe72

Please sign in to comment.