|
3 | 3 | # This class installs and configures a Puppet master
|
4 | 4 | #
|
5 | 5 | # Parameters:
|
6 |
| -# ['user_id'] - The userid of the puppet user |
7 |
| -# ['group_id'] - The groupid of the puppet group |
8 |
| -# ['modulepath'] - Module path to be served by the puppet master |
9 |
| -# ['manifest'] - Manifest path |
10 |
| -# ['external_nodes'] - ENC script path |
11 |
| -# ['node_terminus'] - Node terminus setting, is overridden to 'exec' if external_nodes is set |
12 |
| -# ['hiera_config'] - Hiera config file path |
13 |
| -# ['environments'] - Which environment method (directory or config) |
14 |
| -# ['environmentpath'] - Puppet environment base path (use with environments directory) |
15 |
| -# ['reports'] - Turn on puppet reports |
16 |
| -# ['storeconfigs'] - Use storedconfigs |
17 |
| -# ['storeconfigs_dbserver'] - Puppetdb server |
18 |
| -# ['storeconfigs_dbport'] - Puppetdb port |
19 |
| -# ['certname'] - The certname the puppet master should use |
20 |
| -# ['autosign'] - Auto sign agent certificates default false |
21 |
| -# ['reporturl'] - Url to send reports to, if reporting enabled |
22 |
| -# ['puppet_ssldir'] - Puppet sll directory |
23 |
| -# ['puppet_docroot'] - Doc root to be configured in apache vhost |
24 |
| -# ['puppet_vardir'] - Vardir used by puppet |
25 |
| -# ['puppet_proxy_port'] - Port to configure the proxy on - default 8140 |
26 |
| -# ['puppet_master_package'] - Puppet master package |
27 |
| -# ['puppet_master_service'] - Puppet master service |
28 |
| -# ['version'] - Version of the puppet master package to install |
29 |
| -# ['apache_serveradmin'] - Apache server admin |
30 |
| -# ['pluginsync'] - Enable plugin sync |
31 |
| -# ['parser'] - Which parser to use |
32 |
| -# ['puppetdb_startup_timeout'] - The timeout for puppetdb |
33 |
| -# ['dns_alt_names'] - Comma separated list of alternative DNS names |
34 |
| -# ['digest_algorithm'] - The algorithm to use for file digests. |
35 |
| -# ['webserver'] - install 'nginx' (with unicorn) or 'httpd' (with passenger) - httpd is default |
36 |
| -# ['listen_address'] - IP for binding the webserver, defaults to * |
37 |
| -# ['disable_ssl'] - Disables SSL on the webserver. usefull if you use this master behind a loadbalancer. currently only supported by nginx, defaults to undef |
38 |
| -# ['backup_upstream'] - specify another puppet master as fallback. currently only supported by nginx |
39 |
| -# ['unicorn_package'] - package name of a unicorn rpm. if provided we install it, otherwise we built it via gem/gcc |
40 |
| -# ['unicorn_path'] - custom path to the unicorn binary |
41 |
| -# ['generate_ssl_certs'] - Generate ssl certs (false to disable) |
42 |
| -# ['disable_master'] - this disables the normal master, the server will only act as a CA, currently only supported by nginx |
43 |
| -# ['upstream'] - define additional masters reachable via tcp as an array, currently only supported by nginx |
| 6 | +# ['user_id'] - The userid of the puppet user |
| 7 | +# ['group_id'] - The groupid of the puppet group |
| 8 | +# ['modulepath'] - Module path to be served by the puppet master |
| 9 | +# ['manifest'] - Manifest path |
| 10 | +# ['external_nodes'] - ENC script path |
| 11 | +# ['node_terminus'] - Node terminus setting, is overridden to 'exec' if external_nodes is set |
| 12 | +# ['hiera_config'] - Hiera config file path |
| 13 | +# ['environments'] - Which environment method (directory or config) |
| 14 | +# ['environmentpath'] - Puppet environment base path (use with environments directory) |
| 15 | +# ['reports'] - Turn on puppet reports |
| 16 | +# ['storeconfigs'] - Use storedconfigs |
| 17 | +# ['storeconfigs_dbserver'] - Puppetdb server |
| 18 | +# ['storeconfigs_dbport'] - Puppetdb port |
| 19 | +# ['certname'] - The certname the puppet master should use |
| 20 | +# ['autosign'] - Auto sign agent certificates default false |
| 21 | +# ['reporturl'] - Url to send reports to, if reporting enabled |
| 22 | +# ['puppet_ssldir'] - Puppet sll directory |
| 23 | +# ['puppet_docroot'] - Doc root to be configured in apache vhost |
| 24 | +# ['puppet_vardir'] - Vardir used by puppet |
| 25 | +# ['puppet_proxy_port'] - Port to configure the proxy on - default 8140 |
| 26 | +# ['puppet_master_package'] - Puppet master package |
| 27 | +# ['puppet_master_service'] - Puppet master service |
| 28 | +# ['version'] - Version of the puppet master package to install |
| 29 | +# ['apache_serveradmin'] - Apache server admin |
| 30 | +# ['pluginsync'] - Enable plugin sync |
| 31 | +# ['parser'] - Which parser to use |
| 32 | +# ['puppetdb_startup_timeout'] - The timeout for puppetdb |
| 33 | +# ['dns_alt_names'] - Comma separated list of alternative DNS names |
| 34 | +# ['digest_algorithm'] - The algorithm to use for file digests. |
| 35 | +# ['webserver'] - install 'nginx' (with unicorn) or 'httpd' (with passenger) - httpd is default |
| 36 | +# ['listen_address'] - IP for binding the webserver, defaults to * |
| 37 | +# ['disable_ssl'] - Disables SSL on the webserver. usefull if you use this master behind a loadbalancer. currently only supported by nginx, defaults to undef |
| 38 | +# ['backup_upstream'] - specify another puppet master as fallback. currently only supported by nginx |
| 39 | +# ['unicorn_package'] - package name of a unicorn rpm. if provided we install it, otherwise we built it via gem/gcc |
| 40 | +# ['unicorn_path'] - custom path to the unicorn binary |
| 41 | +# ['generate_ssl_certs'] - Generate ssl certs (false to disable) |
| 42 | +# ['disable_master'] - this disables the normal master, the server will only act as a CA, currently only supported by nginx |
| 43 | +# ['upstream'] - define additional masters reachable via tcp as an array, currently only supported by nginx |
| 44 | +# ['backend_process_number'] - number of processes to start on the backebd webserver (unicorn/passenger), currently only supported by unicorn |
44 | 45 | #
|
45 | 46 | # Requires:
|
46 | 47 | #
|
|
103 | 104 | $puppetdb_version = 'present',
|
104 | 105 | $disable_master = $::puppet::params::disable_master,
|
105 | 106 | $upstream = $::puppet::params::upstream,
|
| 107 | + $backend_process_number = $::puppet::params:backend_process_number, |
106 | 108 | ) inherits puppet::params {
|
107 | 109 |
|
108 | 110 | anchor { 'puppet::master::begin': }
|
|
142 | 144 | nginx: {
|
143 | 145 | Anchor['puppet::master::begin'] ->
|
144 | 146 | class {'puppet::unicorn':
|
145 |
| - certname => $certname, |
146 |
| - puppet_conf => $puppet_conf, |
147 |
| - puppet_ssldir => $puppet_ssldir, |
148 |
| - dns_alt_names => $dns_alt_names, |
149 |
| - listen_address => $listen_address, |
150 |
| - puppet_proxy_port => $puppet_proxy_port, |
151 |
| - disable_ssl => $disable_ssl, |
152 |
| - backup_upstream => $backup_upstream, |
153 |
| - unicorn_package => $unicorn_package, |
154 |
| - unicorn_path => $unicorn_path, |
155 |
| - disable_master => $disable_master, |
156 |
| - upstream => $upstream, |
| 147 | + certname => $certname, |
| 148 | + puppet_conf => $puppet_conf, |
| 149 | + puppet_ssldir => $puppet_ssldir, |
| 150 | + dns_alt_names => $dns_alt_names, |
| 151 | + listen_address => $listen_address, |
| 152 | + puppet_proxy_port => $puppet_proxy_port, |
| 153 | + disable_ssl => $disable_ssl, |
| 154 | + backup_upstream => $backup_upstream, |
| 155 | + unicorn_package => $unicorn_package, |
| 156 | + unicorn_path => $unicorn_path, |
| 157 | + disable_master => $disable_master, |
| 158 | + upstream => $upstream, |
| 159 | + backend_process_number => $backend_process_number, |
157 | 160 | } ->
|
158 | 161 | Anchor['puppet::master::end']
|
159 | 162 | }
|
|
0 commit comments