Skip to content
Snippets Groups Projects
Commit 5bb0f819 authored by Fabien Combernous's avatar Fabien Combernous
Browse files

Merge branch '13-update-readme-section-beginning-with-wordpress' into 'master'

Resolve "update README section Beginning with wordpress"

Closes #13

See merge request !12
parents 39fd478a bcc0de55
No related branches found
No related tags found
1 merge request!12Resolve "update README section Beginning with wordpress"
...@@ -10,11 +10,14 @@ All notable changes to this project will be documented in this file. ...@@ -10,11 +10,14 @@ All notable changes to this project will be documented in this file.
* #9 Add acceptence tests about ressources. * #9 Add acceptence tests about ressources.
* #10 Add acceptence tests about management of several instances. * #10 Add acceptence tests about management of several instances.
* #13 Update README section Beginning with wordpress.
**Known Issues** **Known Issues**
* #1 Fix attribute ensure set to latest from scratch with resources management. * #1 Fix attribute ensure set to latest from scratch with resources management.
* #5 Permit to modify hour of update for external_fact. * #5 Permit to modify hour of update for external_fact.
* #15 Fix plugins are installed but not activated.
* #16 Set `default_locale` to `en_US`.
## Release 1.0.2 ## Release 1.0.2
......
...@@ -30,6 +30,7 @@ This modules does not manage : ...@@ -30,6 +30,7 @@ This modules does not manage :
* system account, owner of wordpress files. * system account, owner of wordpress files.
* nginx or apache vhost * nginx or apache vhost
* mariadb or mysql database and user * mariadb or mysql database and user
* php install
They have to be created before for instance by `puppetlabs-mysql`, `puppetlabs-apache` and `puppetlabs-account`. They have to be created before for instance by `puppetlabs-mysql`, `puppetlabs-apache` and `puppetlabs-account`.
...@@ -39,25 +40,22 @@ This `wordpress` module depends on `puppetlabs-stdlib` and `puppet-archive`. ...@@ -39,25 +40,22 @@ This `wordpress` module depends on `puppetlabs-stdlib` and `puppet-archive`.
### Beginning with wordpress ### Beginning with wordpress
The very basic steps needed for a user to get the module up and running. This can include setup steps, if necessary, or it can be an example of the most basic use of the module. The very basic step :
## Usage
Include three to five examples of the most important or common tasks a user can accomplish with your module. Show users how to accomplish more complex tasks that involve different types, classes, and functions working in tandem.
The follwoing code simple download and install `wpcli` :
``` ```
class { 'wordpress' : class { 'wordpress' :
} }
``` ```
## Usage
The following code : The following code :
* download and install `wpcli`. * download and install WP-CLI.
* creates tables in a remote hosted database `wp_mywpname`. * download and install core WordPress in the last available version.
* install and configure core wordpress in the last available version. * creates tables in an all ready existing database `wp_mywpname`.
* configure core WordPress
* set the title of the instance. * set the title of the instance.
* `wpcli` is ran as `wp` user. wordpress files are owned by already existing user `wp`. * WP-CLI is ran as `wp` user. Files are owned by already existing user `wp`.
``` ```
class { 'wordpress' : class { 'wordpress' :
...@@ -79,12 +77,13 @@ class { 'wordpress' : ...@@ -79,12 +77,13 @@ class { 'wordpress' :
``` ```
The following code : The following code :
* download and install `wpcli`. * download and install WP-CLI.
* creates tables in a remote hosted database `wp_mywpname`. * download and install core WordPress in the last available version.
* install and configure core wordpress in the last available version. * creates tables in an all ready existing database `wp_mywpname`.
* configure core WordPress
* set the title of the instance. * set the title of the instance.
* `wpcli` is ran as `wp` user. wordpress files are owned by already existing user `wp`. * WP-CLI is ran as `wp` user. Files are owned by already existing user `wp`.
* configure wordpress to update itself to last version available. * enable wordpress internal self update process.
``` ```
class { 'wordpress' : class { 'wordpress' :
...@@ -107,12 +106,14 @@ class { 'wordpress' : ...@@ -107,12 +106,14 @@ class { 'wordpress' :
``` ```
The following code : The following code :
* download and install `wpcli`. * download and install WP-CLI.
* creates tables in a remote hosted database `wp_mywpname`. * download and install core WordPress in the last available version.
* install and configure core wordpress in the last available version. * creates tables in an all ready existing database `wp_mywpname`.
* configure core WordPress
* set the title of the instance. * set the title of the instance.
* `wpcli` is ran as `wp` user. wordpress files are owned by already existing user `wp`. * WP-CLI is ran as `wp` user. Files are owned by already existing user `wp`.
* configure puppet to make wordpress core and language update to last available version at about 3 AM. * enable wordpress internal self update process.
* configure puppet to make wordpress core and language update to latest available version at about 3 AM.
If an update occured, you will find in `/var/wordpress_archives` : If an update occured, you will find in `/var/wordpress_archives` :
* dump of database that was there before the update. * dump of database that was there before the update.
...@@ -137,12 +138,15 @@ class { 'wordpress' : ...@@ -137,12 +138,15 @@ class { 'wordpress' :
} }
} }
``` ```
The following code : The following code :
* download and install `wpcli`. * download and install WP-CLI.
* creates tables in a remote hosted database `wp_mywpname`. * download and install core WordPress in the last available version and in french.
* install and configure core wordpress in the last available version with french language. * creates tables in an all ready existing database `wp_mywpname`.
* configure core WordPress
* set the title of the instance. * set the title of the instance.
* `wpcli` is ran as `wp` user. wordpress files are owned by already existing user `wp`. * WP-CLI is ran as `wp` user. Files are owned by already existing user `wp`.
* enable wordpress internal self update process.
* manage more than defaults themes and plugins provided with core. * manage more than defaults themes and plugins provided with core.
``` ```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment