summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2017-09-17 23:43:06 -0700
committerGitHub <noreply@github.com>2017-09-17 23:43:06 -0700
commite2ba293f6119cd215b1bc3f1d26a6503ba9e3841 (patch)
treeaafa6773ec15a80eda5aa409db6c6e92b7b5de2f
parent21cf57404b5b5a771e05be12a8daf906e76b4553 (diff)
parent0b162c45dda4eaee70066b2973dcab9014e9d40f (diff)
downloadchef-e2ba293f6119cd215b1bc3f1d26a6503ba9e3841.tar.gz
Merge pull request #6417 from chef/apt_open
Open apt resources up to prevent breaking change
-rw-r--r--lib/chef/resource/apt_preference.rb2
-rw-r--r--lib/chef/resource/apt_repository.rb2
-rw-r--r--lib/chef/resource/apt_update.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/resource/apt_preference.rb b/lib/chef/resource/apt_preference.rb
index b0f56d983e..603766d76b 100644
--- a/lib/chef/resource/apt_preference.rb
+++ b/lib/chef/resource/apt_preference.rb
@@ -22,7 +22,7 @@ class Chef
class Resource
class AptPreference < Chef::Resource
resource_name :apt_preference
- provides :apt_preference, os: "linux", platform_family: "debian"
+ provides :apt_preference
property :package_name, String, name_property: true, regex: [/^([a-z]|[A-Z]|[0-9]|_|-|\.|\*|\+)+$/]
property :glob, String
diff --git a/lib/chef/resource/apt_repository.rb b/lib/chef/resource/apt_repository.rb
index f16b3088a6..8b69435246 100644
--- a/lib/chef/resource/apt_repository.rb
+++ b/lib/chef/resource/apt_repository.rb
@@ -22,7 +22,7 @@ class Chef
class Resource
class AptRepository < Chef::Resource
resource_name :apt_repository
- provides :apt_repository, os: "linux", platform_family: "debian"
+ provides :apt_repository
property :repo_name, String, name_property: true
property :uri, String
diff --git a/lib/chef/resource/apt_update.rb b/lib/chef/resource/apt_update.rb
index 39ebc8662c..67ca7fbfea 100644
--- a/lib/chef/resource/apt_update.rb
+++ b/lib/chef/resource/apt_update.rb
@@ -22,7 +22,7 @@ class Chef
class Resource
class AptUpdate < Chef::Resource
resource_name :apt_update
- provides :apt_update, os: "linux", platform_family: "debian"
+ provides :apt_update
# allow bare apt_update with no name
property :name, String, default: ""