summaryrefslogtreecommitdiff
path: root/puppet/modules/site_webapp/manifests
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-01-11 17:12:49 -0800
committerelijah <elijah@riseup.net>2013-01-11 17:12:49 -0800
commit886063ca1db3a4ce8fbd72e4ead9b5f2371979a5 (patch)
treebc88348765549074d74ae0f925d5e1332f3dcf5d /puppet/modules/site_webapp/manifests
parenta1fae6722d541fe52d45deb690785562d0751265 (diff)
configure webapp with correct domain
Diffstat (limited to 'puppet/modules/site_webapp/manifests')
-rw-r--r--puppet/modules/site_webapp/manifests/init.pp10
1 files changed, 10 insertions, 0 deletions
diff --git a/puppet/modules/site_webapp/manifests/init.pp b/puppet/modules/site_webapp/manifests/init.pp
index ebe58c95..22695966 100644
--- a/puppet/modules/site_webapp/manifests/init.pp
+++ b/puppet/modules/site_webapp/manifests/init.pp
@@ -3,6 +3,8 @@ class site_webapp {
$definition_files = hiera('definition_files')
$provider = $definition_files['provider']
$eip_service = $definition_files['eip_service']
+ $node_domain = hiera('domain')
+ $provider_domain = $node_domain['full_suffix']
Class[Ruby] -> Class[rubygems] -> Class[bundler::install]
@@ -70,4 +72,12 @@ class site_webapp {
owner => leap-webapp, group => leap-webapp, mode => '0644';
}
+ file {
+ '/srv/leap-webapp/config/config.yml':
+ content => template('site_webapp/config.yml.erb'),
+ owner => leap-webapp,
+ group => leap-webapp,
+ mode => '0600';
+ }
+
}