diff options
author | Jason Barnett <jason.w.barnett@gmail.com> | 2021-10-05 11:29:13 -0600 |
---|---|---|
committer | Jason Barnett <jason.w.barnett@gmail.com> | 2022-03-26 09:27:17 -0600 |
commit | ff68fd07a9fbcd5a7de89b30d3669819c4af8ed7 (patch) | |
tree | 46019df032cf6424a24f663e7ee81156b62b7126 /lib/chef/run_context.rb | |
parent | 4cbb5d25352ead579b65d4822f0260267965b476 (diff) | |
download | chef-ff68fd07a9fbcd5a7de89b30d3669819c4af8ed7.tar.gz |
Add support for default secret service
Signed-off-by: Jason Barnett <jason.w.barnett@gmail.com>
Diffstat (limited to 'lib/chef/run_context.rb')
-rw-r--r-- | lib/chef/run_context.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/chef/run_context.rb b/lib/chef/run_context.rb index 94f8a316e0..ce4d545aa4 100644 --- a/lib/chef/run_context.rb +++ b/lib/chef/run_context.rb @@ -145,6 +145,16 @@ class Chef # attr_accessor :input_collection + # + # @return [Symbol, nil] + # + attr_accessor :default_secret_service + + # + # @return [Hash<Symbol,Object>] + # + attr_accessor :default_secret_config + # Pointer back to the Chef::Runner that created this # attr_accessor :runner @@ -222,6 +232,8 @@ class Chef @input_collection = Chef::Compliance::InputCollection.new(events) @waiver_collection = Chef::Compliance::WaiverCollection.new(events) @profile_collection = Chef::Compliance::ProfileCollection.new(events) + @default_secret_service = nil + @default_secret_config = {} initialize_child_state end @@ -693,6 +705,10 @@ class Chef cookbook_collection cookbook_collection= cookbook_compiler + default_secret_config + default_secret_config= + default_secret_service + default_secret_service= definitions events events= |