From c223993eba487cc24425890b2b9b6abd2f6c4d35 Mon Sep 17 00:00:00 2001 From: David Schmitt Date: Sun, 31 May 2009 21:18:22 +0200 Subject: adapt to new "common" module --- manifests/host.pp | 4 ++-- manifests/init.pp | 4 ++-- manifests/plugin.pp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'manifests') diff --git a/manifests/host.pp b/manifests/host.pp index af0f11b..f89cbb8 100644 --- a/manifests/host.pp +++ b/manifests/host.pp @@ -25,13 +25,13 @@ class munin::snmp_collector { file { - "/var/lib/puppet/modules/munin/create_snmp_links": + "${module_dir_path}/munin/create_snmp_links": source => "puppet://$servername/munin/create_snmp_links.sh", mode => 755, owner => root, group => root; } exec { "create_snmp_links": - command => "/var/lib/puppet/modules/munin/create_snmp_links $NODESDIR", + command => "${module_dir_path}/munin/create_snmp_links $NODESDIR", require => File["snmp_links"], timeout => "2048", schedule => daily diff --git a/manifests/init.pp b/manifests/init.pp index a1ea92c..4a049a4 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -5,9 +5,9 @@ # the port is a parameter so vservers can share IP addresses and still be happy # Define where the individual nodes' configs are stored -$NODESDIR="/var/lib/puppet/modules/munin/nodes" +$NODESDIR="${module_dir_path}/munin/nodes" -modules_dir { [ "munin", "munin/nodes", "munin/plugins" ]: } +module_dir { [ "munin", "munin/nodes", "munin/plugins" ]: } import "host.pp" import "client.pp" diff --git a/manifests/plugin.pp b/manifests/plugin.pp index a23a567..85fa444 100644 --- a/manifests/plugin.pp +++ b/manifests/plugin.pp @@ -53,14 +53,14 @@ define munin::remoteplugin($ensure = "present", $source, $config = '') { "absent": { munin::plugin{ $name: ensure => absent } } default: { file { - "/var/lib/puppet/modules/munin/plugins/${name}": + "${module_dir_path}/munin/plugins/${name}": source => $source, mode => 0755, owner => root, group => root; } munin::plugin { $name: ensure => $ensure, config => $config, - script_path => "/var/lib/puppet/modules/munin/plugins", + script_path => "${module_dir_path}/munin/plugins", } } } -- cgit v1.2.3