-
Notifications
You must be signed in to change notification settings - Fork 437
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CHEF-7691 Add resource updates for Client 18.4 (#4231)
* Add resource updates for Client 18.4 Signed-off-by: Ian Maddaus <[email protected]> * powershell_script Signed-off-by: Ian Maddaus <[email protected]> * chocolatey_package Signed-off-by: Ian Maddaus <[email protected]> * powershell_script Signed-off-by: Ian Maddaus <[email protected]> * chocolately_installer Signed-off-by: Ian Maddaus <[email protected]> * Corrections Signed-off-by: Ian Maddaus <[email protected]> --------- Signed-off-by: Ian Maddaus <[email protected]>
- Loading branch information
Showing
5 changed files
with
286 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
+++ | ||
title = "chocolatey_installer Resource" | ||
draft = false | ||
robots = "" | ||
gh_repo = "chef-web-docs" | ||
data_path = ["infra","resources","chocolatey_installer"] | ||
layout = "infra_resource" | ||
toc_layout = "infra_resource_toc" | ||
|
||
[menu] | ||
[menu.infra] | ||
title = "chocolatey_installer" | ||
identifier = "chef_infra/resources/chocolatey_installer" | ||
parent = "chef_infra/resources" | ||
+++ | ||
|
||
<!-- The contents of this page are automatically generated from the chocolatey_config.yaml file in the data/infra/resources directory. --> | ||
<!-- To suggest a change, edit the https://github.com/chef/chef/blob/main/lib/chef/resource/chocolatey_installer.rb file and submit a pull request to the https://github.com/chef/chef repository. --> | ||
<!-- markdownlint-disable-file --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
--- | ||
resource_reference: true | ||
resources_common_guards: true | ||
resources_common_notification: true | ||
resources_common_properties: true | ||
resource: chocolatey_installer | ||
resource_description_list: | ||
- markdown: Use the chocolatey_installer resource to install the Chocolatey package manager. Use the chocolatey_feature resource to customize | ||
your install and the chocolatey_package resource to install packages. | ||
resource_new_in: '18.4' | ||
syntax_full_code_block: |- | ||
chocolatey_installer 'name' do | ||
chocolatey_version String | ||
download_url String | ||
ignore_proxy true, false # default value: false | ||
proxy_password String | ||
proxy_url String | ||
proxy_user String | ||
use_native_unzip true, false # default value: false | ||
action Symbol # defaults to :install if not specified | ||
end | ||
syntax_properties_list: | ||
syntax_full_properties_list: | ||
- "`chocolatey_installer` is the resource." | ||
- "`name` is the name given to the resource block." | ||
- "`action` identifies which steps Chef Infra Client will take to bring the node into | ||
the desired state." | ||
- "`chocolatey_version`, `download_url`, `ignore_proxy`, `proxy_password`, `proxy_url`, | ||
`proxy_user`, and `use_native_unzip` are the properties available to this resource." | ||
actions_list: | ||
:nothing: | ||
shortcode: resources_common_actions_nothing.md | ||
:install: | ||
markdown: Installs Chocolatey package manager (default). | ||
:uninstall: | ||
markdown: Uninstall Chocolatey package manager. | ||
:upgrade: | ||
markdown: Upgrades the Chocolatey package manager. | ||
properties_list: | ||
- property: chocolatey_version | ||
ruby_type: String | ||
required: false | ||
description_list: | ||
- markdown: Specifies a target version of Chocolatey to install. By default, the | ||
latest stable version is installed. This will use the value in `$env:ChocolateyVersion` | ||
by default if that environment variable is present. This parameter is ignored | ||
if you set `download_url`. | ||
- property: download_url | ||
ruby_type: String | ||
required: false | ||
description_list: | ||
- markdown: The URL to download Chocolatey from. This sets the value of `$env:ChocolateyDownloadUrl` | ||
and causes the installer to choose an alternate download location. If this is | ||
not set, this resource downloads Chocolatey from the official Chocolatey community | ||
repository. You can set a path to a `chocolatey.nupkg` file for offline installation. | ||
- property: ignore_proxy | ||
ruby_type: true, false | ||
required: false | ||
default_value: 'false' | ||
description_list: | ||
- markdown: If set, this overrides any configured proxy, proxy environment | ||
variables, or parameters. This is enabled if set | ||
to a value other than 'false' or '0'. | ||
- property: proxy_password | ||
ruby_type: String | ||
required: false | ||
description_list: | ||
- markdown: The password used to connect to the proxy server with. If set, you must also set `proxy_user`. | ||
- property: proxy_url | ||
ruby_type: String | ||
required: false | ||
description_list: | ||
- markdown: Specifies the proxy URL to use during the download. | ||
- property: proxy_user | ||
ruby_type: String | ||
required: false | ||
description_list: | ||
- markdown: The username used to connect to the proxy server with. If set, you must also set `proxy_password`. | ||
- property: use_native_unzip | ||
ruby_type: true, false | ||
required: false | ||
default_value: 'false' | ||
description_list: | ||
- markdown: If `true`, this resource uses built-in Windows decompression tools instead of 7zip when | ||
unpacking the downloaded NuPkg file. This parameter is ignored in PowerShell 5+ in favour of using | ||
the `Expand-Archive` built-in PowerShell cmdlet directly. | ||
examples: "**Install Chocolatey**\n\n```ruby\nchocolatey_installer 'latest' do\n action | ||
:install\nend\n```\n\n**Uninstall Chocolatey**\n\n```ruby\nchocolatey_installer | ||
'Some random verbiage' do\n action :uninstall\nend\n```\n\n**Install Chocolatey | ||
with Parameters**\n\n```ruby\nchocolatey_installer 'latest' do\n action :install\n | ||
\ download_url \"https://www.contoso.com/foo\"\n chocolatey_version '2.12.24'\nend\n```\n\n```ruby\nchocolatey_installer | ||
'latest' do\n action :install\n download_url \"c:\\foo\foo.nupkg\"\n chocolatey_version | ||
'2.12.24'\nend\n```\n\n**Upgrade Chocolatey with Parameters**\n\n```ruby\nchocolatey_installer | ||
'latest' do\n action :upgrade\n chocolatey_version '2.12.24'\nend\n```\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.