@@ -22,6 +22,7 @@ syntax_full_code_block: |-
2222 apt_package 'name' do
2323 anchor_package_regex true, false # default value: false
2424 default_release String
25+ environment Hash # default value: {}
2526 options String, Array
2627 overwrite_config_files true, false # default value: false
2728 package_name String, Array
@@ -32,13 +33,13 @@ syntax_full_code_block: |-
3233 version String, Array
3334 action Symbol # defaults to :install if not specified
3435 end
35- syntax_properties_list :
36+ syntax_properties_list :
3637syntax_full_properties_list :
3738- " `apt_package` is the resource."
3839- " `name` is the name given to the resource block."
3940- " `action` identifies which steps Chef Infra Client will take to bring the node into
4041 the desired state."
41- - " `anchor_package_regex`, `default_release`, `options`, `overwrite_config_files`, `package_name`, `response_file`,
42+ - " `anchor_package_regex`, `environment`, ` default_release`, `options`, `overwrite_config_files`, `package_name`, `response_file`,
4243 `response_file_variables`, `source`, `timeout`, and `version` are the properties
4344 available to this resource."
4445actions_list :
@@ -75,6 +76,14 @@ properties_list:
7576 required : false
7677 description_list :
7778 - markdown : ' The default release. For example: `stable`.'
79+ - property : environment
80+ ruby_type : Hash
81+ required : false
82+ default_value : " {}"
83+ new_in : ' 18.8'
84+ description_list :
85+ - markdown : A Hash of environment variables in the form of {'ENV_VARIABLE' => 'VALUE'}
86+ to be set before running the command.
7887- property : options
7988 ruby_type : String, Array
8089 required : false
0 commit comments