# salt.modules.wordpress

This module is used to manage Wordpress installations

depends:

  wp binary from http://wp-cli.org/

class 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

  name

    Wordpress plugin name

  path

    path to wordpress install location

  user

    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

  name

    Wordpress plugin name

  path

    path to wordpress install location

  user

    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

    path to wordpress install location

  user

    user to run the command as

  admin_user

    Username for the Administrative user for the wordpress install

  admin_password

    Initial Password for the Administrative user for the wordpress install

  admin_email

    Email for the Administrative user for the wordpress install

  title

    Title of the wordpress website for the wordpress install

  url

    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

    path to wordpress install location

  user

    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

    path to wordpress install location

  user

    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

  name

    Wordpress plugin name

  path

    path to wordpress install location

  user

    user to run the command as

  CLI Example:

      salt '*' wordpress.show_plugin HyperDB /var/www/html apache