Run chef client on remote host using Sparrowdo.
Perl6
Switch branches/tags
Nothing to show
Latest commit 16bcaa4 Mar 22, 2017 @melezhik add changes file
Permalink
Failed to load latest commit information.
lib/Sparrowdo/Chef
t boilerplate Dec 16, 2016
.gitignore force formatter feature Mar 22, 2017
.travis.yml boilerplate Dec 16, 2016
Changes add changes file Mar 22, 2017
META6.json
README boilerplate Dec 16, 2016
README.md

README.md

SYNOPSIS

Run chef client on remote host using Sparrowdo.

Travis build status

Build Status

INSTALL

$ panda 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 ]
  }
}

Optional. Default value is empty Hash.

force-formatter

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

Author

Alexey Melezhik