summaryrefslogtreecommitdiff
path: root/lib/chef/resource/systemd_unit.rb
diff options
context:
space:
mode:
authorNathan Williams <nath.e.will@gmail.com>2017-11-01 09:00:01 -0700
committerNathan Williams <nath.e.will@gmail.com>2017-11-28 15:48:48 -0800
commit9ce945f8d42bc95f8f93d3e444e74cbd153469f6 (patch)
tree72b72694b19cf37344ebb2e92d48655462fe3fc6 /lib/chef/resource/systemd_unit.rb
parentca777b8d442c29aa7322e98eb8c3feb4f4c84936 (diff)
downloadchef-9ce945f8d42bc95f8f93d3e444e74cbd153469f6.tar.gz
add unit_name identity property to systemd_unit
Signed-off-by: Nathan Williams <nath.e.will@gmail.com>
Diffstat (limited to 'lib/chef/resource/systemd_unit.rb')
-rw-r--r--lib/chef/resource/systemd_unit.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/chef/resource/systemd_unit.rb b/lib/chef/resource/systemd_unit.rb
index 1a19a7d682..66c4e6f594 100644
--- a/lib/chef/resource/systemd_unit.rb
+++ b/lib/chef/resource/systemd_unit.rb
@@ -46,6 +46,9 @@ class Chef
default: true, desired_state: false
property :verify, [TrueClass, FalseClass],
default: true, desired_state: false
+ property :unit_name, String, desired_state: false,
+ identity: true,
+ name_property: true
def to_ini
case content