chocolatey settings
Allow to manage chocolatey.
chocolatey is only available for Windows.
pkgs
pkgs
allow installing some chocolatey packages.
You need to specify the name of the packages to install.
A simple example, in the vscode-anywhere.sls file to ask to install the python3
module chocolatey python 3.8.2 package:
This is just an example, if you do that you will have 2 python packages installed. One by scoop and another one by chocolatey.
enabled
True
to enable
, False
to skip (default to False
).
opts
opts
is not mandatory but allows to pass extra args.
Extra args can be arguments described in the Saltstack chocolatey states or can be global Saltstack arguments.
In the previous example version
has been specified in the global
section of the python
package because version
can be passed into the states.chocolatey.installed, states.chocolatey.upgraded or states.chocolatey.uninstalled.
Global packages settings
chocolatey:pkgs:opts:global
: allow passing arguments to all chocolatey packages when installing, updating, or uninstalling a packagechocolatey:pkgs:opts:install
: allow passing arguments to all chocolatey packages when installing a package (cf states.chocolatey.installed)chocolatey:pkgs:opts:update
: allow passing arguments to all chocolatey packages when updating a package (cf states.chocolatey.upgraded)chocolatey:pkgs:opts:uninstall
: allow passing arguments to all chocolatey packages when uninstalling a package (cf states.chocolatey.uninstalled)
Specific packages settings
chocolatey:pkgs:<mypkg>:opts:global
: allow passing arguments to<mypkg>
chocolatey package when installing, updating, or uninstalling the packagechocolatey:pkgs:<mypkg>:opts:install
: allow to pass arguments to<mypkg>
chocolatey packages when installing the package (cf states.chocolatey.installed)chocolatey:pkgs:<mypkg>:opts:update
: allow to pass arguments to<mypkg>
chocolatey packages when updating the package (cf states.chocolatey.upgraded)chocolatey:pkgs:<mypkg>:opts:uninstall
: allow to pass arguments to<mypkg>
chocolatey packages when uninstalling the package (cf states.chocolatey.uninstalled)
Last updated