Run chef client on remote host using Sparrowdo.
$ zef install Sparrowdo::Chef::Client
$ cat sparrowfile
module-run 'Chef::Client', %(
run-list => [
"recipe[foo::bar]",
"role[baz]"
],
log-level => 'info',
attributes => %(
foo => %(
bar => [ 1, 2 , 3]
)
),
);
Should be a chef run list. Default value is empty Array.
Sets log level for chef client run. Default level is info
. Optional.
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 ]
}
}
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.
Sets chef repository directory path, see also local-mode
Optional.
If set to True then chef-client gets called with --force-formatter flag. Optional. Default value is False.