salt.states.cabal
Installation of Cabal Packages
New in version 2015.8.0.
These states manage the installed packages for Haskell using cabal. Note that cabal-install must be installed for these states to be available, so cabal states should include a requisite to a pkg.installed state for the package which provides cabal (cabal-install
in case of Debian based distributions). Example:
.. code-block:: yaml
- cabal-install:
pkg.installed
- ShellCheck:
- cabal.installed:
require: - pkg: cabal-install
-
Verify that the given package is installed and is at the correct version (if specified).
ShellCheck-0.3.5: cabal: - installed:
- name
-
The package to install
- user
-
The user to run cabal install with
- install_global
-
Install package globally instead of locally
- env
-
A list of environment variables to be set prior to execution. The format is the same as the
cmd.run
. state function.
salt.states.cabal.installed(name, pkgs=None, user=None, install_global=False, env=None)
-
Verify that given package is not installed.
salt.states.cabal.removed(name, user=None, env=None)
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/states/all/salt.states.cabal.html