summaryrefslogtreecommitdiff
path: root/lib/chef
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2020-02-20 16:08:46 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2020-02-21 14:13:15 -0800
commit9f81b7eab59c378998a4ac64e8bf45cb6593519c (patch)
tree9608891e95e19231ad33ac6289e20b16ff304638 /lib/chef
parent934e084a6fd3c879a10e9f90b7e93dd048534db1 (diff)
downloadchef-9f81b7eab59c378998a4ac64e8bf45cb6593519c.tar.gz
add a couple more unified_mode resourceslcg/unified-mode2
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef')
-rw-r--r--lib/chef/resource/route.rb2
-rw-r--r--lib/chef/resource/rpm_package.rb2
-rw-r--r--lib/chef/resource/sysctl.rb2
3 files changed, 6 insertions, 0 deletions
diff --git a/lib/chef/resource/route.rb b/lib/chef/resource/route.rb
index ecd63966cf..6ebdf8e11f 100644
--- a/lib/chef/resource/route.rb
+++ b/lib/chef/resource/route.rb
@@ -22,6 +22,8 @@ require_relative "../resource"
class Chef
class Resource
class Route < Chef::Resource
+ unified_mode true
+
default_action :add
allowed_actions :add, :delete
diff --git a/lib/chef/resource/rpm_package.rb b/lib/chef/resource/rpm_package.rb
index 3a171057e5..c159ce5c08 100644
--- a/lib/chef/resource/rpm_package.rb
+++ b/lib/chef/resource/rpm_package.rb
@@ -21,6 +21,8 @@ require_relative "package"
class Chef
class Resource
class RpmPackage < Chef::Resource::Package
+ unified_mode true
+
resource_name :rpm_package
provides :rpm_package
diff --git a/lib/chef/resource/sysctl.rb b/lib/chef/resource/sysctl.rb
index edbeb23daa..9a36128ff2 100644
--- a/lib/chef/resource/sysctl.rb
+++ b/lib/chef/resource/sysctl.rb
@@ -20,6 +20,8 @@ require_relative "../resource"
class Chef
class Resource
class Sysctl < Chef::Resource
+ unified_mode true
+
resource_name :sysctl
provides(:sysctl) { true }
provides(:sysctl_param) { true }