summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-11-13 10:13:53 -0800
committerelijah <elijah@riseup.net>2013-11-22 11:14:13 -0800
commit970fcd5d3262735c8ae7979a462cd77bf270b108 (patch)
treee559af2f04831ddaae091242ed96072373665c35
parent8dd6174fe2077a94c8ede027a8364d7ff3372f3d (diff)
added custom index.html
-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 {