diff options
author | Peter Fern <github@obfusc8.org> | 2013-12-04 18:58:46 +1100 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-12-20 10:06:44 -0800 |
commit | 09eb9c7b18ca3c7f26db53830b074ab19e426e37 (patch) | |
tree | 23cbae79bba7aaee74e316e2bad9d73edadeaa74 /lib/chef/provider/package.rb | |
parent | 5f1776bb8d1150d11556ad932992ea4e48f8af6e (diff) | |
download | chef-09eb9c7b18ca3c7f26db53830b074ab19e426e37.tar.gz |
CHEF-4849: Implement `#response_file_variables` in Package resource
Now that Chef properly supports a package `response_file` using
`Chef::Resource::Template`, the Package resource should implement the
`response_file_variables` method so that variables do not have to exist
as node attributes (eg - for seeding DB passwords for configuration
files generated by packages).
Diffstat (limited to 'lib/chef/provider/package.rb')
-rw-r--r-- | lib/chef/provider/package.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/provider/package.rb b/lib/chef/provider/package.rb index c7692a9746..adae880b7f 100644 --- a/lib/chef/provider/package.rb +++ b/lib/chef/provider/package.rb @@ -202,6 +202,7 @@ class Chef if template_available?(@new_resource.response_file) Chef::Log.debug("#{@new_resource} fetching preseed file via Template") remote_file = Chef::Resource::Template.new(cache_seed_to, run_context) + remote_file.variables(@new_resource.response_file_variables) elsif cookbook_file_available?(@new_resource.response_file) Chef::Log.debug("#{@new_resource} fetching preseed file via cookbook_file") remote_file = Chef::Resource::CookbookFile.new(cache_seed_to, run_context) |