Do not define service resource when service management is disabled

Change-Id: Ia99f99aef9d2f77dd7e57d3256de879267a4da01
This commit is contained in:
Takashi Kajinami 2022-02-21 23:27:59 +09:00
parent 538f6d5237
commit 8fcf75c906

View File

@ -77,14 +77,14 @@ define trove::generic_service(
} else {
$service_ensure = 'stopped'
}
}
service { $trove_title:
ensure => $service_ensure,
name => $service_name,
enable => $enabled,
hasstatus => true,
tag => 'trove-service',
service { $trove_title:
ensure => $service_ensure,
name => $service_name,
enable => $enabled,
hasstatus => true,
tag => 'trove-service',
}
}
}
}