Puppet Class: wordpress
- Defined in:
- manifests/init.pp
Overview
Class: wordpress
This module manages wordpress
Parameters
- install_dir
-
Specifies the directory into which wordpress should be installed. Default: /opt/wordpress
- install_url
-
Specifies the url from which the wordpress tarball should be downloaded. Default: wordpress.org
- version
-
Specifies the version of wordpress to install. Default: 3.5
- create_db
-
Specifies whether to create the db or not. Default: true
- create_db_user
-
Specifies whether to create the db user or not. Default: true
- db_name
-
Specifies the database name which the wordpress module should be configured to use. Default: wordpress
- db_host
-
Specifies the database host to connect to. Default: localhost
- db_user
-
Specifies the database user. Default: wordpress
- db_password
-
Specifies the database user’s password in plaintext. Default: password
- wp_owner
-
Specifies the owner of the wordpress files. Default: root
- wp_group
-
Specifies the group of the wordpress files. Default: 0 (*BSD/Darwin compatible GID)
- wp_lang
-
WordPress Localized Language. Default: ”
- wp_plugin_dir
-
WordPress Plugin Directory. Full path, no trailing slash. Default: WordPress Default
Requires
Examples
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'manifests/init.pp', line 54
class wordpress (
$install_dir = '/opt/wordpress',
$install_url = 'http://wordpress.org',
$version = '3.5',
$create_db = true,
$create_db_user = true,
$db_name = 'wordpress',
$db_host = 'localhost',
$db_user = 'wordpress',
$db_password = 'password',
$wp_owner = 'root',
$wp_group = '0',
$wp_lang = '',
$wp_plugin_dir = 'DEFAULT'
) {
anchor { 'wordpress::begin': }
-> class { 'wordpress::app':
install_dir => $install_dir,
install_url => $install_url,
version => $version,
db_name => $db_name,
db_host => $db_host,
db_user => $db_user,
db_password => $db_password,
wp_owner => $wp_owner,
wp_group => $wp_group,
wp_lang => $wp_lang,
wp_plugin_dir => $wp_plugin_dir,
}
-> class { 'wordpress::db':
create_db => $create_db,
create_db_user => $create_db_user,
db_name => $db_name,
db_host => $db_host,
db_user => $db_user,
db_password => $db_password,
}
-> anchor { 'wordpress::end': }
}
|