summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2012-11-27 15:26:58 -0500
committerMicah Anderson <micah@riseup.net>2012-11-27 15:26:58 -0500
commit140975a265b971b14805370dc704e5a10806cd5f (patch)
tree78a9128c57ebf466f8beb308a0bbe7f3d1f34612
parente49f4038b9a5c6b8b0d3f0eed8735abf5ef54c0e (diff)
make sure the webapp/public/config directory exists and the eip-service.json is provided there
-rw-r--r--puppet/modules/site_webapp/manifests/init.pp9
1 files changed, 9 insertions, 0 deletions
diff --git a/puppet/modules/site_webapp/manifests/init.pp b/puppet/modules/site_webapp/manifests/init.pp
index 22f69e7a..5eaf9dc1 100644
--- a/puppet/modules/site_webapp/manifests/init.pp
+++ b/puppet/modules/site_webapp/manifests/init.pp
@@ -2,6 +2,7 @@ class site_webapp {
$definition_files = hiera('definition_files')
$provider = $definition_files['provider']
+ $eap_service = $definition_files['eap_service']
Class[Ruby] -> Class[rubygems] -> Class[bundler::install]
@@ -58,6 +59,14 @@ class site_webapp {
'/srv/leap-webapp/public/ca.crt':
content => $cert_root,
owner => leap-webapp, group => leap-webapp, mode => '0644';
+
+ '/srv/leap-webapp/public/config':
+ ensure => directory,
+ owner => leap-webapp, group => leap-webapp, mode => '0755';
+
+ '/srv/leap-webapp/public/config/eip-service.json':
+ content => $eap_service,
+ owner => leap-webapp, group => leap-webapp, mode => '0644';
}
}