Skip to content

Commit b0e916e

Browse files
author
Jochen Haeberle
committed
Make the service correctly consider config files managed outside this module or in unusual places and make it play nicely with user specified package_names. Works with PR puppetlabs#617
1 parent 7f91ff7 commit b0e916e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

manifests/server/service.pp

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
name => $mysql::server::service_name,
2121
enable => $mysql::server::real_service_enabled,
2222
provider => $mysql::server::service_provider,
23-
require => [ File['mysql-config-file'], Package['mysql-server'] ]
23+
# if you manage the config file outside of the module or want mysql provided by another package, you may still use this service
24+
# provided you set the parameters config_file resp. package_name on the mysql::server class
25+
require => [ File[$mysql::server::config_file], Package[$mysql::server::package_name]]
2426
}
2527

2628
}

0 commit comments

Comments
 (0)