Nick Wales
2013-Mar-17 05:08 UTC
[Puppet Users] cloudstack_resources - invalid instance resource type
I''ve created cloudstack_resources as a module, have setup the transport.yaml and can successfully run "puppet resource cloudstack_instance" against my cloudstack environment. The following cloudstack_instance files have been created /var/lib/puppet/lib/puppet/provider/cloudstack_instance /var/lib/puppet/lib/puppet/provider/cloudstack_instance/default.rb /var/lib/puppet/lib/puppet/type/cloudstack_instance.rb But having created an init.pp in that module with the following: class cloudstack_resources { cloudstack_instance{ ''bar'': flavor => ''1.s'', ensure => present, zone => ''cs1.internal'', image => ''CentOS-6-x86_64'', network => ''guestNetworkForBasicZone'', } # this is line 19 I get the following in my puppet run: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type cloudstack_instance at /etc/puppet/environments/cloudstack/modules/cloudstack_resources/manifests/init.pp:19 on node <redacted> Any thoughts on where I have gone wrong? This is using puppet version 3.1.0 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Dan Bode
2013-Mar-18 02:57 UTC
Re: [Puppet Users] cloudstack_resources - invalid instance resource type
On Sat, Mar 16, 2013 at 10:08 PM, Nick Wales <nick@nickwales.co.uk> wrote:> I''ve created cloudstack_resources as a module, have setup the > transport.yaml and can successfully run "puppet resource > cloudstack_instance" against my cloudstack environment. > > The following cloudstack_instance files have been created > > /var/lib/puppet/lib/puppet/provider/cloudstack_instance > /var/lib/puppet/lib/puppet/provider/cloudstack_instance/default.rb > /var/lib/puppet/lib/puppet/type/cloudstack_instance.rb > > > But having created an init.pp in that module with the following: > > class cloudstack_resources { > cloudstack_instance{ ''bar'': > flavor => ''1.s'', > ensure => present, > zone => ''cs1.internal'', > image => ''CentOS-6-x86_64'', > network => ''guestNetworkForBasicZone'', > } # this is line 19 > > > I get the following in my puppet run: > > err: Could not retrieve catalog from remote server: Error 400 on SERVER: > Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid > resource type cloudstack_instance at > /etc/puppet/environments/cloudstack/modules/cloudstack_resources/manifests/init.pp:19 > on node <redacted> > > > Any thoughts on where I have gone wrong? >the error message indicates that the resource type cannot be found. I believe its referring to a loading failure on the server side which means that the resource types cannot be resolved in the modulepath used to compile the catalog.> > This is using puppet version 3.1.0 > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.