Do not define service resource when service management is disabled
Change-Id: Ia99f99aef9d2f77dd7e57d3256de879267a4da01
This commit is contained in:
parent
538f6d5237
commit
8fcf75c906
@ -77,14 +77,14 @@ define trove::generic_service(
|
|||||||
} else {
|
} else {
|
||||||
$service_ensure = 'stopped'
|
$service_ensure = 'stopped'
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
service { $trove_title:
|
service { $trove_title:
|
||||||
ensure => $service_ensure,
|
ensure => $service_ensure,
|
||||||
name => $service_name,
|
name => $service_name,
|
||||||
enable => $enabled,
|
enable => $enabled,
|
||||||
hasstatus => true,
|
hasstatus => true,
|
||||||
tag => 'trove-service',
|
tag => 'trove-service',
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user