brew settings

Allow managing brew.

brew is only available for Linux and MacOS.

pkgs

pkgs allow to install:

You need to specify the formulae name to install.

A simple example, in the vscode-anywhere.sls file to ask to install the python3module the brew python 3.8 package:

vscode-anywhere:
    python3:
        enabled: True
        brew:
            pkgs:
                opts:
                    global: {}
                    install: {}
                    update: {}
                    uninstall: {}
                python@3.8:
                    enabled: True
                    opts:
                        global: {}
                        install: {}
                        update: {}
                        uninstall: {}

This is just an example for illustrative purposes.

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 pkg states or can be global Saltstack arguments.

In the previous example versionhas been specified in the install section of the python package because version can be passed into the states.pkg.installed.

Global packages settings

  • brew:pkgs:opts:global: allow passing arguments to all brew packages when installing, updating, or uninstalling a package

  • brew:pkgs:opts:install: allow passing arguments to all brew packages when installing a package (cf states.pkg.installed)

  • brew:pkgs:opts:update: allow passing arguments to all brew packages when updating a package (cf states.pkg.latest)

  • brew:pkgs:opts:uninstall: allow passing arguments to all brew packages when uninstalling a package (cf states.pkg.removed)

Specific packages settings

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

  • brew:pkgs:<mypkg>:opts:install: allow to pass arguments to <mypkg> brew packages when installing the package (cf states.pkg.installed)

  • brew:pkgs:<mypkg>:opts:update: allow to pass arguments to <mypkg> brew packages when updating the package (cf states.pkg.latest)

  • brew:pkgs:<mypkg>:opts:uninstall: allow to pass arguments to <mypkg> brew packages when uninstalling the package (cf states.pkg.removed)

Last updated