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:
parent
3f792aa7fe
commit
e6ff4136bb
|
@ -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":
|
||||
|
|
Loading…
Reference in New Issue