Dear puppet community, I am having problems using a module puppetlabs-vcsrepo from the forge. I''m getting the error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type vcsrepo at /etc/puppet/development/manifests/ nodes.pp:37 on node puptest.ugent.be server puppet.conf: [main] logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet factpath=$vardir/lib/facter pluginsync=true environment=production modulepath=$confdir/common/modules templatedir=$confdir/common/templates [development] manifest=$confdir/development/manifests/site.pp modulepath=$confdir/development/modules:$confdir/common/modules templatedir=$confdir/development/templates:$confdir/common/templates [production] manifest=$confdir/production/manifests/site.pp modulepath=$confdir/production/modules:$confdir/common/modules templatedir=$confdir/production/templates:$confdir/common/templates [master] certname=puppet.ugent.be reports = store,log ssl_client_header = SSL_CLIENT_S_DN ssl_client_verify_header = SSL_CLIENT_VERIFY client puppet.conf: [main] logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet factpath=$vardir/lib/facter pluginsync=true templatedir=$confdir/templates runinterval=60 server=puppet.ugent.be [agent] environment=development Server layout: /etc/puppet/ |-- common | |-- modules | | `-- lib | `-- templates |-- development | |-- manifests | | |-- classes | | |-- definitions | | |-- groups | | |-- os | | |-- templates | | `-- users | |-- modules | | |-- apache | | |-- collectd | | |-- netbackup | | |-- ntp | | |-- sysstat | | `-- vcsrepo | `-- templates | `-- saslauthd |-- files |-- lib |-- manifests |-- production | |-- manifests | |-- modules | | `-- lib | `-- templates node config: node ugent_node { include ugent } node "puptest.ugent.be" inherits ugent_node { include vcsrepo vcsrepo { "/tmp/vcstest-svn-checkout": ensure => present, provider => svn, source => ''http://svn.edgewall.org/repos/babel/trunk'' } } vcsrepo (0.0.3 from the forge:) wopr:/etc/puppet/development/modules# tree vcsrepo/ vcsrepo/ |-- LICENSE |-- Modulefile |-- Rakefile |-- examples | |-- bzr | | |-- branch.pp | | `-- init_repo.pp | |-- cvs | | |-- local.pp | | `-- remote.pp | |-- git | | |-- bare_init.pp | | |-- clone.pp | | `-- working_copy_init.pp | |-- hg | | |-- clone.pp | | `-- init_repo.pp | `-- svn | |-- checkout.pp | `-- server.pp |-- lib | `-- puppet | |-- provider | | |-- vcsrepo | | | |-- bzr.rb | | | |-- cvs.rb | | | |-- git.rb | | | |-- hg.rb | | | `-- svn.rb | | `-- vcsrepo.rb | `-- type | `-- vcsrepo.rb |-- manifests | `-- init.pp `-- spec |-- fixtures | |-- bzr_version_info.txt | |-- git_branch_a.txt | |-- hg_parents.txt | |-- hg_tags.txt | `-- svn_info.txt |-- spec.opts |-- spec_helper.rb |-- support | |-- filesystem_helpers.rb | |-- fixture_helpers.rb | `-- provider_example_group.rb `-- unit `-- puppet |-- provider | `-- vcsrepo | |-- bzr_spec.rb | |-- cvs_spec.rb | |-- git_spec.rb | |-- hg_spec.rb | `-- svn_spec.rb `-- type The type and provider and synced to the client: puptest:/tmp# find /var/lib/puppet/lib/puppet/ /var/lib/puppet/lib/puppet/ /var/lib/puppet/lib/puppet/provider /var/lib/puppet/lib/puppet/provider/vcsrepo.rb /var/lib/puppet/lib/puppet/provider/a2mod /var/lib/puppet/lib/puppet/provider/a2mod/a2mod.rb /var/lib/puppet/lib/puppet/provider/vcsrepo /var/lib/puppet/lib/puppet/provider/vcsrepo/svn.rb /var/lib/puppet/lib/puppet/provider/vcsrepo/git.rb /var/lib/puppet/lib/puppet/provider/vcsrepo/bzr.rb /var/lib/puppet/lib/puppet/provider/vcsrepo/cvs.rb /var/lib/puppet/lib/puppet/provider/vcsrepo/hg.rb /var/lib/puppet/lib/puppet/type /var/lib/puppet/lib/puppet/type/vcsrepo.rb /var/lib/puppet/lib/puppet/type/a2mod.rb trace output: ... info: /File[/var/lib/puppet/lib]: Storing newly-audited value for content debug: Finishing transaction 70300949387920 debug: Storing state debug: Stored state in 0.03 seconds info: Loading facts in configured_ntp_servers info: Loading facts in configured_ntp_servers debug: catalog supports formats: b64_zlib_yaml dot marshal pson raw yaml; using pson /usr/lib/ruby/1.8/puppet/indirector/rest.rb:57:in `deserialize'' /usr/lib/ruby/1.8/puppet/indirector/rest.rb:71:in `find'' /usr/lib/ruby/1.8/puppet/indirector/indirection.rb:193:in `find'' /usr/lib/ruby/1.8/puppet/indirector.rb:50:in `find'' /usr/lib/ruby/1.8/puppet/configurer.rb:225:in `retrieve_new_catalog'' /usr/lib/ruby/1.8/puppet/util.rb:414:in `thinmark'' /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'' /usr/lib/ruby/1.8/puppet/util.rb:413:in `thinmark'' /usr/lib/ruby/1.8/puppet/configurer.rb:224:in `retrieve_new_catalog'' /usr/lib/ruby/1.8/puppet/configurer.rb:102:in `retrieve_catalog'' /usr/lib/ruby/1.8/puppet/configurer.rb:143:in `run'' /usr/lib/ruby/1.8/puppet/agent.rb:39:in `run'' /usr/lib/ruby/1.8/puppet/agent/locker.rb:21:in `lock'' /usr/lib/ruby/1.8/puppet/agent.rb:39:in `run'' /usr/lib/ruby/1.8/sync.rb:230:in `synchronize'' /usr/lib/ruby/1.8/puppet/agent.rb:39:in `run'' /usr/lib/ruby/1.8/puppet/agent.rb:101:in `with_client'' /usr/lib/ruby/1.8/puppet/agent.rb:37:in `run'' /usr/lib/ruby/1.8/puppet/application.rb:171:in `call'' /usr/lib/ruby/1.8/puppet/application.rb:171:in `controlled_run'' /usr/lib/ruby/1.8/puppet/agent.rb:35:in `run'' /usr/lib/ruby/1.8/puppet/application/agent.rb:114:in `onetime'' /usr/lib/ruby/1.8/puppet/application/agent.rb:88:in `run_command'' /usr/lib/ruby/1.8/puppet/application.rb:301:in `run'' /usr/lib/ruby/1.8/puppet/application.rb:398:in `exit_on_fail'' /usr/lib/ruby/1.8/puppet/application.rb:301:in `run'' /usr/lib/ruby/1.8/puppet/util/command_line.rb:55:in `execute'' /usr/bin/puppet:4 err: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type vcsrepo at /etc/puppet/development/manifests/ nodes.pp:37 on node puptest.ugent.be info: Not using expired catalog for puptest.ugent.be from cache; expired at Thu Jul 29 16:03:20 +0200 2010 notice: Using cached catalog err: Could not retrieve catalog; skipping run Can somebody tell me what I''m missing to get it to work? Thanks in advance! Rudy -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Stijn Hoop
2011-Aug-01 11:05 UTC
[Puppet Users] Re: 2.6 and modules: Invalid resource type
Seeing exactly the same, nearly the same setup (using $environment instead of hardcoding production/development, trying to use my own extension). Running puppet 2.6.9 on CentOS 5.6 (both master and agent). I did not see any issue about this yet, but since I''m just starting with puppet it might very well be me. Any clues? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/-VokCYsf8o4J. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.