File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 439
439
# Whether the additional config files in `/etc/apache2/conf-enabled` should be managed.
440
440
#
441
441
# @param vhost_enable_dir
442
- # Set's whether the vhost definitions will be stored in sites-availible and if
442
+ # Set's the vhost definitions which will be stored in sites-availible and if
443
443
# they will be symlinked to and from sites-enabled.
444
+ #
445
+ # @param manage_vhost_enable_dir
446
+ # Overides the vhost_enable_dir inherited parameters and allows it to be disabled
444
447
#
445
448
# @param mod_enable_dir
446
449
# Set's whether the mods-enabled directory should be managed.
500
503
Optional[Stdlib::Absolutepath] $conf_enabled = $apache::params::conf_enabled,
501
504
Stdlib::Absolutepath $vhost_dir = $apache::params::vhost_dir,
502
505
Optional[Stdlib::Absolutepath] $vhost_enable_dir = $apache::params::vhost_enable_dir,
506
+ Boolean $manage_vhost_enable_dir = true ,
503
507
Hash $mod_libs = $apache::params::mod_libs,
504
508
Hash $mod_packages = $apache::params::mod_packages,
505
509
String $vhost_include_pattern = $apache::params::vhost_include_pattern,
703
707
}
704
708
}
705
709
706
- if $vhost_enable_dir and ! defined (File [$vhost_enable_dir ]) {
710
+ if $vhost_enable_dir and ! defined (File [$vhost_enable_dir ]) and $manage_vhost_enable_dir {
707
711
$vhost_load_dir = $vhost_enable_dir
708
712
exec { "mkdir ${vhost_load_dir}" :
709
713
creates => $vhost_load_dir ,
You can’t perform that action at this time.
0 commit comments