|
32 | 32 | # ['puppetdb_startup_timeout'] - The timeout for puppetdb
|
33 | 33 | # ['dns_alt_names'] - Comma separated list of alternative DNS names
|
34 | 34 | # ['digest_algorithm'] - The algorithm to use for file digests.
|
35 |
| -# ['manage_webserver'] - if undef we won't install any webserver in front of puppet |
| 35 | +# ['webserver'] - no webserver if undef, otherwise httpd |
36 | 36 | #
|
37 | 37 | # Requires:
|
38 | 38 | #
|
|
84 | 84 | $puppetdb_strict_validation = $::puppet::params::puppetdb_strict_validation,
|
85 | 85 | $dns_alt_names = ['puppet'],
|
86 | 86 | $digest_algorithm = $::puppet::params::digest_algorithm,
|
87 |
| - $manage_webserver = undef, |
| 87 | + $webserver = undef, |
88 | 88 | ) inherits puppet::params {
|
89 | 89 |
|
90 | 90 | anchor { 'puppet::master::begin': }
|
|
120 | 120 | ensure => $version,
|
121 | 121 | }
|
122 | 122 | }
|
123 |
| - if $manage_webserver != undef { |
| 123 | + if $webserver != undef { |
124 | 124 | Anchor['puppet::master::begin'] ->
|
125 | 125 | class {'puppet::passenger':
|
126 | 126 | puppet_passenger_port => $puppet_passenger_port,
|
|
147 | 147 | require => File[$::puppet::params::confdir],
|
148 | 148 | owner => $::puppet::params::puppet_user,
|
149 | 149 | group => $::puppet::params::puppet_group,
|
150 |
| - notify => Service[$manage_webserver], |
| 150 | + notify => Service[$webserver], |
151 | 151 | }
|
152 | 152 | }
|
153 | 153 | else {
|
154 | 154 | File<| title == $::puppet::params::puppet_conf |> {
|
155 |
| - notify => Service['httpd'], |
| 155 | + notify => Service[$webserver], |
156 | 156 | }
|
157 | 157 | }
|
158 | 158 |
|
|
163 | 163 | require => Package[$puppet_master_package],
|
164 | 164 | owner => $::puppet::params::puppet_user,
|
165 | 165 | group => $::puppet::params::puppet_group,
|
166 |
| - notify => Service['httpd'], |
| 166 | + notify => Service[$webserver], |
167 | 167 | }
|
168 | 168 | }
|
169 | 169 | else {
|
170 | 170 | File<| title == $::puppet::params::confdir |> {
|
171 |
| - notify +> Service['httpd'], |
| 171 | + notify +> Service[$webserver], |
172 | 172 | require +> Package[$puppet_master_package],
|
173 | 173 | }
|
174 | 174 | }
|
|
177 | 177 | ensure => directory,
|
178 | 178 | owner => $::puppet::params::puppet_user,
|
179 | 179 | group => $::puppet::params::puppet_group,
|
180 |
| - notify => Service['httpd'], |
| 180 | + notify => Service[$webserver], |
181 | 181 | require => Package[$puppet_master_package]
|
182 | 182 | }
|
183 | 183 |
|
|
186 | 186 | class { 'puppet::storeconfigs':
|
187 | 187 | dbserver => $storeconfigs_dbserver,
|
188 | 188 | dbport => $storeconfigs_dbport,
|
189 |
| - puppet_service => Service['httpd'], |
| 189 | + puppet_service => Service[$webserver], |
190 | 190 | puppet_confdir => $::puppet::params::puppet_confdir,
|
191 | 191 | puppet_conf => $::puppet::params::puppet_conf,
|
192 | 192 | puppet_master_package => $puppet_master_package,
|
|
199 | 199 | Ini_setting {
|
200 | 200 | path => $::puppet::params::puppet_conf,
|
201 | 201 | require => File[$::puppet::params::puppet_conf],
|
202 |
| - notify => Service['httpd'], |
| 202 | + notify => Service[$webserver], |
203 | 203 | section => 'master',
|
204 | 204 | }
|
205 | 205 |
|
|
0 commit comments