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