

Set to false to run while Chef Infra Client is configuring the node (the converge phase). Set to true to run while the resource collection is being built (the compile phase). Ruby Type: true, false | Default Value: falseĬontrol the phase during which the resource is run on the node. The following properties are common to every resource: compile_time The version of a package to be installed or upgraded.Ĭhef resources include common properties, notifications, and resource guards. The amount of time (in seconds) to wait before timing out. Ensure that the path specified is to theįolder containing the chocolatey package(s), not to the package The optional path to a package on the local file system or a See Chocolatey Exit Codes for a complete list of exit codes used by Chocolatey. The exit code(s) returned by the choco command that indicate a successful action. Returns Ruby Type: Integer, Array | Default Value: The password to authenticate to the source. Default value: the name of the resource block. One (or more) additional options that are passed to the command. One (or more) additional list options that are passed to the command. The chocolatey_package resource has the following properties: list_options Ruby Type: String :upgrade Install a package and ensure that a package is the latest version. This action typically removes the configuration files as well as the package. Or is queued up to run at the end of a Chef Infra Client run.

Once notified, this resource block either runs immediately (default) :nothing This resource block does not act unless notified by another resource to If a version is specified, install the specified version of the package. The chocolatey_package resource has the following actions: :install Install a package. list_options, options, package_name, password, returns, source, timeout, user, and version are the properties available to this resource.action identifies which steps Chef Infra Client will take to bring the node into the desired state.name is the name given to the resource block.Returns Integer, Array # default value: Īction Symbol # defaults to :install if not specified end
