summaryrefslogtreecommitdiff
path: root/puppet/modules
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-04-24 18:04:48 -0700
committerelijah <elijah@riseup.net>2013-04-24 18:04:48 -0700
commit4ed2bb37ea8283f79aecca8b78e80b141e9eff50 (patch)
treebcfae0217321ffbab9212e65ecfe159d58deaa9a /puppet/modules
parent2bd18fcad2e1446388948ed0b98232d93564b8ad (diff)
provider base - service definitions are now versioned (requires new leap_cli)
Diffstat (limited to 'puppet/modules')
-rw-r--r--puppet/modules/site_webapp/manifests/init.pp7
1 files changed, 6 insertions, 1 deletions
diff --git a/puppet/modules/site_webapp/manifests/init.pp b/puppet/modules/site_webapp/manifests/init.pp
index 636a156d..8b5bb0e3 100644
--- a/puppet/modules/site_webapp/manifests/init.pp
+++ b/puppet/modules/site_webapp/manifests/init.pp
@@ -6,6 +6,7 @@ class site_webapp {
$node_domain = hiera('domain')
$provider_domain = $node_domain['full_suffix']
$webapp = hiera('webapp')
+ $api_version = $webapp['api_version']
$secret_token = $webapp['secret_token']
Class[Ruby] -> Class[rubygems] -> Class[bundler::install]
@@ -83,7 +84,11 @@ class site_webapp {
ensure => directory,
owner => leap-webapp, group => leap-webapp, mode => '0755';
- '/srv/leap-webapp/public/config/eip-service.json':
+ "/srv/leap-webapp/public/config/${api_version}":
+ ensure => directory,
+ owner => leap-webapp, group => leap-webapp, mode => '0755';
+
+ "/srv/leap-webapp/public/config/${api_version}/eip-service.json":
content => $eip_service,
owner => leap-webapp, group => leap-webapp, mode => '0644';
}