brew settings

Allow managing brewarrow-up-right.

circle-exclamation

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 packagearrow-up-right:

vscode-anywhere:
    python3:
        enabled: True
        brew:
            pkgs:
                opts:
                    global: {}
                    install: {}
                    update: {}
                    uninstall: {}
                python@3.8:
                    enabled: True
                    opts:
                        global: {}
                        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 pkg statesarrow-up-right or can be global Saltstack argumentsarrow-up-right.

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

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.installedarrow-up-right)

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

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

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.installedarrow-up-right)

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

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

Last updated

Was this helpful?