On Fri, Nov 25, 2011 at 11:59 AM, Peter Berghold <salty.cowd...@gmail.com>wrote:

>
>
> I have this module with the following structure.
>
> adminscripts
> ├── facter
> ├── files
> │   └── getVPSNodes.pl
> ├── lib
> │   └── puppet
> │       ├── parser
> │       ├── provider
> │       └── type
> ├── manifests
> │   ├── classes
> │   ├── defines
> │   ├── getvpsnodes.pp
> │   └── init.pp
> └── templates
>
>
>
> The file getvpsnodes.pp looks like:
>
>
> class adminscripts::getvpsnodes{
>       @file { get-vps-nodes-script:
>             path => "/usr/local/sbin/getVPSNodes.pl",
>             source => "puppet://puppet/syscripts/getVPSNodes.pl",
>             owner => root, group => root, mode => 0700 ,
>             require => [File[usr-local-sbin-dir]]
>
>
>       }
>
>       realize File[get-vps-nodes-script]
>
>       @cron {
>               run-get-vps-nodes-daily:
>               hour => 1,
>         command => "/usr/local/sbin/getVPSNodes.pl 2>&1 > /dev/null",
>         user => "puppet",
>         require => [File[get-vps-nodes-script]]
>     }
>
>     realize Cron[run-get-vps-nodes-daily]
>
> }
>
>
> and in one of my node definitions I have this:
>
> node "slccrepos0.slc.sharkrivertech.com" {
>      include stddirs
>
>      include adminscripts::getvpsnodes
>
> }
>
> and I'm seeing this:
>
> err: Could not retrieve catalog from remote server: Error 400 on SERVER:
> Could not find class adminscripts::getvpsnodes for
> slccrepos0.slc.sharkrivertech.com at
> /etc/puppet/manifests/nodes/slccrepos0.pp:4 on node
> slccrepos0.slc.sharkrivertech.com
> warning: Not using cache on failed catalog
> err: Could not retrieve catalog; skipping run
>
>
> I know it has to be me... what am I missing here?
>

As an aside, this was an awesome way to post a module autoload problem
Peter, showing the filesystem layout and the manifest content.

Do you perhaps have another adminscripts/manifests/init.pp somewhere else
in your modulepath?

Or is there a "class adminscripts { ... }" defined somewhere else that's
been picked up by a non-autloaded filesystem layout?

Is this the only version of the adminscripts::getvpsnodes class that exists
in any of your modulepath components?

Anything unusual about the adminscripts/manifests/init.pp in this specific
module?


This doesn't look related, but I'm curious about:

source => "puppet://puppet/syscripts/getVPSNodes.pl",

when it looks like you're also delivering it as:

puppet:///modules/adminscripts/getVPSNodes.pl

in this specific module.



-- 
Nigel Kersten
Product Manager, Puppet Labs

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to