adamou s. nacer
2008-Nov-06 10:58 UTC
[Puppet Users] introduction with david''s munin module question
Hi all, I am new to puppet and also newcomer in this group. I heart good things about puppet and I decided to give it a try 2 weeks now. After reading various documentation, I began using the complete configuration collection of puppet modules (thanks to David). But I have a problem with the munin module. It works fine, except that it seems to not export virtual ressources. Let me give more detail about my configuration: I use puppet version 0.24 on debian etch. here is my puppet.conf file content [main] logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet factpath=$vardir/lib/facter pluginsync=true [puppetmasterd] templatedir=/var/lib/puppet/templates runinterval = 60 storeconfigs=true dbuser=puppet dbpassword=puppetpwd dbadapter=mysql dbserver=localhost my fileserver.conf file [files] path /etc/puppet/files allow 192.168.127.0/24 allow 127.0.0.1/8 [modules] allow 192.168.127.0/24 allow 127.0.0.1/8 [plugins] allow 192.168.127.0/24 allow 127.0.0.1/8 where 192.168.127.0/24 is my network (openvz virtual hosts). manifests/site.pp file # site.pp $munin_allow=''192.168.127.103'' import "modules.pp" where manifests/modules.pp has # modules.pp import "common" import "munin" and finally manifests/nodes.pp # nodes.pp node puppet { include munin::client } node backuppc { include munin::client } node munin { include munin::host include munin::client } I followed all the other instructions given in munin and common modules READMEs. But when I run on the master the following command: puppetd --server puppet.cm.auf --waitforcert 60 --test all is fine, but I can''t see any exported resource in the database. But if I add the following line in the nodes.pp file for the node representing the puppet master munin::plugin { df_abs: } so that it looks like this node puppet { include munin::client munin::plugin { df_abs: } } and rerun the above command, I have this error message puppet:/etc/puppet# puppetd --server puppet.cm.auf --waitforcert 60 --test info: Loading fact netmask info: Loading fact interfaces info: Loading fact acpi_available info: Retrieving plugins notice: /File[/var/lib/puppet/lib]/checksum: checksum changed ''{mtime}Tue Nov 04 18:01:28 +0000 2008'' to ''{mtime}Tue Nov 04 22:14:28 +0000 2008'' info: Loading fact netmask info: Loading fact interfaces info: Loading fact acpi_available err: Could not retrieve catalog: Puppet::Parser::AST::Resource failed with error ArgumentError: Duplicate definition: Munin::Plugin[df_abs] is already defined in file /etc/puppet/modules/munin/manifests/plugin.pp at line 109; cannot redefine at /etc/puppet/manifests/nodes.pp:5 on node puppet.cm.auf warning: Not using cache on failed catalog Can someone help me fixe this? Thank you in advance. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
David Schmitt
2008-Nov-07 09:41 UTC
[Puppet Users] Re: introduction with david''s munin module question
adamou s. nacer schrieb:> Hi all, > I am new to puppet and also newcomer in this group. > I heart good things about puppet and I decided to give it a try 2 weeks now. > After reading various documentation, I began using the complete > configuration collection of puppet modules (thanks to David).I''m glad it is of use to you!> But I have a problem with the munin module. It works fine, except that it > seems to not export virtual ressources. Let me give more detail about my > configuration: > I use puppet version 0.24 on debian etch. > here is my puppet.conf file content[looks fine]> manifests/site.pp file > # site.pp > > $munin_allow=''192.168.127.103'' > import "modules.pp" > > where manifests/modules.pp has > # modules.pp > > import "common" > import "munin" > > and finally manifests/nodes.pp > # nodes.pp > > node puppet { > include munin::client > } > > node backuppc { > include munin::client > } > > node munin { > include munin::host > include munin::client > } > > > I followed all the other instructions given in munin and common modules > READMEs. > But when I run on the master the following command: > puppetd --server puppet.cm.auf --waitforcert 60 --test > all is fine, but I can''t see any exported resource in the database.The only resource exported and collected by the munin module is the ${NODESDIR}/${name}_${munin_port_real} File in munin::register, which is created by munin::client and collected by munin::host. There were some recent changes to export/collect (which is still experimental) and I''m not 100% sure whether or not this would be affected.> But if I add the following line in the nodes.pp file for the node > representing the puppet master > munin::plugin { df_abs: } > so that it looks like this > > node puppet { > include munin::client > munin::plugin { df_abs: } > } > and rerun the above command, I have this error message > puppet:/etc/puppet# puppetd --server puppet.cm.auf --waitforcert 60 --test > info: Loading fact netmask > info: Loading fact interfaces > info: Loading fact acpi_available > info: Retrieving plugins > notice: /File[/var/lib/puppet/lib]/checksum: checksum changed ''{mtime}Tue > Nov 04 18:01:28 +0000 2008'' to ''{mtime}Tue Nov 04 22:14:28 +0000 2008'' > info: Loading fact netmask > info: Loading fact interfaces > info: Loading fact acpi_available > err: Could not retrieve catalog: Puppet::Parser::AST::Resource failed with > error ArgumentError: Duplicate definition: Munin::Plugin[df_abs] is already > defined in file /etc/puppet/modules/munin/manifests/plugin.pp at line 109; > cannot redefine at /etc/puppet/manifests/nodes.pp:5 on node puppet.cm.auf > warning: Not using cache on failed catalogThe df_abs plugin is in the set of automatically defined plugins and puppet rightly complains that it doesn''t want to manage the plugin twice. Regards, DavidS --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---