salt.states.pecl

Installation of PHP Extensions Using pecl

These states manage the installed pecl extensions. Note that php-pear must be installed for these states to be available, so pecl states should include a requisite to a pkg.installed state for the package which provides pecl (php-pear in most cases). Example:

php-pear:
  pkg.installed

mongo:
  pecl.installed:
    - require:
      - pkg: php-pear
salt.states.pecl.installed(name, version=None, defaults=False)

Make sure that a pecl extension is installed.

name
The pecl extension name to install
version
The pecl extension version to install. This option may be ignored to install the latest stable version.
salt.states.pecl.removed(name)

Make sure that a pecl extension is not installed.

name
The pecl extension name to uninstall

Table Of Contents

Previous topic

salt.states.npm

Next topic

salt.states.pip