Puppet Class: ratticdb
- Inherits:
- ::ratticdb::params
- Defined in:
- manifests/init.pp
Overview
Class: ratticdb
Full description of class ratticdb here.
Parameters
Document parameters here.
- sample_parameter
-
Explanation of what this parameter affects and what it defaults to. e.g. “Specify one or more upstream ntp servers as an array.”
Variables
Here you should define a list of variables that this module would require.
- sample_variable
-
Explanation of how this variable affects the funtion of this class and if it has a default. e.g. “The parameter enc_ntp_servers must be set by the External Node Classifier as a comma separated list of hostnames.” (Note, global variables should be avoided in favor of class parameters as of Puppet 2.6.)
Examples
class { 'ratticdb':
mysql => false,
}
Authors
Marc Deop <marc@marcdeop.com>
Copyright
Copyright 2016 Marc Deop, unless otherwise noted.
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 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 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 |
# File 'manifests/init.pp', line 38
class ratticdb (
$appFolder = '/opt/apps/RatticWeb',
$apache = true,
$mysql = true,
$url = 'ratticdb.example.org',
$version = '1.3.1',
$ldap = false,
$ldapServer = 'ldap.example.org',
$userBase = 'ou=users,dc=example,dc=com',
$userFilter = '(uid=%(user)s)',
$groupBase = 'ou=django,ou=groups,dc=example,dc=com',
$groupFilter = '(objectClass=groupOfNames)',
$groupType = 'GroupOfNamesType',
$staff = 'cn=staff,ou=groups,dc=example,dc=com',
$dbName = 'ratticdb',
$dbUser = 'ratticDbUser',
$dbUserPwd = 'ratticDbUserPassword',
$dbHost = 'localhost',
$dbPort = '3306',
$sslCertPath = $::ratticdb::params::sslCertPath,
$sslCertKeyPath = $::ratticdb::params::sslCertKeyPath,
$sslCert = undef,
$sslKey = undef,
) inherits ::ratticdb::params {
if !is_integer($dbPort) {
fail('dbPort must be a valid integer')
}
if !is_string($dbUser) {
fail('dbUser must be a valid string')
}
if !is_string($dbName) {
fail('dbName must be a valid string')
}
if !is_string($dbUserPwd) {
fail('dbUserPwd must be a valid string')
}
if !is_domain_name($dbHost) {
fail('dbHost must be a valid domain name')
}
if !is_bool($ldap) {
fail('ldap must be a boolean')
}
if !is_domain_name($ldapServer) {
fail('ldapServer must be a valid domain name')
}
if !is_string($userBase) {
fail('userBase must be a valid string')
}
if !is_string($userFilter) {
fail('userFilter must be a valid string')
}
if !is_string($groupBase) {
fail('groupBase must be a valid string')
}
if !is_string($groupFilter) {
fail('groupFilter must be a valid string')
}
if !is_string($groupType) {
fail('groupType must be a valid string')
}
if !is_string($staff) {
fail('staff must be a valid string')
}
if !is_domain_name($url) {
fail('url must be a valid domain name')
}
if !is_absolute_path($appFolder) {
fail('appFolder must be an absolute path')
}
if !is_bool($mysql) {
fail('mysql must be a boolean')
}
if !is_bool($apache) {
fail('apache must be a boolean')
}
anchor { 'ratticdb::begin': } ->
class { 'ratticdb::packages': } ->
class { 'ratticdb::mysql': } ->
class { 'ratticdb::setup': } ->
class { 'ratticdb::apache': } ->
anchor { 'ratticdb::end': }
}
|