salt.modules.pecl

Manage PHP pecl extensions.

salt.modules.pecl.install(pecls, defaults=False, force=False, preferred_state='stable')

0.17.0 新版功能.

Installs one or several pecl extensions.

pecls
The pecl extensions to install.
defaults
Use default answers for extensions such as pecl_http which ask questions before installation. Without this option, the pecl.installed state will hang indefinitely when trying to install these extensions.
force
Whether to force the installed version or not

CLI 范例:

salt '*' pecl.install fuse
salt.modules.pecl.list(channel=None)

List installed pecl extensions.

CLI 范例:

salt '*' pecl.list
salt.modules.pecl.uninstall(pecls)

Uninstall one or several pecl extensions.

pecls
The pecl extensions to uninstall.

CLI 范例:

salt '*' pecl.uninstall fuse
salt.modules.pecl.update(pecls)

Update one or several pecl extensions.

pecls
The pecl extensions to update.

CLI 范例:

salt '*' pecl.update fuse