Ask Your Question

puppet testing with serverspec

asked 2015-12-11 05:35:20 -0600

Chutki gravatar image

updated 2015-12-11 05:37:33 -0600


I am currently working on serverspec with puppet. But I have few challenges writing serverspec according to puppet manifests, example the attributes require,source not supporting by serverspec Also, I have no idea how to pass hiera values in serverspec. augeas, file_line resources are not working got an error.

I have already worked in rspec-puppet, but rspec-puppet worked my puppet testing all the resources we used in puppet.

is it possible in serverspec. Can someone help me with this.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-12-11 14:22:42 -0600

lavaman gravatar image

Serverspec has nothing to do with puppet code. It is a framework for testing the current state of a machine regardless of how that state came to be. You create serverspec tests to test the result of applying your puppet code to a machine, so they don't have any reason to know about the puppet code itself.

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


Asked: 2015-12-11 05:35:20 -0600

Seen: 329 times

Last updated: Dec 11 '15