Skip to content

Commit

Permalink
Merge pull request #91 from intelliad-media/master
Browse files Browse the repository at this point in the history
Fixed the mesos_version variable check, which fails if the puppet ser…
  • Loading branch information
deric authored Jan 18, 2019
2 parents e360081 + 52949da commit 1d8cb88
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions manifests/slave.pp
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,14 @@
$credentials_ensure = absent
}

if ($::mesos_version != undef) and (versioncmp($::mesos_version, '0.28.0') >= 0)
and $service_provider != 'systemd' {
# otherwise rely on mesos-slave defaults
$systemd_support = {'systemd_enable_support' => false}
if defined('$::mesos_version') {
if ($::mesos_version != undef) and (versioncmp($::mesos_version, '0.28.0') >= 0)
and $service_provider != 'systemd' {
# otherwise rely on mesos-slave defaults
$systemd_support = {'systemd_enable_support' => false}
} else {
$systemd_support = {}
}
} else {
$systemd_support = {}
}
Expand Down

0 comments on commit 1d8cb88

Please sign in to comment.