diff options
author | Micah Anderson <micah@riseup.net> | 2012-11-27 15:26:58 -0500 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2012-11-27 15:26:58 -0500 |
commit | 140975a265b971b14805370dc704e5a10806cd5f (patch) | |
tree | 78a9128c57ebf466f8beb308a0bbe7f3d1f34612 /puppet/modules/site_webapp | |
parent | e49f4038b9a5c6b8b0d3f0eed8735abf5ef54c0e (diff) |
make sure the webapp/public/config directory exists and the eip-service.json is provided there
Diffstat (limited to 'puppet/modules/site_webapp')
-rw-r--r-- | puppet/modules/site_webapp/manifests/init.pp | 9 |
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'; } } |