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.8
- 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
- wp_proxy_host
-
Specifies a Hostname or IP of a proxy server for Wordpress to use to install updates, plugins, etc. Default: ”
- wp_proxy_port
-
Specifies the port to use with the proxy host. Default: ”
- wp_multisite
-
Specifies whether to enable the multisite feature. Requires ‘wp_site_domain` to also be passed. Default: `false`
- wp_site_domain
-
Specifies the ‘DOMAIN_CURRENT_SITE` value that will be used when configuring multisite. Typically this is the address of the main wordpress instance. Default: ”
Requires
Examples
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 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
# File 'manifests/init.pp', line 67
class wordpress (
$install_dir = '/opt/wordpress',
$install_url = 'http://wordpress.org',
$version = '3.8',
$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',
$wp_proxy_host = '',
$wp_proxy_port = '',
$wp_multisite = false,
$wp_site_domain = '',
) {
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,
wp_proxy_host => $wp_proxy_host,
wp_proxy_port => $wp_proxy_port,
wp_multisite => $wp_multisite,
wp_site_domain => $wp_site_domain,
}
-> 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': }
}
|