Commit bf2149ce authored by mh's avatar mh
Browse files

allow setting of the template to be used

parent a73bf456
......@@ -33,6 +33,7 @@ define webhosting::common(
$nagios_check_domain = 'absent',
$nagios_check_url = '/',
$nagios_check_code = 'OK',
$nagios_use = 'generic-service',
$ldap_user = 'absent'
){
if ($run_gid == 'absent') {
......@@ -192,6 +193,7 @@ define webhosting::common(
check_domain => $nagios_check_domain,
ssl_mode => $ssl_mode,
check_url => $nagios_check_url,
use => $nagios_use,
check_code => $real_nagios_check_code,
}
}
......
......@@ -50,6 +50,7 @@ define webhosting::modperl(
$nagios_check_domain = 'absent',
$nagios_check_url = '/',
$nagios_check_code = 'OK',
$nagios_use = 'generic-service',
$mod_security = true
){
if ($uid_name == 'absent'){
......@@ -81,6 +82,7 @@ define webhosting::modperl(
nagios_check_domain => $nagios_check_domain,
nagios_check_url => $nagios_check_url,
nagios_check_code => $nagios_check_code,
nagios_use => $nagios_use,
}
apache::vhost::modperl{"${name}":
ensure => $ensure,
......
......@@ -58,6 +58,7 @@ define webhosting::passenger(
$nagios_check_domain = 'absent',
$nagios_check_url = '/',
$nagios_check_code = 'OK',
$nagios_use = 'generic-service',
$mod_security = true,
$ldap_user = 'absent'
){
......@@ -103,6 +104,7 @@ define webhosting::passenger(
nagios_check_domain => $nagios_check_domain,
nagios_check_url => $nagios_check_url,
nagios_check_code => $nagios_check_code,
nagios_use => $nagios_use,
ldap_user => $ldap_user,
}
apache::vhost::passenger{"${name}":
......
......@@ -73,6 +73,7 @@ define webhosting::php(
$nagios_check_domain = 'absent',
$nagios_check_url = '/',
$nagios_check_code = 'OK',
$nagios_use = 'generic-service',
$mod_security = true,
$ldap_user = 'absent'
){
......@@ -118,6 +119,7 @@ define webhosting::php(
nagios_check_domain => $nagios_check_domain,
nagios_check_url => $nagios_check_url,
nagios_check_code => $nagios_check_code,
nagios_use => $nagios_use,
ldap_user => $ldap_user,
}
apache::vhost::php::standard{"${name}":
......
......@@ -58,6 +58,7 @@ define webhosting::php::drupal(
$nagios_check_domain = 'absent',
$nagios_check_url = '/',
$nagios_check_code = 'OK',
$nagios_use = 'generic-service',
$git_repo = 'absent',
$mod_security = true,
$manage_config = true,
......@@ -94,6 +95,7 @@ define webhosting::php::drupal(
nagios_check_domain => $nagios_check_domain,
nagios_check_url => $nagios_check_url,
nagios_check_code => $nagios_check_code,
nagios_use => $nagios_use,
}
$path = $operatingsystem ? {
......
......@@ -58,6 +58,7 @@ define webhosting::php::gallery2(
$nagios_check_domain = 'absent',
$nagios_check_url = '/',
$nagios_check_code = '302',
$nagios_use = 'generic-service',
$git_repo = 'absent',
$mod_security = false,
$manage_config = true,
......@@ -93,6 +94,7 @@ define webhosting::php::gallery2(
nagios_check_domain => $nagios_check_domain,
nagios_check_url => $nagios_check_url,
nagios_check_code => $nagios_check_code,
nagios_use => $nagios_use,
}
$path = $operatingsystem ? {
......
......@@ -58,6 +58,7 @@ define webhosting::php::joomla(
$nagios_check_domain = 'absent',
$nagios_check_url = '/',
$nagios_check_code = 'OK',
$nagios_use = 'generic-service',
$git_repo = 'absent',
$mod_security = true,
$manage_config = true,
......@@ -93,6 +94,7 @@ define webhosting::php::joomla(
nagios_check_domain => $nagios_check_domain,
nagios_check_url => $nagios_check_url,
nagios_check_code => $nagios_check_code,
nagios_use => $nagios_use,
}
$path = $operatingsystem ? {
......
......@@ -57,6 +57,7 @@ define webhosting::php::mediawiki(
$nagios_check_domain = 'absent',
$nagios_check_url = '/',
$nagios_check_code = 'OK',
$nagios_use = 'generic-service',
$mod_security = true,
$image = 'absent',
$config = 'unmanaged',
......@@ -101,6 +102,7 @@ define webhosting::php::mediawiki(
nagios_check_domain => $nagios_check_domain,
nagios_check_url => $nagios_check_url,
nagios_check_code => $nagios_check_code,
nagios_use => $nagios_use,
}
apache::vhost::php::mediawiki{"${name}":
......
......@@ -58,6 +58,7 @@ define webhosting::php::silverstripe(
$nagios_check_domain = 'absent',
$nagios_check_url = '/',
$nagios_check_code = 'OK',
$nagios_use = 'generic-service',
$git_repo = 'absent',
$mod_security = true,
$manage_config = true,
......@@ -93,6 +94,7 @@ define webhosting::php::silverstripe(
nagios_check_domain => $nagios_check_domain,
nagios_check_url => $nagios_check_url,
nagios_check_code => $nagios_check_code,
nagios_use => $nagios_use,
}
$path = $operatingsystem ? {
......
......@@ -58,6 +58,7 @@ define webhosting::php::simplemachine(
$nagios_check_domain = 'absent',
$nagios_check_url = '/',
$nagios_check_code = 'OK',
$nagios_use = 'generic-service',
$git_repo = 'absent',
$mod_security = true,
$manage_config = true,
......@@ -93,6 +94,7 @@ define webhosting::php::simplemachine(
nagios_check_domain => $nagios_check_domain,
nagios_check_url => $nagios_check_url,
nagios_check_code => $nagios_check_code,
nagios_use => $nagios_use,
}
$path = $operatingsystem ? {
......
......@@ -58,6 +58,7 @@ define webhosting::php::spip(
$nagios_check_domain = 'absent',
$nagios_check_url = '/',
$nagios_check_code = 'OK',
$nagios_use = 'generic-service',
$mod_security = true
){
if ($uid_name == 'absent'){
......@@ -89,6 +90,7 @@ define webhosting::php::spip(
nagios_check_domain => $nagios_check_domain,
nagios_check_url => $nagios_check_url,
nagios_check_code => $nagios_check_code,
nagios_use => $nagios_use,
}
$path = $operatingsystem ? {
......
......@@ -58,6 +58,7 @@ define webhosting::php::typo3(
$nagios_check_domain = 'absent',
$nagios_check_url = '/',
$nagios_check_code = 'OK',
$nagios_use = 'generic-service',
$git_repo = 'absent',
$mod_security = true,
$manage_config = true,
......@@ -93,6 +94,7 @@ define webhosting::php::typo3(
nagios_check_domain => $nagios_check_domain,
nagios_check_url => $nagios_check_url,
nagios_check_code => $nagios_check_code,
nagios_use => $nagios_use,
}
$path = $operatingsystem ? {
......
......@@ -60,6 +60,7 @@ define webhosting::php::wordpress(
$nagios_check_domain = 'absent',
$nagios_check_url = '/',
$nagios_check_code = 'OK',
$nagios_use = 'generic-service',
$git_repo = 'absent',
$mod_security = true,
$manage_config = true,
......@@ -95,6 +96,7 @@ define webhosting::php::wordpress(
nagios_check_domain => $nagios_check_domain,
nagios_check_url => $nagios_check_url,
nagios_check_code => $nagios_check_code,
nagios_use => $nagios_use,
}
$path = $operatingsystem ? {
......
......@@ -40,6 +40,7 @@ define webhosting::static(
$nagios_check_domain = 'absent',
$nagios_check_url = '/',
$nagios_check_code = 'OK',
$nagios_use = 'generic-service',
$mod_security = false
){
if ($uid_name == 'absent'){
......@@ -73,6 +74,7 @@ define webhosting::static(
nagios_check_domain => $nagios_check_domain,
nagios_check_url => $nagios_check_url,
nagios_check_code => $nagios_check_code,
nagios_use => $nagios_use,
}
apache::vhost::static{"${name}":
ensure => $ensure,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment