Skip to content

Commit 2d40257

Browse files
committed
dependency: create mapfile before configfile
configcheck fails, if the mapfile does not exist
1 parent bb13809 commit 2d40257

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

manifests/config.pp

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
owner => '0',
5858
group => '0',
5959
mode => '0640',
60+
tag => 'haproxy-config',
6061
}
6162

6263
Concat[$_config_file] {

manifests/init.pp

+3
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@
147147
# there should be no legacy code that uses these deprecated
148148
# parameters.
149149

150+
Haproxy::Mapfile <| |>
151+
-> Concat <| tag=='haproxy-config' |>
152+
150153
# To support deprecating $enable
151154
if $enable != undef {
152155
warning('The $enable parameter is deprecated; please use service_ensure and/or package_ensure instead')

0 commit comments

Comments
 (0)