salt.states.chocolatey module

Manage Chocolatey package installs .. versionadded:: 2016.3.0

salt.states.chocolatey.install(*args, **kwargs)

Deprecated, please use 'installed'. This function will be removed in Salt Nitrogen.

salt.states.chocolatey.installed(name, version=None, source=None, force=False, install_args=None, override_args=False, force_x86=False, package_args=None)

Installs a package if not already installed

name
The name of the package to be installed.
version
Install a specific version of the package. Defaults to latest version.
source
Chocolatey repository (directory, share or remote URL, feed). Defaults to the official Chocolatey feed.
force
Reinstall the current version of an existing package. Default is false.
install_args
A list of install arguments you want to pass to the installation process i.e product key or feature list
override_args
Set to true if you want to override the original install arguments ( for the native installer)in the package and use your own. When this is set to False install_args will be appended to the end of the default arguments
force_x86
Force x86 (32bit) installation on 64 bit systems. Defaults to false.
package_args
A list of arguments you want to pass to the package
Installsomepackage:
  chocolatey.installed:
    - name: packagename
    - version: '12.04'
    - source: 'mychocolatey/source'
    - force: True
salt.states.chocolatey.uninstall(*args, **kwargs)

Deprecated, please use 'uninstalled'. This function will be removed in Salt Nitrogen.

salt.states.chocolatey.uninstalled(name, version=None, uninstall_args=None, override_args=False)

Uninstalls a package

name
The name of the package to be uninstalled
version
Uninstalls a specific version of the package. Defaults to latest version installed.
uninstall_args
A list of uninstall arguments you want to pass to the uninstallation process i.e product key or feature list
override_args
Set to true if you want to override the original uninstall arguments ( for the native uninstaller)in the package and use your own. When this is set to False uninstall_args will be appended to the end of the default arguments