Move profile `icinga2-dev' and its files to `profiles/icinga2-dev'
refs #6842
This commit is contained in:
parent
f1d18c1725
commit
6c52b5233f
|
@ -1,28 +0,0 @@
|
||||||
class profile::icinga2-dev {
|
|
||||||
include icinga2-mysql
|
|
||||||
|
|
||||||
icinga2::feature { [ 'statusdata', 'command', 'compatlog' ]:
|
|
||||||
require => Package['icinga2-classicui-config'],
|
|
||||||
}
|
|
||||||
|
|
||||||
file { '/etc/icinga2/conf.d/test-config.conf':
|
|
||||||
source => 'puppet:////vagrant/.vagrant-puppet/files/etc/icinga2/conf.d/test-config.conf',
|
|
||||||
owner => 'icinga',
|
|
||||||
group => 'icinga',
|
|
||||||
require => [ Package['icinga2'], Exec['create_monitoring_test_config'] ]
|
|
||||||
}
|
|
||||||
|
|
||||||
file { '/etc/icinga2/conf.d/commands.conf':
|
|
||||||
source => 'puppet:////vagrant/.vagrant-puppet/files/etc/icinga2/conf.d/commands.conf',
|
|
||||||
owner => 'icinga',
|
|
||||||
group => 'icinga',
|
|
||||||
require => Package['icinga2'],
|
|
||||||
}
|
|
||||||
|
|
||||||
file { '/etc/icinga2/constants.conf':
|
|
||||||
source => 'puppet:////vagrant/.vagrant-puppet/files/etc/icinga2/constants.conf',
|
|
||||||
owner => 'icinga',
|
|
||||||
group => 'icinga',
|
|
||||||
require => Package['icinga2'],
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
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' ]: }
|
||||||
|
}
|
Loading…
Reference in New Issue