Make index management optional

We want to install our own index page, so make the management of
the index.html file optional, defaulting to true.

Change-Id: I09fd41a186eb5edf9368974415cf555c22bbf9d0
This commit is contained in:
James E. Blair 2015-05-20 09:32:33 -07:00
parent 3f792aa7fe
commit e6ff4136bb
1 changed files with 7 additions and 4 deletions

View File

@ -7,6 +7,7 @@ define meetbot::site(
$use_ssl,
$vhost_name = $::fqdn,
$vhost_extra = '',
$manage_index = true,
) {
$varlib = "/var/lib/meetbot/${name}"
@ -29,10 +30,12 @@ define meetbot::site(
ensure => directory,
}
file { "${meetbot}/index.html":
ensure => present,
content => template('meetbot/index.html.erb'),
require => File[$meetbot],
if manage_index == true {
file { "${meetbot}/index.html":
ensure => present,
content => template('meetbot/index.html.erb'),
require => File[$meetbot],
}
}
file { "${meetbot}/irclogs":