mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 00:04:04 +02:00
parent
e8dfbe6887
commit
f3d2347432
@ -2,10 +2,10 @@ define icinga2::feature ($feature = $title) {
|
||||
include icinga2
|
||||
|
||||
exec { "icinga2-feature-${feature}":
|
||||
path => '/bin:/usr/bin:/sbin:/usr/sbin',
|
||||
unless => "readlink /etc/icinga2/features-enabled/${feature}.conf",
|
||||
path => '/bin:/usr/bin:/sbin:/usr/sbin',
|
||||
unless => "readlink /etc/icinga2/features-enabled/${feature}.conf",
|
||||
command => "icinga2-enable-feature ${feature}",
|
||||
require => Package['icinga2'],
|
||||
notify => Service['icinga2']
|
||||
notify => Service['icinga2']
|
||||
}
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ class icinga2 {
|
||||
|
||||
package { [
|
||||
'icinga2', 'icinga2-doc', 'icinga2-debuginfo' ]:
|
||||
ensure => latest,
|
||||
ensure => latest,
|
||||
require => Class['icinga_packages'],
|
||||
}
|
||||
|
||||
|
@ -2,16 +2,16 @@ class icinga2_mysql {
|
||||
include icinga_packages
|
||||
|
||||
package { 'icinga2-ido-mysql':
|
||||
ensure => latest,
|
||||
ensure => latest,
|
||||
require => Class['icinga_packages'],
|
||||
}
|
||||
|
||||
mysql::database::populate { 'icinga2':
|
||||
username => 'icinga2',
|
||||
password => 'icinga2',
|
||||
username => 'icinga2',
|
||||
password => 'icinga2',
|
||||
privileges => 'SELECT,INSERT,UPDATE,DELETE',
|
||||
schemafile => '/usr/share/icinga2-ido-mysql/schema/mysql.sql',
|
||||
require => Package['icinga2-ido-mysql'],
|
||||
require => Package['icinga2-ido-mysql'],
|
||||
}
|
||||
|
||||
file { '/etc/icinga2/features-available/ido-mysql.conf':
|
||||
|
@ -3,7 +3,7 @@ class monitoring_plugins {
|
||||
|
||||
# nagios plugins from epel
|
||||
package { 'nagios-plugins-all':
|
||||
ensure => installed,
|
||||
ensure => installed,
|
||||
require => Class['epel']
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -14,8 +14,8 @@ define mysql::database::populate ($username, $password, $privileges, $schemafile
|
||||
Exec { path => '/usr/bin' }
|
||||
|
||||
mysql::database::create { $name:
|
||||
username => $username,
|
||||
password => $password,
|
||||
username => $username,
|
||||
password => $password,
|
||||
privileges => $privileges,
|
||||
}
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
#
|
||||
class openldap {
|
||||
|
||||
package { ['openldap-servers', 'openldap-clients']:
|
||||
package { ['openldap-servers', 'openldap-clients']:
|
||||
ensure => installed
|
||||
}
|
||||
|
||||
|
@ -31,15 +31,15 @@ define pear::package(
|
||||
if $channel {
|
||||
exec { "pear discover ${channel}":
|
||||
command => "sudo pear channel-discover ${channel}",
|
||||
unless => "pear channel-info ${channel}",
|
||||
unless => "pear channel-info ${channel}",
|
||||
require => $require_,
|
||||
before => Exec["pear install ${name}"]
|
||||
before => Exec["pear install ${name}"]
|
||||
}
|
||||
}
|
||||
|
||||
exec { "pear install ${name}":
|
||||
command => "pear install --alldeps ${name}",
|
||||
unless => "pear list ${name}",
|
||||
unless => "pear list ${name}",
|
||||
require => $require_
|
||||
}
|
||||
|
||||
|
@ -59,10 +59,10 @@ class icinga_mysql ($icingaVersion) {
|
||||
}
|
||||
|
||||
mysql::database::populate { 'icinga':
|
||||
username => 'icinga',
|
||||
password => 'icinga',
|
||||
privileges => 'SELECT,INSERT,UPDATE,DELETE',
|
||||
schemafile => "/usr/local/src/icinga-mysql/icinga-${icingaVersion}/module/idoutils/db/mysql/mysql.sql",
|
||||
username => 'icinga',
|
||||
password => 'icinga',
|
||||
privileges => 'SELECT,INSERT,UPDATE,DELETE',
|
||||
schemafile => "/usr/local/src/icinga-mysql/icinga-${icingaVersion}/module/idoutils/db/mysql/mysql.sql",
|
||||
requirement => Cmmi['icinga-mysql'],
|
||||
}
|
||||
}
|
||||
|
@ -60,9 +60,9 @@ class icinga_pgsql ($icingaVersion) {
|
||||
}
|
||||
|
||||
pgsql::database::populate { 'icinga':
|
||||
username => 'icinga',
|
||||
password => 'icingaweb',
|
||||
username => 'icinga',
|
||||
password => 'icingaweb',
|
||||
schemafile => "/usr/local/src/icinga-pgsql/icinga-${icingaVersion}/module/idoutils/db/pgsql/pgsql.sql",
|
||||
require => Cmmi['icinga-pgsql'],
|
||||
require => Cmmi['icinga-pgsql'],
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
class icingaweb2 {
|
||||
mysql::database::create { 'icingaweb':
|
||||
username => 'icingaweb',
|
||||
password => 'icingaweb',
|
||||
username => 'icingaweb',
|
||||
password => 'icingaweb',
|
||||
privileges => 'ALL',
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user