salt.states.wordpress

This state module is used to manage Wordpress installations

depends:

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

salt.states.wordpress.activated(name, path, user)

Activate wordpress plugins

name

name of plugin to activate

path

path to wordpress installation

user

user who should own the files in the wordpress installation

HyperDB:
  wordpress.activated:
    - path: /var/www/html
    - user: apache
salt.states.wordpress.deactivated(name, path, user)

Deactivate wordpress plugins

name

name of plugin to deactivate

path

path to wordpress installation

user

user who should own the files in the wordpress installation

HyperDB:
  wordpress.deactivated:
    - path: /var/www/html
    - user: apache
salt.states.wordpress.installed(name, user, admin_user, admin_password, admin_email, title, url)

Run the initial setup of wordpress

name

path to the wordpress installation

user

user that owns the files for the wordpress installation

admin_user

username for wordpress website administrator user

admin_password

password for wordpress website administrator user

admin_email

email for wordpress website administrator user

title

title for the wordpress website

url

url for the wordpress website

/var/www/html:
  wordpress.installed:
    - title: Daniel's Awesome Blog
    - user: apache
    - admin_user: dwallace
    - admin_email: dwallace@example.com
    - admin_password: password123
    - url: https://blog.dwallace.com