parent
a2de4a8c22
commit
63999c80ac
|
@ -400,7 +400,8 @@ exec { 'create_monitoring_test_config':
|
||||||
command => 'sudo install -o root -g root -d /usr/local/share/misc/ && \
|
command => 'sudo install -o root -g root -d /usr/local/share/misc/ && \
|
||||||
sudo /usr/local/bin/create_monitoring_test_config.pl -l icinga \
|
sudo /usr/local/bin/create_monitoring_test_config.pl -l icinga \
|
||||||
/usr/local/share/misc/monitoring_test_config',
|
/usr/local/share/misc/monitoring_test_config',
|
||||||
creates => '/usr/local/share/misc/monitoring_test_config'
|
creates => '/usr/local/share/misc/monitoring_test_config',
|
||||||
|
require => Cpan['Monitoring::Generator::TestConfig']
|
||||||
}
|
}
|
||||||
|
|
||||||
define populate_monitoring_test_config {
|
define populate_monitoring_test_config {
|
||||||
|
@ -418,14 +419,14 @@ define populate_monitoring_test_config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/usr/local/icinga-mysql/etc/conf.d/test_config':
|
file { '/usr/local/icinga-mysql/etc/conf.d/test_config/':
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
owner => icinga,
|
owner => icinga,
|
||||||
group => icinga,
|
group => icinga,
|
||||||
require => Cmmi['icinga-mysql']
|
require => Cmmi['icinga-mysql']
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/usr/local/icinga-pgsql/etc/conf.d/test_config':
|
file { '/usr/local/icinga-pgsql/etc/conf.d/test_config/':
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
owner => icinga,
|
owner => icinga,
|
||||||
group => icinga,
|
group => icinga,
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
# Define: cpan
|
# Define: cpan
|
||||||
#
|
#
|
||||||
# Download and install Perl modules from the Perl Archive Network, the gateway to all things Perl.
|
# Download and install Perl modules from the Perl Archive Network, the canonical location for Perl code and modules.
|
||||||
# The canonical location for Perl code and modules.
|
|
||||||
#
|
#
|
||||||
# Parameters:
|
# Parameters:
|
||||||
# [*creates*] - target directory the software will install to.
|
# [*creates*] - target directory the software will install to.
|
||||||
|
@ -11,6 +10,8 @@
|
||||||
#
|
#
|
||||||
# Requires:
|
# Requires:
|
||||||
#
|
#
|
||||||
|
# Perl
|
||||||
|
#
|
||||||
# Sample Usage:
|
# Sample Usage:
|
||||||
#
|
#
|
||||||
# cpan { 'perl-module':
|
# cpan { 'perl-module':
|
||||||
|
@ -29,9 +30,14 @@ define cpan(
|
||||||
ensure => installed
|
ensure => installed
|
||||||
}
|
}
|
||||||
|
|
||||||
|
file { [ '/root/.cpan/', '/root/.cpan/CPAN/' ]:
|
||||||
|
ensure => directory
|
||||||
|
}
|
||||||
|
|
||||||
file { '/root/.cpan/CPAN/MyConfig.pm':
|
file { '/root/.cpan/CPAN/MyConfig.pm':
|
||||||
content => template('cpan/MyConfig.pm.erb'),
|
content => template('cpan/MyConfig.pm.erb'),
|
||||||
require => Package['perl-CPAN']
|
require => [ Package['perl-CPAN'],
|
||||||
|
File[[ '/root/.cpan/', '/root/.cpan/CPAN/' ]] ]
|
||||||
}
|
}
|
||||||
|
|
||||||
exec { "cpan-${name}":
|
exec { "cpan-${name}":
|
||||||
|
|
Loading…
Reference in New Issue