I'm also seeing the same problem I believe.

I'm running on the following

puppet 2.7.3
ruby 1.8.5
centos 5

I have a defined resource in the module called accounts

   class accounts::virtual {
     define createsysuser ($val) {
         ...
     }
   }

In another class in the same module, I have the following

  class accounts::appaccts {
    include account::virtual

    createsysuser { "someuser"
       val => "someuser"
    }
  }

I get the following error

err: Could not retrieve catalog from remote server: Error 400 on SERVER:
Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid
resource type createsysuser at
/etc/puppet/modules/accounts/manifests/applications.pp:6 on node
foobar.test.com

Is there a fix for this, or am I doing something wrong?

Thanks,
Paul

On Fri, Sep 2, 2011 at 11:21 AM, Brad Krane <brad.kr...@gmail.com> wrote:

> Here is a very simple manifest that recreates this error:
>
>
> class foo {
>  define bar ( $val ) {
>    notice("bar($val)")
>  }
> }
>
> $some_hash = { 'name' => "some_name" }
>
> foo::bar { "$some_hash['name']": }
>
>
> Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid
> resource type foo::bar at /tmp/puptest.pp:9 on node www-cms-
> dev.fs.uwaterloo.ca
>
>
> This seems like a bug to me.
>
> --
> 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.
>
>

-- 
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