-
Notifications
You must be signed in to change notification settings - Fork 4
ozanturksever/ChefServerApi
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Basic client for Opscode Chef Server API Server Api: http://wiki.opscode.com/display/chef/Server+API Examples: // Connectiong $api = new ChefServer("192.168.124.10",4000,'webserver', '/etc/chef/client.key'); // geting client list var_dump( $api->get('/clients') ); // getting node list var_dump( $api->get('/node') ); // fetch 'test' data bag var_dump( $api->get('/data/test') ); // create 'test' data bag $api->post('/data', array('name'=>'test')); // insert into 'test' data bag $api->post('/data/test', array('id'=>'test_id','somekey'=>'somevalue')); // update a data bag item $api->put('/data/test', 'test_id', array('id'=>'bla','somekey'=>'somenewvalue', 'newcol'=>'newvalue')) ); // delete a data bag item $api->delete('/data/test', 'test_id');
About
Basic rest client for Chef server api
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published