Ask Your Question
0

Invalid resource type with custom type and rspec-puppet

asked 2014-01-26 07:07:50 -0600

lboynton gravatar image

updated 2014-01-27 17:27:05 -0600

I have a build in travis which is failing with:

Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type vcsrepo at /home/travis/build/lboynton/puppet-ejabberd/spec/fixtures/modules/ejabberd/manifests/contrib.pp:14

This is on puppet 3.0, however it passes with puppet 2.7 and 3.1+. I can't seem to work out why this happens, can anyone suggest why?

edit retag flag offensive close merge delete

Comments

spuder gravatar imagespuder ( 2014-01-26 11:18:34 -0600 )edit

Do you have the vcsrepo module specified as a fixture?

lavaman gravatar imagelavaman ( 2014-01-27 16:43:50 -0600 )edit

@lavaman: yes, see https://github.com/lboynton/puppet-ejabberd/blob/master/.fixtures.yml#L4. I have since determined that this is an issue between rspec-puppet and puppet 3.0, so I ...(more)

lboynton gravatar imagelboynton ( 2014-01-27 17:25:32 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-04-19 19:08:41 -0600

solarkennedy gravatar image

This is (probably) the core reason: http://projects.puppetlabs.com/issues...

To counter this, I often use garethr's skeleton's travis.yaml. It is often up to date with the latest currently supported matrix of ruby/puppet versions.

https://github.com/garethr/puppet-mod...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-01-26 07:07:50 -0600

Seen: 1,928 times

Last updated: Apr 19 '14