summaryrefslogtreecommitdiff
path: root/lib/chef/resource
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2017-09-28 11:42:04 -0700
committerTim Smith <tsmith@chef.io>2017-09-28 11:42:04 -0700
commitede166724c392757bb42c94d402adba748ab2b76 (patch)
tree1273c56dbb2e769bc38c4ce44b49d7ed1fda7441 /lib/chef/resource
parente5e2f14ad846af240a545bd87d0b431b513322c3 (diff)
downloadchef-ede166724c392757bb42c94d402adba748ab2b76.tar.gz
Allow specifying the cookbook for the source template
Also fix the cookbook_file lookup logic missing a method it needed for file based keys Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource')
-rw-r--r--lib/chef/resource/zypper_repository.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/resource/zypper_repository.rb b/lib/chef/resource/zypper_repository.rb
index 69a96b42cf..88b6fd9336 100644
--- a/lib/chef/resource/zypper_repository.rb
+++ b/lib/chef/resource/zypper_repository.rb
@@ -39,6 +39,7 @@ class Chef
property :mode, default: "0644"
property :refresh_cache, [true, false], default: true
property :source, String, regex: /.*/
+ property :cookbook, String
property :gpgautoimportkeys, [true, false], default: true
default_action :create