Commit dc737bb8 authored by Mike Wheway's avatar Mike Wheway
Browse files

Add sensitive flag to suppress install.ps1 spam

parent bc1c2a59
# 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 | <> (download from
`['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
default['chocolatey']['install_vars'].tap do |env|
......@@ -4,7 +4,7 @@ maintainer_email ''
license 'Apache-2.0'
description 'Install Chocolatey on Windows'
long_description 'Installs the Chocolatey package manager for Windows.'
version '2.0.1'
version '2.0.2'
source_url ''
issues_url ''
......@@ -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