Whitespace cleanup in manifests/server.pp

This commit is contained in:
Nick Chappell 2014-08-21 22:07:01 -07:00
parent 599e7dea30
commit 9dc73da5db

View file

@ -7,9 +7,9 @@
# Coming soon...
#
# === Examples
#
#
# Coming soon...
#
#
class icinga2::server (
$manage_repos = $icinga2::params::manage_repos,
@ -17,7 +17,7 @@ class icinga2::server (
$db_name = $icinga2::params::db_name,
$db_user = $icinga2::params::db_user,
$db_password = $icinga2::params::db_password,
$db_host = $icinga2::params::db_host,
$db_host = $icinga2::params::db_host,
$db_port = $icinga2::params::db_port,
$package_provider = $icinga2::params::package_provider,
$icinga2_server_package = $icinga2::params::icinga2_server_package,
@ -29,15 +29,15 @@ class icinga2::server (
#Pick set the right path where we can find the DB schema based on the OS...
case $operatingsystem {
'RedHat', 'CentOS': {
'RedHat', 'CentOS': {
#...and database that the user picks
case $server_db_type {
'mysql': { $server_db_schema_path = '/usr/share/doc/icinga2-ido-mysql-2.0.0/schema/mysql.sql' }
'pgsql': { $server_db_schema_path = '/usr/share/doc/icinga2-ido-pgsql-2.0.0/schema/pgsql.sql' }
}
}
#Debian/Ubuntu systems:
#Debian/Ubuntu systems:
/^(Debian|Ubuntu)$/: {
#Pick set the right path where we can find the DB schema
case $server_db_type {
@ -45,17 +45,17 @@ class icinga2::server (
'pgsql': { $server_db_schema_path = '/usr/share/icinga2-ido-pgsql/schema/pgsql.sql' }
}
}
#Fail if we're on any other OS:
default: { fail("${operatingsystem} is not supported!") }
}
#Apply our classes in the right order. Use the squiggly arrows (~>) to ensure that the
#class left is applied before the class on the right and that it also refreshes the
#Apply our classes in the right order. Use the squiggly arrows (~>) to ensure that the
#class left is applied before the class on the right and that it also refreshes the
#class on the right.
class {'icinga2::server::install':} ~>
class {'icinga2::server::config':} ~>
class {'icinga2::server::service':}
}