[chef] i like to bootstrap and execute the particular cookbooks through API request using chef library


Chronological Thread 
  • From: < >
  • To:
  • Subject: [chef] i like to bootstrap and execute the particular cookbooks through API request using chef library
  • Date: Fri, 25 Jan 2013 03:21:49 -0800 (PST)

hi,

i need to to make authenticated API request is to use the chef libraries like
below
require 'rubygems'
require 'chef/config'
require 'chef/log'
require 'chef/rest'

chef_server_url="https://chefserver.com";
client_name = "clientname"
signing_key_filename="/path/to/pem/for/clientname"

rest = Chef::REST.new(chef_server_url, client_name, signing_key_filename)
puts rest.get_rest("/clients")

like wise i like to bootstrap and execute the particular cookbooks through API
request using chef library, it is possible means please send solution as soon
as possible.

Thanks and Regards,
Ganesan.A


  • [chef] i like to bootstrap and execute the particular cookbooks through API request using chef library, ganesan15785, 01/25/2013

Archive powered by MHonArc 2.6.16.

§