Ask Your Question

i want to test node once all modules/class invoked in the node.

asked 2015-02-23 14:37:52 -0600

singaravelan gravatar image

Once i add the node into the group , the classed added in the group will be invoked to the node. example if i am adding the node into tomcat group . once puppet run finishes , tomcat will be installed and service runs, logs path ..etc, i want to test this case with any unit testing . I don't want to see the puppet dashboard to view the status of the node. Is there any way to test case .

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2015-02-24 07:39:31 -0600

Take a look at Serverspec ( ). I think it is what you are looking for.

edit flag offensive delete link more


Thanks Richard . Tool is really good , but i am running issue with aws instance , because ssh login fails to connect ssh gem module.\*_spec.rb /opt/puppet/lib/ruby/gems/1.9.1/gems/net-ssh-2.9.2/lib/net/ssh.rb:224:in `start': Authentication failed for user ec2-user@testwso2esb

singaravelan gravatar imagesingaravelan ( 2015-02-24 14:10:35 -0600 )edit

any help on this to sort out. Thanks in advance for your response .

singaravelan gravatar imagesingaravelan ( 2015-02-24 14:11:13 -0600 )edit

answered 2015-02-24 16:07:43 -0600

singaravelan gravatar image

options[:keys] =["/home/ec2-user/mykey.pem"]

just added this line into the rb file to ssh ec2 instance . Issue fixed .

Thanks for your help Richard ..Appreciated !!!!

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


Asked: 2015-02-23 14:37:52 -0600

Seen: 101 times

Last updated: Feb 24 '15