To follow up, I had absolutely been looking at the problem for too long.
 The filenames were snmpd.conf and snmpd.options, so I was just missing the
d.

-Aaron


On Thu, Jun 17, 2010 at 4:44 PM, Aaron Blew <aaronb...@gmail.com> wrote:

> I'm getting the following errors in the module I'm writing to maintain my
> snmpd configurations (this is a mis of verbose and normal errors):
>
> err: //snmp/File[/etc/sysconfig/snmpd.options]: Failed to retrieve current
> state of resource: Could not retrieve information from source(s)
> puppet:///snmp/snmp.options at /etc/puppet/modules/snmp/manifests/init.pp:25
> Jun 17 16:36:46 ab-puppetclient puppetd[5602]:
> (//snmp/File[/etc/sysconfig/snmpd.options]) Failed to retrieve current state
> of resource: Could not retrieve information from source(s)
> puppet:///snmp/snmp.options at /etc/puppet/modules/snmp/manifests/init.pp:25
> err: //snmp/File[/etc/snmp/snmpd.conf]: Failed to retrieve current state of
> resource: Could not retrieve information from source(s)
> puppet:///snmp/snmp.conf at /etc/puppet/modules/snmp/manifests/init.pp:14
> Jun 17 16:36:57 ab-puppetclient puppetd[5602]:
> (//snmp/File[/etc/snmp/snmpd.conf]) Failed to retrieve current state of
> resource: Could not retrieve information from source(s)
> puppet:///snmp/snmp.conf at /etc/puppet/modules/snmp/manifests/init.pp:14
>
> Here's my manifest:
> class snmp {
>     # Make sure SNMP is installed.  net-snmp-utils grabs all the right
> bits.
>     package { "net-snmp":
>         name    => "net-snmp-utils",
>         ensure  => "installed",
>     }
>
>     file { "/etc/snmp/snmpd.conf":
>         owner   => "root",
>         group   => "root",
>         mode    => 640,
>         source  => "puppet:///snmp/snmp.conf",
>         require => Package["net-snmp"],
>     }
>
>     # We won't need the .options file on non-linux boxes
>     case $kernel {
>         "Linux": {
>             file { "/etc/sysconfig/snmpd.options":
>                 owner   => "root",
>                 group   => "root",
>                 mode    => 640,
>                 source  => "puppet:///snmp/snmp.options",
>                 require => Package["net-snmp"],
>             }
>         }
>     }
> }
>
> I've got other modules successfully retrieving files with very similar file
> resource calls.  I'm kind of stumped!  Hopefully I've just been staring at
> this for too long and someone will see the obvious thing that I'm missing.
>
> Thanks all,
> -Aaron
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to