Run chef client on remote host using Sparrowdo.
Perl 6
Switch branches/tags
Nothing to show
Clone or download
Latest commit d446387 Sep 1, 2017
Permalink
Failed to load latest commit information.
lib/Sparrowdo/Chef issue #1 Sep 1, 2017
t boilerplate Dec 16, 2016
.gitignore use ducky for tests Sep 1, 2017
.travis.yml use ducky for tests Sep 1, 2017
Changes issue #1 Sep 1, 2017
META6.json issue #1 Sep 1, 2017
README boilerplate Dec 16, 2016
README.md issue #1 Sep 1, 2017
ducky.json use ducky for tests Sep 1, 2017
sparrowfile use ducky for tests Sep 1, 2017

README.md

SYNOPSIS

Run chef client on remote host using Sparrowdo.

Travis build status

Build Status

INSTALL

$ zef install Sparrowdo::Chef::Client

USAGE

$ cat sparrowfile

module_run 'Chef::Client', %(
  run-list => [
    "recipe[foo::bar]",
    "role[baz]"
  ],
  log-level => 'info',
  attributes => %(
    foo => %(
      bar => [ 1, 2 , 3]
    )
  ),
);

Parameters

run-list

Should be a chef run list. Default value is empty Array.

log-level

Sets log level for chef client run. Default level is info. Optional.

attributes

Sets chef node attributes. From the Perl6 point of view it's just a Hash of parameters.

For example:

attributes => {
  foo => 'bar',
  bar => {
    baz => [ 1, 2, 3 ]
  }
}

local-mode

If set runs with --local-mode, see https://docs.chef.io/ctl_chef_client.html#run-in-local-mode

For example:

local-mode => true

Optional.

chef-repo-path

Sets chef repository directory path, see also local-mode

Optional.

force-formatter

If set to True then chef-client gets called with --force-formatter flag. Optional. Default value is False.

Author

Alexey Melezhik