Ask Your Question

Setup tests from scratch

asked 2016-07-18 12:16:33 -0500

jk2l gravatar image

updated 2016-07-18 21:31:59 -0500

Hi, i have used Puppet for my work environment for a year. Lately I am looking into automated testing and want some feedbacks.

For start, i have setup some basic with puppet-lint and puppet-syntax. My next steps I think is setup rspec-puppet. Then the next one should be Beaker. That one sound like one big mystery box to me. From the documentation of Beaker it sound like running a VM but it also seem like mcollective that pass command to other instances. Can someone explain how beaker work at all?

if it is running in VM how is this different to running tests into vagrant?

Secondly, what is the best methods to test is all server's catalog able to compile. I have few times run into scenerio that it compile in one server but end up into something like duplicate class or circular dependency in another server. what is the best tools to test all servers's catalog able to compile?

Thirdly. I also see some mention of Packer, Vagrant. I am using AWS and anyone know what is the best method to test without launching new instance?

The whole Continous Integration system looks like a very big field and I hope someone can shine some light as I feel like walking into a big blackhole and get confuse with so many information all at once.


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-07-18 22:03:32 -0500

DarylW gravatar image

There are lots of talks from puppetconf 2015 that discuss CI/CD pipelines, including using the checks you mention above, catalog comparison, and beaker. A good talk to give you some basic understanding of getting started is the talk by Gary Larizza -

If you have some more specific questions, feel free to ask, I can try to point you at some more resources!

edit flag offensive delete link more


Hi thanks for the video. it does provide some answer and explain how beaker work. But there is one thing I still not sure. How do i test my control repo? e.g. can my module A and module B will cause conflict? from the video it seem beaker and rspec are testing single module only.

jk2l gravatar imagejk2l ( 2016-07-19 01:31:36 -0500 )edit

There are several ways you can test it. You could use beaker to test a single node which could use multiple modules (to test that they work together). You also can check for basic compatibility using rspec-puppet to compile your role.

DarylW gravatar imageDarylW ( 2016-07-19 21:30:07 -0500 )edit

Thanks, i will start working toward those direction and see how things go.

jk2l gravatar imagejk2l ( 2016-07-19 23:21:33 -0500 )edit

Your Answer

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

Add Answer

Question Tools


Asked: 2016-07-18 12:16:33 -0500

Seen: 37 times

Last updated: Jul 18 '16