diff options
author | Tim Smith <tsmith@chef.io> | 2019-05-07 10:41:08 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-07 10:41:08 -0700 |
commit | b2c16e5438b43f0154d0cd61cea3cc6ff00433b9 (patch) | |
tree | 84e7fa1a53126927330e71c6865b7b2e2a60817d /lib/chef/resource | |
parent | 3f39c7eb9a5f0eadf768cc92630744f66242dfa3 (diff) | |
parent | 38c62c0c14794045154d886ffaf6f27778e659dd (diff) | |
download | chef-b2c16e5438b43f0154d0cd61cea3cc6ff00433b9.tar.gz |
Merge pull request #8307 from MsysTechnologiesllc/Kapil/MSYS-986_Move_response_file_and_response_file_variables_out_of_base_package_resource
package: move response_file and response_file_variables out of base package resource
Diffstat (limited to 'lib/chef/resource')
-rw-r--r-- | lib/chef/resource/apt_package.rb | 8 | ||||
-rw-r--r-- | lib/chef/resource/dpkg_package.rb | 8 | ||||
-rw-r--r-- | lib/chef/resource/package.rb | 8 |
3 files changed, 16 insertions, 8 deletions
diff --git a/lib/chef/resource/apt_package.rb b/lib/chef/resource/apt_package.rb index e55d37fcc8..4ee636062d 100644 --- a/lib/chef/resource/apt_package.rb +++ b/lib/chef/resource/apt_package.rb @@ -35,6 +35,14 @@ class Chef description: "Overwrite existing configuration files with those supplied by the package, if prompted by APT.", default: false + property :response_file, String, + description: "The direct path to the file used to pre-seed a package.", + desired_state: false + + property :response_file_variables, Hash, + description: "A Hash of response file variables in the form of {'VARIABLE' => 'VALUE'}.", + default: lazy { Hash.new }, desired_state: false + end end end diff --git a/lib/chef/resource/dpkg_package.rb b/lib/chef/resource/dpkg_package.rb index 742b291508..f5b9e5f14a 100644 --- a/lib/chef/resource/dpkg_package.rb +++ b/lib/chef/resource/dpkg_package.rb @@ -28,6 +28,14 @@ class Chef property :source, [ String, Array, nil ], description: "The path to a package in the local file system." + + property :response_file, String, + description: "The direct path to the file used to pre-seed a package.", + desired_state: false + + property :response_file_variables, Hash, + description: "A Hash of response file variables in the form of {'VARIABLE' => 'VALUE'}.", + default: lazy { Hash.new }, desired_state: false end end end diff --git a/lib/chef/resource/package.rb b/lib/chef/resource/package.rb index 71f030244b..67b01402a7 100644 --- a/lib/chef/resource/package.rb +++ b/lib/chef/resource/package.rb @@ -52,14 +52,6 @@ class Chef description: "One (or more) additional command options that are passed to the command.", coerce: proc { |x| x.is_a?(String) ? x.shellsplit : x } - property :response_file, String, - description: "The direct path to the file used to pre-seed a package.", - desired_state: false - - property :response_file_variables, Hash, - description: "A Hash of response file variables in the form of {'VARIABLE' => 'VALUE'}.", - default: lazy { Hash.new }, desired_state: false - property :source, String, description: "The optional path to a package on the local file system.", desired_state: false |