Ask Your Question
0

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

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

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
0

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

Take a look at Serverspec ( http://serverspec.org/ ). I think it is what you are looking for.

edit flag offensive delete link more

Comments

Thanks Richard . Tool is really good , but i am running issue with aws instance , because ssh login fails to connect ssh gem module. b.whplabs.com/\*_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 -0500 )edit

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

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

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

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

Stats

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

Seen: 92 times

Last updated: Feb 24 '15