Fix PuppetLint warnings due to config rewrite
This commit is contained in:
parent
51012fc049
commit
b5111c856e
3 changed files with 27 additions and 27 deletions
|
@ -43,16 +43,16 @@ class icingaweb2::config {
|
|||
mode => $::icingaweb2::config_dir_mode;
|
||||
|
||||
"${::icingaweb2::config_dir}/authentication.ini":
|
||||
ensure => present;
|
||||
ensure => file;
|
||||
|
||||
"${::icingaweb2::config_dir}/config.ini":
|
||||
ensure => present;
|
||||
ensure => file;
|
||||
|
||||
"${::icingaweb2::config_dir}/resources.ini":
|
||||
ensure => present;
|
||||
ensure => file;
|
||||
|
||||
"${::icingaweb2::config_dir}/roles.ini":
|
||||
ensure => present;
|
||||
ensure => file;
|
||||
|
||||
$::icingaweb2::web_root:
|
||||
ensure => directory,
|
||||
|
@ -113,32 +113,32 @@ class icingaweb2::config {
|
|||
|
||||
# Configure resources.ini
|
||||
icingaweb2::config::resource_database { 'icingaweb_db':
|
||||
resource_db => "${::icingaweb2::web_db}",
|
||||
resource_host => "${::icingaweb2::web_db_host}",
|
||||
resource_port => "${::icingaweb2::web_db_port}",
|
||||
resource_dbname => "${::icingaweb2::web_db_name}",
|
||||
resource_username => "${::icingaweb2::web_db_user}",
|
||||
resource_password => "${::icingaweb2::web_db_pass}",
|
||||
resource_db => $::icingaweb2::web_db,
|
||||
resource_host => $::icingaweb2::web_db_host,
|
||||
resource_port => $::icingaweb2::web_db_port,
|
||||
resource_dbname => $::icingaweb2::web_db_name,
|
||||
resource_username => $::icingaweb2::web_db_user,
|
||||
resource_password => $::icingaweb2::web_db_pass,
|
||||
}
|
||||
|
||||
icingaweb2::config::resource_database { 'icinga_ido':
|
||||
resource_db => "${::icingaweb2::ido_db}",
|
||||
resource_host => "${::icingaweb2::ido_db_host}",
|
||||
resource_port => "${::icingaweb2::ido_db_port}",
|
||||
resource_dbname => "${::icingaweb2::ido_db_name}",
|
||||
resource_username => "${::icingaweb2::ido_db_user}",
|
||||
resource_password => "${::icingaweb2::ido_db_pass}",
|
||||
resource_db => $::icingaweb2::ido_db,
|
||||
resource_host => $::icingaweb2::ido_db_host,
|
||||
resource_port => $::icingaweb2::ido_db_port,
|
||||
resource_dbname => $::icingaweb2::ido_db_name,
|
||||
resource_username => $::icingaweb2::ido_db_user,
|
||||
resource_password => $::icingaweb2::ido_db_pass,
|
||||
}
|
||||
|
||||
# Configure roles.ini
|
||||
icingaweb2::config::roles { 'Admins':
|
||||
role_users => "${::icingaweb2::admin_users}",
|
||||
role_permissions => "${::icingaweb2::admin_permissions}",
|
||||
role_users => $::icingaweb2::admin_users,
|
||||
role_permissions => $::icingaweb2::admin_permissions,
|
||||
}
|
||||
|
||||
if $::icingaweb2::manage_apache_vhost {
|
||||
::apache::custom_config { 'icingaweb2':
|
||||
content => template("${::icingaweb2::template_apache}"),
|
||||
content => template($::icingaweb2::template_apache),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,14 +12,14 @@ define icingaweb2::config::authentication_database (
|
|||
}
|
||||
|
||||
ini_setting { "icingaweb2 authentication ${title} resource":
|
||||
section => "$auth_section",
|
||||
section => $auth_section,
|
||||
setting => 'resource',
|
||||
value => "\"$auth_resource\"",
|
||||
value => "\"${auth_resource}\"",
|
||||
}
|
||||
|
||||
ini_setting { "icingaweb2 authentication ${title} backend":
|
||||
section => "$auth_section",
|
||||
section => $auth_section,
|
||||
setting => 'backend',
|
||||
value => '"db"',
|
||||
value => '"db"',
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,14 +12,14 @@ define icingaweb2::config::authentication_external (
|
|||
}
|
||||
|
||||
ini_setting { "icingaweb2 authentication ${title} filter":
|
||||
section => "$auth_section",
|
||||
section => $auth_section,
|
||||
setting => 'strip_username_regexp',
|
||||
value => "\"$auth_filter\"",
|
||||
value => "\"${auth_filter}\"",
|
||||
}
|
||||
|
||||
ini_setting { "icingaweb2 authentication ${title} backend":
|
||||
section => "$auth_section",
|
||||
section => $auth_section,
|
||||
setting => 'backend',
|
||||
value => '"external"',
|
||||
value => '"external"',
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue