summaryrefslogtreecommitdiff
path: root/lib/chef/resource/service.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-05-29 15:56:20 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2019-05-29 16:20:17 -0700
commitdeea4f3b00a6bd18beba85c05ddec93a143cdb8b (patch)
tree80514eafa5ed418ed047117b058a0ced7548c792 /lib/chef/resource/service.rb
parentb6488236ef24b9c44295deac78b7bd2498e372ba (diff)
downloadchef-deea4f3b00a6bd18beba85c05ddec93a143cdb8b.tar.gz
Target mode for systemd service helper
Makes it so that local cookbook can bounce a remote service over train/ssh/whatever. Works at least for ubuntu. Introduces a fairly rudimentary TrainHelpers class, using some inspiration from ohbye. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/resource/service.rb')
-rw-r--r--lib/chef/resource/service.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/resource/service.rb b/lib/chef/resource/service.rb
index e13f237481..508ef8e643 100644
--- a/lib/chef/resource/service.rb
+++ b/lib/chef/resource/service.rb
@@ -24,6 +24,7 @@ require_relative "../dist"
class Chef
class Resource
class Service < Chef::Resource
+ provides :service, target_mode: true
identity_attr :service_name
description "Use the service resource to manage a service."