summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--provider_base/services/webapp.json1
-rw-r--r--puppet/modules/site_webapp/manifests/init.pp13
2 files changed, 14 insertions, 0 deletions
diff --git a/provider_base/services/webapp.json b/provider_base/services/webapp.json
index 6f2beb8a..9b02afce 100644
--- a/provider_base/services/webapp.json
+++ b/provider_base/services/webapp.json
@@ -8,6 +8,7 @@
"tail_scss": "= file_path 'branding/tail.scss'",
"head_scss": "= file_path 'branding/head.scss'",
"img_dir": "= file_path 'branding/img'",
+ "home_page": "= file_path 'branding/views/home.html.haml'",
"client_certificates": "= global.provider.ca.client_certificates",
"allow_limited_certs": "= global.provider.service.allow_limited_bandwidth",
"allow_unlimited_certs": "= global.provider.service.allow_unlimited_bandwidth",
diff --git a/puppet/modules/site_webapp/manifests/init.pp b/puppet/modules/site_webapp/manifests/init.pp
index 6c5bda4c..d5687804 100644
--- a/puppet/modules/site_webapp/manifests/init.pp
+++ b/puppet/modules/site_webapp/manifests/init.pp
@@ -146,6 +146,14 @@ class site_webapp {
mode => '0644',
require => Vcsrepo['/srv/leap/webapp'],
source => $webapp['img_dir'];
+
+ '/srv/leap/webapp/app/views/home/index.html.haml':
+ ensure => present,
+ owner => leap-webapp,
+ group => leap-webapp,
+ mode => '0644',
+ require => Vcsrepo['/srv/leap/webapp'],
+ source => $webapp['home_page'];
}
git::changes {
@@ -163,6 +171,11 @@ class site_webapp {
cwd => '/srv/leap/webapp',
require => Vcsrepo['/srv/leap/webapp'],
user => 'leap-webapp';
+
+ 'app/views/home/index.html.haml':
+ cwd => '/srv/leap/webapp',
+ require => Vcsrepo['/srv/leap/webapp'],
+ user => 'leap-webapp';
}
file {