chocolatey settings

Allow to manage chocolateyarrow-up-right.

circle-exclamation

pkgs

pkgs allow installing some chocolatey packagesarrow-up-right.

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 python3module chocolatey python 3.8.2 packagearrow-up-right:

vscode-anywhere:
    python3:
        enabled: True
        chocolatey:
            pkgs:
                opts:
                    global: {}
                    install: {}
                    update: {}
                    uninstall: {}
                python:
                    enabled: True
                    opts:
                        global:
                            version: '3.8.2'
                        install: {}
                        update: {}
                        uninstall: {}
circle-exclamation

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 statesarrow-up-right or can be global Saltstack argumentsarrow-up-right.

In the previous example versionhas been specified in the global section of the python package because version can be passed into the states.chocolatey.installedarrow-up-right, states.chocolatey.upgradedarrow-up-right or states.chocolatey.uninstalledarrow-up-right.

Global packages settings

Specific packages settings

  • chocolatey:pkgs:<mypkg>:opts:global: allow passing arguments to <mypkg> chocolatey package when installing, updating, or uninstalling the package

  • chocolatey:pkgs:<mypkg>:opts:install: allow to pass arguments to <mypkg> chocolatey packages when installing the package (cf states.chocolatey.installedarrow-up-right)

  • chocolatey:pkgs:<mypkg>:opts:update: allow to pass arguments to <mypkg> chocolatey packages when updating the package (cf states.chocolatey.upgradedarrow-up-right)

  • chocolatey:pkgs:<mypkg>:opts:uninstall: allow to pass arguments to <mypkg> chocolatey packages when uninstalling the package (cf states.chocolatey.uninstalledarrow-up-right)

Last updated