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+unsubscr...@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.


Reply via email to