Skip to content

A library that wraps jenssegers/php-chef and adds some functionality and support for knife-ec2.

License

Notifications You must be signed in to change notification settings

traderinteractive/chef-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chef

Scrutinizer Code Quality

Latest Stable Version Latest Unstable Version License

Total Downloads Daily Downloads Monthly Downloads

A PHP library that adds some functionality and support for knife-ec2.

Requirements

The knife-ec2 integration depends on the knife-ec2 commands being available.

Installation

This package uses composer so you can just add traderinteractive/chef as a dependency to your composer.json file.

Usage

Chef API Wrapper

$chefEc2 = new TraderInteractive\Chef\ChefEc2(
    'bundle exec knife',
    $chefServer,
    [
        'chefClientName' => $chefClientName,
        'chefClientKey' => $chefClientKey,
        'awsAccessKeyId' => $awsId,
        'awsSecretAccessKey' => $awsSecret,
        'ec2SshUser' => $ec2SshUser,
        'ec2SshKey' => $sshKey,
    ]
);

$chefEc2->updateServers("role:{$roleToQuery}", null, [], ['--override-runlist' => "role[{$roleToExecute}]", '--no-color']);

Upgrading from old versions

Version 3.0 removed the class TraderInteractive\Chef\Chef. The interface was not compatible with PHP 7.

About

A library that wraps jenssegers/php-chef and adds some functionality and support for knife-ec2.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages