PHP code example of dominionenterprises / chef

1. Go to this page and download the library: Download dominionenterprises/chef library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

dominionenterprises / chef example snippets


$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']);