Skip to content

Commit 23c8428

Browse files
author
Tim Meusel
committed
nex step for removing httpd
1 parent 3264824 commit 23c8428

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

manifests/master.pp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
# ['puppetdb_startup_timeout'] - The timeout for puppetdb
3333
# ['dns_alt_names'] - Comma separated list of alternative DNS names
3434
# ['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
3636
#
3737
# Requires:
3838
#
@@ -84,7 +84,7 @@
8484
$puppetdb_strict_validation = $::puppet::params::puppetdb_strict_validation,
8585
$dns_alt_names = ['puppet'],
8686
$digest_algorithm = $::puppet::params::digest_algorithm,
87-
$manage_webserver = undef,
87+
$webserver = undef,
8888
) inherits puppet::params {
8989

9090
anchor { 'puppet::master::begin': }
@@ -120,7 +120,7 @@
120120
ensure => $version,
121121
}
122122
}
123-
if $manage_webserver != undef {
123+
if $webserver != undef {
124124
Anchor['puppet::master::begin'] ->
125125
class {'puppet::passenger':
126126
puppet_passenger_port => $puppet_passenger_port,
@@ -147,12 +147,12 @@
147147
require => File[$::puppet::params::confdir],
148148
owner => $::puppet::params::puppet_user,
149149
group => $::puppet::params::puppet_group,
150-
notify => Service[$manage_webserver],
150+
notify => Service[$webserver],
151151
}
152152
}
153153
else {
154154
File<| title == $::puppet::params::puppet_conf |> {
155-
notify => Service['httpd'],
155+
notify => Service[$webserver],
156156
}
157157
}
158158

@@ -163,12 +163,12 @@
163163
require => Package[$puppet_master_package],
164164
owner => $::puppet::params::puppet_user,
165165
group => $::puppet::params::puppet_group,
166-
notify => Service['httpd'],
166+
notify => Service[$webserver],
167167
}
168168
}
169169
else {
170170
File<| title == $::puppet::params::confdir |> {
171-
notify +> Service['httpd'],
171+
notify +> Service[$webserver],
172172
require +> Package[$puppet_master_package],
173173
}
174174
}
@@ -177,7 +177,7 @@
177177
ensure => directory,
178178
owner => $::puppet::params::puppet_user,
179179
group => $::puppet::params::puppet_group,
180-
notify => Service['httpd'],
180+
notify => Service[$webserver],
181181
require => Package[$puppet_master_package]
182182
}
183183

@@ -186,7 +186,7 @@
186186
class { 'puppet::storeconfigs':
187187
dbserver => $storeconfigs_dbserver,
188188
dbport => $storeconfigs_dbport,
189-
puppet_service => Service['httpd'],
189+
puppet_service => Service[$webserver],
190190
puppet_confdir => $::puppet::params::puppet_confdir,
191191
puppet_conf => $::puppet::params::puppet_conf,
192192
puppet_master_package => $puppet_master_package,
@@ -199,7 +199,7 @@
199199
Ini_setting {
200200
path => $::puppet::params::puppet_conf,
201201
require => File[$::puppet::params::puppet_conf],
202-
notify => Service['httpd'],
202+
notify => Service[$webserver],
203203
section => 'master',
204204
}
205205

0 commit comments

Comments
 (0)