aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <dev@blino.org>2017-04-16 00:22:49 +0200
committerOlivier Blin <dev@blino.org>2017-04-16 00:22:49 +0200
commit92db99a4c94ce428ad38edad942379dcef16116a (patch)
tree1d020a1d4bf34644a8853ec5b1c14abd763d98c5
parentb1c24769eff463b39c0a133f87d9f8e6fa7cc315 (diff)
downloadpuppet-92db99a4c94ce428ad38edad942379dcef16116a.tar
puppet-92db99a4c94ce428ad38edad942379dcef16116a.tar.gz
puppet-92db99a4c94ce428ad38edad942379dcef16116a.tar.bz2
puppet-92db99a4c94ce428ad38edad942379dcef16116a.tar.xz
puppet-92db99a4c94ce428ad38edad942379dcef16116a.zip
Default service type should be systemd for Mageia >= 2
Otherwise services (like on-the-pull) may not be started, since "service <name> status" exits with 0 even if the service is not started.
-rw-r--r--manifests/defaults.pp6
1 files changed, 6 insertions, 0 deletions
diff --git a/manifests/defaults.pp b/manifests/defaults.pp
index c7b0dd85..762cd146 100644
--- a/manifests/defaults.pp
+++ b/manifests/defaults.pp
@@ -29,3 +29,9 @@ User {
Service {
ensure => running,
}
+
+if versioncmp($::lsbdistrelease, '2') >= 0 {
+ Service {
+ provider => systemd,
+ }
+}