This module is used to manage Wordpress installations
wp binary from http://wp-cli.org/
salt.modules.wordpress.
Plugin
(name, status, update, versino)¶name
¶Alias for field number 0
status
¶Alias for field number 1
update
¶Alias for field number 2
versino
¶Alias for field number 3
salt.modules.wordpress.
activate
(name, path, user)¶Activate a wordpress plugin
Wordpress plugin name
path to wordpress install location
user to run the command as
CLI Example:
salt '*' wordpress.activate HyperDB /var/www/html apache
salt.modules.wordpress.
deactivate
(name, path, user)¶Deactivate a wordpress plugin
Wordpress plugin name
path to wordpress install location
user to run the command as
CLI Example:
salt '*' wordpress.deactivate HyperDB /var/www/html apache
salt.modules.wordpress.
install
(path, user, admin_user, admin_password, admin_email, title, url)¶Run the initial setup functions for a wordpress install
path to wordpress install location
user to run the command as
Username for the Administrative user for the wordpress install
Initial Password for the Administrative user for the wordpress install
Email for the Administrative user for the wordpress install
Title of the wordpress website for the wordpress install
Url for the wordpress install
CLI Example:
salt '*' wordpress.install /var/www/html apache dwallace password123 dwallace@example.com "Daniel's Awesome Blog" https://blog.dwallace.com
salt.modules.wordpress.
is_installed
(path, user=None)¶Check if wordpress is installed and setup
path to wordpress install location
user to run the command as
CLI Example:
salt '*' wordpress.is_installed /var/www/html apache
salt.modules.wordpress.
list_plugins
(path, user)¶List plugins in an installed wordpress path
path to wordpress install location
user to run the command as
CLI Example:
salt '*' wordpress.list_plugins /var/www/html apache
salt.modules.wordpress.
show_plugin
(name, path, user)¶Show a plugin in a wordpress install and check if it is installed
Wordpress plugin name
path to wordpress install location
user to run the command as
CLI Example:
salt '*' wordpress.show_plugin HyperDB /var/www/html apache