mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 15:54:03 +02:00
parent
e31e6a8972
commit
62def403dc
11
.vagrant-puppet/modules/icinga2/manifests/config.pp
Normal file
11
.vagrant-puppet/modules/icinga2/manifests/config.pp
Normal file
@ -0,0 +1,11 @@
|
||||
define icinga2::config ($source) {
|
||||
include icinga2
|
||||
|
||||
$path = "/etc/icinga2/${name}.conf"
|
||||
file { $path:
|
||||
source => "${source}${path}",
|
||||
owner => 'icinga',
|
||||
group => 'icinga',
|
||||
require => Class['icinga2'],
|
||||
}
|
||||
}
|
@ -2,15 +2,8 @@ class icinga2_dev {
|
||||
include icinga2
|
||||
include icinga2_mysql
|
||||
|
||||
define icinga2_config {
|
||||
$path = "/etc/icinga2/${name}.conf"
|
||||
file { $path:
|
||||
source => "puppet:///modules/icinga2_dev${path}",
|
||||
owner => 'icinga',
|
||||
group => 'icinga',
|
||||
require => Class['icinga2'],
|
||||
}
|
||||
icinga2::config { [
|
||||
'conf.d/test-config', 'conf.d/commands', 'constants' ]:
|
||||
source => 'puppet:///modules/icinga2_dev',
|
||||
}
|
||||
|
||||
icinga2_config { [ 'conf.d/test-config', 'conf.d/commands', 'constants' ]: }
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user