Unverified Commit 7ffbb934 authored by Tim Smith's avatar Tim Smith Committed by GitHub
Browse files

Merge pull request #141 from Taegost/sensitive

Add sensitive flag to expose underlying "sensitive" attribute in the Chef cookbook_file resource which can suppress the install.ps1 verbosity when run
parents 650ba14a d2c0d411
# Changelog for Chocolatey cookbook
## v2.0.2 (2019-07-11)
- Add `['chocolatey']['sensitive']` attribute (default: false) to give users the option to suppress output spam when the install.ps1 file is pushed to the machine.
## v2.0.1 (2018-07-03)
- Remove mentions of the package provider from the readme and metadata
......@@ -33,6 +33,7 @@ Attribute | Description
`['install_vars']['chocolateyVersion']` | Version of Chocolatey to install, e.g. '' | String | nil (download latest version)
`['install_vars']['chocolateyDownloadUrl']` | Chocolatey .nupkg file URL. Use this if you host an internal copy of the chocolatey.nupkg | String | <https://chocolatey.org/api/v2/package/chocolatey> (download from chocolatey.org)
`['install_vars']['chocolateyUseWindowsCompression']`| To use built-in compression instead of 7zip (requires additional download) set to `true` | String | nil (use 7zip)
`['sensitive']` | When true, will suppress writing the contents of install.ps1 to the console | Boolean | false
## Recipes
default['chocolatey']['upgrade'] = false
default['chocolatey']['sensitive'] = false
# Chocolatey install.ps1 env vars. See https://chocolatey.org/install.ps1
default['chocolatey']['install_vars'].tap do |env|
......@@ -30,6 +30,7 @@ cookbook_file install_ps1 do
action :create
backup false
source 'install.ps1'
sensitive node['chocolatey']['sensitive']
powershell_script 'Install Chocolatey' do
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment