Skip to content

Commit 8243e3f

Browse files
committed
Merge pull request puppetlabs#1433 from cmurphy/verify_config
Expose verify_config in apache::vhost::custom
2 parents f6a82f4 + 6df5d41 commit 8243e3f

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -3556,6 +3556,11 @@ Specifies if the virtual host file is present or absent. Valid options: 'absent'
35563556

35573557
Sets the relative load order for Apache HTTPD VirtualHost configuration files. Default: '25'.
35583558

3559+
##### `verify_config`
3560+
3561+
Specifies whether to validate the configuration file before notifying the Apache service. Valid options: Boolean. Default: true.
3562+
3563+
35593564
### Private defined types
35603565

35613566
#### Defined type: `apache::peruser::multiplexer`

manifests/vhost/custom.pp

+6-4
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@
33
$content,
44
$ensure = 'present',
55
$priority = '25',
6+
$verify_config = true,
67
) {
78
include ::apache
89

910
## Apache include does not always work with spaces in the filename
1011
$filename = regsubst($name, ' ', '_', 'G')
1112

1213
::apache::custom_config { $filename:
13-
ensure => $ensure,
14-
confdir => $::apache::vhost_dir,
15-
content => $content,
16-
priority => $priority,
14+
ensure => $ensure,
15+
confdir => $::apache::vhost_dir,
16+
content => $content,
17+
priority => $priority,
18+
verify_config => $verify_config,
1719
}
1820

1921
# NOTE(pabelanger): This code is duplicated in ::apache::vhost and needs to

0 commit comments

Comments
 (0)