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 python3module chocolatey python 3.8.2 package:

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

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 versionhas 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 package

  • chocolatey: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 package

  • chocolatey: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