From 970fcd5d3262735c8ae7979a462cd77bf270b108 Mon Sep 17 00:00:00 2001 From: elijah Date: Wed, 13 Nov 2013 10:13:53 -0800 Subject: added custom index.html --- provider_base/services/webapp.json | 1 + puppet/modules/site_webapp/manifests/init.pp | 13 +++++++++++++ 2 files changed, 14 insertions(+) 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 { -- cgit v1.2.3