summaryrefslogtreecommitdiff
path: root/lib/chef/provider
diff options
context:
space:
mode:
authorNoah Kantrowitz <noah@coderanger.net>2017-04-04 10:46:03 -0700
committerNoah Kantrowitz <noah@coderanger.net>2017-04-04 10:46:03 -0700
commitbd7f7d1b07cbb19c9d08c273bc857a084ce4689b (patch)
tree2060470383da4712acade2f6719572c00fc054b1 /lib/chef/provider
parentdbb339175b445bcd4dfd6c54bababf9dd7908993 (diff)
parent93c72873224c6a79ae13b5d2fa70cb9bfc645c5c (diff)
downloadchef-bd7f7d1b07cbb19c9d08c273bc857a084ce4689b.tar.gz
Merge branch 'master' into template-lazy
Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
Diffstat (limited to 'lib/chef/provider')
-rw-r--r--lib/chef/provider/launchd.rb4
-rw-r--r--lib/chef/provider/lwrp_base.rb2
-rw-r--r--lib/chef/provider/systemd_unit.rb2
-rw-r--r--lib/chef/provider/user/linux.rb1
4 files changed, 6 insertions, 3 deletions
diff --git a/lib/chef/provider/launchd.rb b/lib/chef/provider/launchd.rb
index a58954c707..9c368c2b48 100644
--- a/lib/chef/provider/launchd.rb
+++ b/lib/chef/provider/launchd.rb
@@ -85,6 +85,10 @@ class Chef
manage_service(:disable)
end
+ def action_restart
+ manage_service(:restart)
+ end
+
def manage_plist(action)
if source
res = cookbook_file_resource
diff --git a/lib/chef/provider/lwrp_base.rb b/lib/chef/provider/lwrp_base.rb
index cbf25f1e4f..1340b55ae4 100644
--- a/lib/chef/provider/lwrp_base.rb
+++ b/lib/chef/provider/lwrp_base.rb
@@ -75,8 +75,6 @@ class Chef
LWRPBase.loaded_lwrps[filename] = true
- Chef::Provider.register_deprecated_lwrp_class(provider_class, convert_to_class_name(resource_name))
-
provider_class
end
diff --git a/lib/chef/provider/systemd_unit.rb b/lib/chef/provider/systemd_unit.rb
index 5175dc6be9..143efe7b91 100644
--- a/lib/chef/provider/systemd_unit.rb
+++ b/lib/chef/provider/systemd_unit.rb
@@ -194,7 +194,7 @@ class Chef
f.group "root"
f.mode "0644"
f.content new_resource.to_ini
- f.verify :systemd_unit
+ f.verify :systemd_unit if new_resource.verify
end.run_action(action)
end
diff --git a/lib/chef/provider/user/linux.rb b/lib/chef/provider/user/linux.rb
index cf75bdc38b..715330e196 100644
--- a/lib/chef/provider/user/linux.rb
+++ b/lib/chef/provider/user/linux.rb
@@ -58,6 +58,7 @@ class Chef
def usermod_options
opts = []
+ opts += [ "-u", new_resource.uid ] if non_unique?
if updating_home?
if new_resource.manage_home
opts << "-m"