Baber
Baber

Reputation: 321

How to bootstrap a node in chef using chef server REST API?

I have a lot of experience with Chef using the knife command. Now I want to code and automate this process using Chef Server REST API instead of using the Knife tool. Is there any way I can use Chef Server REST API to booststrap nodes?

Upvotes: 1

Views: 532

Answers (2)

slashpai
slashpai

Reputation: 1169

You can create a jenkins job which accepts node's username normally root, root password, node fqdns, runlist etc where runlist can be optional. Jenkins instance should have a chef user, a service account with access to chef server so the job can takecare of bootstrapping process instead of using knife bootstrap command from terminal

Upvotes: 0

coderanger
coderanger

Reputation: 54211

No, the bootstrap system is run from knife itself, Chef Server is not directly involved at all and does not have that capability. This is important because the SSH credentials used to access the target server never leave your workstation.

Upvotes: 1

Related Questions