|
2 | 2 | #
|
3 | 3 | # This class installs and configures a Puppet master
|
4 | 4 | #
|
5 |
| -<<<<<<< HEAD |
6 | 5 | # Parameters:
|
7 | 6 | # ['user_id'] - The userid of the puppet user
|
8 | 7 | # ['group_id'] - The groupid of the puppet group
|
|
46 | 45 | # ['serialization_format'] - defaults to undef, otherwise it sets the preferred_serialization_format param (currently only msgpack is supported)
|
47 | 46 | # ['strict_variables'] - Makes the parser raise errors when referencing unknown variables
|
48 | 47 | # ['always_cache_features'] - if false (default), always try to load a feature even if a previous load failed
|
49 |
| - |
50 |
| ->>>>>>> 9f614250618d124231791e9dbee41ecca22581e7 |
51 | 48 | #
|
52 | 49 | # Requires:
|
53 | 50 | #
|
|
154 | 151 | nginx: {
|
155 | 152 | Anchor['puppet::master::begin'] ->
|
156 | 153 | class {'puppet::unicorn':
|
157 |
| - certname => $certname, |
158 |
| - puppet_conf => $puppet_conf, |
159 |
| - puppet_ssldir => $puppet_ssldir, |
160 |
| - dns_alt_names => $dns_alt_names, |
161 |
| - listen_address => $listen_address, |
162 |
| - puppet_proxy_port => $puppet_proxy_port, |
163 |
| - disable_ssl => $disable_ssl, |
164 |
| - backup_upstream => $backup_upstream, |
165 |
| - unicorn_package => $unicorn_package, |
166 |
| - unicorn_path => $unicorn_path, |
167 |
| - disable_master => $disable_master, |
168 |
| - upstream => $upstream, |
169 |
| - backend_process_number => $backend_process_number, |
| 154 | + certname => $certname, |
| 155 | + puppet_conf => $puppet_conf, |
| 156 | + puppet_ssldir => $puppet_ssldir, |
| 157 | + dns_alt_names => $dns_alt_names, |
| 158 | + listen_address => $listen_address, |
| 159 | + puppet_proxy_port => $puppet_proxy_port, |
| 160 | + disable_ssl => $disable_ssl, |
| 161 | + backup_upstream => $backup_upstream, |
| 162 | + unicorn_package => $unicorn_package, |
| 163 | + unicorn_path => $unicorn_path, |
| 164 | + disable_master => $disable_master, |
| 165 | + upstream => $upstream, |
| 166 | + backend_process_number => $backend_process_number, |
170 | 167 | } ->
|
171 | 168 | Anchor['puppet::master::end']
|
172 | 169 | }
|
173 | 170 | default: {
|
174 | 171 | Anchor['puppet::master::begin'] ->
|
175 | 172 | class {'puppet::passenger':
|
176 |
| - puppet_proxy_port => $puppet_passenger_port, |
177 |
| - puppet_docroot => $puppet_docroot, |
178 |
| - apache_serveradmin => $apache_serveradmin, |
179 |
| - puppet_conf => $::puppet::params::puppet_conf, |
180 |
| - puppet_ssldir => $puppet_ssldir, |
181 |
| - certname => $certname, |
182 |
| - conf_dir => $::puppet::params::confdir, |
183 |
| - dns_alt_names => join($dns_alt_names,','), |
184 |
| - generate_ssl_certs => $generate_ssl_certs, |
185 |
| - puppet_passenger_tempdir => $puppet_passenger_tempdir, |
| 173 | + puppet_proxy_port => $puppet_passenger_port, |
| 174 | + puppet_docroot => $puppet_docroot, |
| 175 | + apache_serveradmin => $apache_serveradmin, |
| 176 | + puppet_conf => $::puppet::params::puppet_conf, |
| 177 | + puppet_ssldir => $puppet_ssldir, |
| 178 | + certname => $certname, |
| 179 | + conf_dir => $::puppet::params::confdir, |
| 180 | + dns_alt_names => join($dns_alt_names,','), |
| 181 | + generate_ssl_certs => $generate_ssl_certs, |
| 182 | + puppet_passenger_tempdir => $puppet_passenger_tempdir, |
186 | 183 | config_addon => $puppet_passenger_cfg_addon,
|
187 | 184 | } ->
|
188 | 185 | Anchor['puppet::master::end']
|
|
229 | 226 | }
|
230 | 227 |
|
231 | 228 | file { $puppet_vardir:
|
232 |
| - ensure => directory, |
233 |
| - owner => $::puppet::params::puppet_user, |
234 |
| - group => $::puppet::params::puppet_group, |
235 |
| - notify => Service[$webserver], |
236 |
| - require => Package[$puppet_master_package] |
| 229 | + ensure => directory, |
| 230 | + owner => $::puppet::params::puppet_user, |
| 231 | + group => $::puppet::params::puppet_group, |
| 232 | + notify => Service[$webserver], |
| 233 | + require => Package[$puppet_master_package] |
237 | 234 | }
|
238 | 235 |
|
239 | 236 | if $storeconfigs {
|
|
393 | 390 | }
|
394 | 391 | unless defined(Package['msgpack']) {
|
395 | 392 | package {'msgpack':
|
396 |
| - ensure => latest, |
397 |
| - provider => gem, |
398 |
| - require => Package[$::puppet::params::ruby_dev, 'gcc'], |
| 393 | + ensure => latest, |
| 394 | + provider => gem, |
| 395 | + require => Package[$::puppet::params::ruby_dev, 'gcc'], |
399 | 396 | }
|
400 | 397 | }
|
401 | 398 | }
|
|
404 | 401 | setting => 'preferred_serialization_format',
|
405 | 402 | value => $serialization_format,
|
406 | 403 | }
|
| 404 | + } |
407 | 405 |
|
408 | 406 | validate_bool(str2bool($always_cache_features))
|
409 | 407 | ini_setting { 'puppetmasteralwayscachefeatures':
|
|
0 commit comments