Integrating Jenkins with chef

177 views
Skip to first unread message

Lavanya pujari

unread,
Oct 24, 2016, 3:38:21 PM10/24/16
to Jenkins Users
I am working on integrating jenkins with chef. So Inorder to communicate I need to fetch the nodes from chef server where I am able to establish connection between these two. How can I fetch the nodes?

Teichner Peter

unread,
Oct 24, 2016, 3:43:36 PM10/24/16
to Jenkins Users

Which plugin are you using?

Get Outlook for Android




On Mon, Oct 24, 2016 at 8:39 PM +0100, "Lavanya pujari" <pujarila...@gmail.com> wrote:

I am working on integrating jenkins with chef. So Inorder to communicate I need to fetch the nodes from chef server where I am able to establish connection between these two. How can I fetch the nodes?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/dcf93914-b0fc-4fd1-8ffc-ca926027129b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Irfan Sayed

unread,
Oct 24, 2016, 4:18:07 PM10/24/16
to jenkins...@googlegroups.com
just check if this plugin can suffice your requirement 


Regards,


On Tue, Oct 25, 2016 at 1:13 AM, Teichner Peter <peter.t...@nagra.com> wrote:

Which plugin are you using?

Get Outlook for Android




On Mon, Oct 24, 2016 at 8:39 PM +0100, "Lavanya pujari" <pujarila...@gmail.com> wrote:

I am working on integrating jenkins with chef. So Inorder to communicate I need to fetch the nodes from chef server where I am able to establish connection between these two. How can I fetch the nodes?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/631E36F203287D68.a06224ed-7791-436b-ab7f-ad217c5e9147%40mail.outlook.com.

Victor Martinez

unread,
Oct 24, 2016, 5:18:39 PM10/24/16
to Jenkins Users
Hi there,

If i understood correctly, you'd like to query those nodes from chef rather than from Jenkins, if so you might need to ask in the Chef mailing list. 

Although, let me suggest the below Jenkins recipe:

The above resource allows to create slaves within chef.

Cheers

Lavanya pujari

unread,
Oct 25, 2016, 7:10:01 AM10/25/16
to Jenkins Users, peter.t...@nagra.com
Is there any requirement to add certificate to jenkins for fetching nodes from online chef server. As I am using chef sinatra plugin and chef Identity plugin.

suresh kumar

unread,
Oct 25, 2016, 11:31:09 AM10/25/16
to Jenkins Users, peter.t...@nagra.com
Hi Lavanya,
Could you explain the full scenario what you are trying to achieve. In that case you may get correct guidance rather than fix for your problem.
I foresee you are trying to register a node to chef server and then execute the respective recipes.

-Suresh

Irfan Sayed

unread,
Oct 25, 2016, 2:55:28 PM10/25/16
to jenkins...@googlegroups.com, peter.t...@nagra.com
if you want to execute the chef-client on the set of nodes which are fetched based on certain pattern of cookbook and recipe pattern, then chef sinatra plugin is the better choice. further, chef client runs in parallel on all these nodes so that you can save much time there.

please let us know if this is what you are looking for ?
else let us know what is your exact requirement 

Regards,


To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/81bb82c6-e9be-4763-b205-1a3fbf2e880b%40googlegroups.com.

Lavanya pujari

unread,
Nov 1, 2016, 3:04:00 PM11/1/16
to Jenkins Users, peter.t...@nagra.com
The scenario of Integrating Jenkins with Chef is: 

I have configured jenkins with 3 plugins like Chef Identity plugin, Chef Sinatra Plugin and Chef plugin.

While configuring with Chef Identity, I provided the identity name, knife.rb and pem file details. From there using sinatra plugin, I am providing the url of the chefserver and tested the connection it is showing as test connection is success. But here I am unable to fetch the nodes. I am attaching the screenshot which I have configured with sinatra plugin.   Does anyone have any idea about this, suggest me Is this is correct or not

Lavanya pujari

unread,
Nov 1, 2016, 3:06:15 PM11/1/16
to Jenkins Users, peter.t...@nagra.com
Screenshot (542).png

Irfan Sayed

unread,
Nov 4, 2016, 3:09:44 AM11/4/16
to jenkins...@googlegroups.com, peter.t...@nagra.com
I am looking into it. 
Regards,


To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/2f7cc24e-d106-4eb8-b279-f3646d49693a%40googlegroups.com.

Irfan Sayed

unread,
Nov 4, 2016, 2:42:40 PM11/4/16
to jenkins...@googlegroups.com, peter.t...@nagra.com
can you confirm following:
  1. curl::default is really the "cookbook::recipe" pattern?
  2. can you click on validate syntax button and check whether the syntax is correct 
  3. nodes are really assigned to that cookbooks ?
please let me know 
Regards,

Irfan Sayed

unread,
Nov 6, 2016, 4:04:53 AM11/6/16
to jenkins...@googlegroups.com, peter.t...@nagra.com
lavanya,
any update ?

Lavanya pujari

unread,
Nov 7, 2016, 12:15:58 PM11/7/16
to Jenkins Users, peter.t...@nagra.com
Yes the cookbook pattern is same there. I also done validating syntax it is correct one, the nodes also assigned to that cook book only.
lavanya,
any update ?

Irfan Sayed

unread,
Nov 7, 2016, 1:36:04 PM11/7/16
to jenkins...@googlegroups.com, peter.t...@nagra.com
can you confirm that user "miracle" is able to ssh to nodes as a pass-wordless authentication?
if not, nodes will be return empty  

To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/7a26112c-1ab6-448b-9f77-47691fa8bed4%40googlegroups.com.

Lavanya pujari

unread,
Nov 8, 2016, 8:15:07 AM11/8/16
to Jenkins Users, peter.t...@nagra.com
yes Irfan I made the ssh authentication is done without password

Irfan Sayed

unread,
Nov 8, 2016, 11:10:37 AM11/8/16
to jenkins...@googlegroups.com, peter.t...@nagra.com
i need to reproduce this. is there any way to access this env.  

To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/756fb561-2ebc-4322-ad39-d2fbe903943d%40googlegroups.com.

Lavanya pujari

unread,
Nov 8, 2016, 2:22:35 PM11/8/16
to Jenkins Users, peter.t...@nagra.com
Sorry Irfan I didn't know about that. I have done password less authentication using ssl commands and here I followed the link:

http://www.tecmint.com/ssh-passwordless-login-using-ssh-keygen-in-5-easy-steps/

Irfan Sayed

unread,
Nov 9, 2016, 1:11:40 PM11/9/16
to jenkins...@googlegroups.com, peter.t...@nagra.com
ok so is it now resolved. ?
are you getting all nodes ?

To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9f795294-2cab-4560-8c72-448830e4ebfd%40googlegroups.com.

Lavanya pujari

unread,
Nov 10, 2016, 7:52:23 AM11/10/16
to Jenkins Users, peter.t...@nagra.com
No the issue wasn't solved..still trying If anyone knows please help me

Irfan Sayed

unread,
Nov 10, 2016, 11:28:57 AM11/10/16
to jenkins...@googlegroups.com, peter.t...@nagra.com
Is there any way where i can access the environment ? 
I need some way to reproduce the issue.  
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6750fa50-5470-477f-b0be-14b090b89407%40googlegroups.com.

Irfan Sayed

unread,
Nov 11, 2016, 1:01:37 PM11/11/16
to jenkins...@googlegroups.com, peter.t...@nagra.com
any update ?
Reply all
Reply to author
Forward
0 new messages