Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
puppet_agent 1.2.0
-
None
-
Windows 2012 R2 with chocolatey 9.9.12 installed
-
- When managing a source, the default feed should not become re-enabled
- When managing a source, it should behave idempotently and not try to set a user on each run
-
Modules
-
2
-
Windows 2016-09-07, Modules 2016-09-21
Description
When having Puppet managing chocolateysource to disable the main feed and set a private feed it keeps setting a user (which we don't use) and the main feed becomes enabled again.
chocolateysource { 'chocolatey' :
|
ensure => disabled,
|
}
|
|
chocolateysource { 'springboard' :
|
ensure => present,
|
location => $repo,
|
priority => 1
|
}
|
Console capture below:
--
|
Windows PowerShell
|
Copyright (C) 2014 Microsoft Corporation. All rights reserved.
|
|
PS C:\Users\Administrator> choco source list
|
chocolatey [Disabled] - chocolatey | Priority 0.
|
springboard - https://redacted | Priority 1.
|
PS C:\Users\Administrator> puppet agent -t
|
Info: Using configured environment 'production'
|
Info: Retrieving pluginfacts
|
Info: Retrieving plugin
|
Info: Loading facts
|
Info: Caching catalog for redacted.local
|
Info: Applying configuration version '1471640385'
|
Notice: /Stage[main]/Windows::Baseline/Chocolateysource[chocolatey]/user: defined 'user' as ''
|
Notice: /Stage[main]/Windows::Baseline/Chocolateysource[springboard]/user: defined 'user' as ''
|
Notice: Applied catalog in 13.65 seconds
|
PS C:\Users\Administrator> choco source list
|
chocolatey - chocolatey | Priority 0.
|
springboard - https://redacted | Priority 1.
|
PS C:\Users\Administrator> puppet agent -t
|
Info: Using configured environment 'production'
|
Info: Retrieving pluginfacts
|
Info: Retrieving plugin
|
Info: Loading facts
|
Info: Caching catalog for redacted..local
|
Info: Applying configuration version '1471640437'
|
Notice: /Stage[main]/Windows::Baseline/Chocolateysource[chocolatey]/ensure: ensure changed 'present' to 'disabled'
|
Notice: /Stage[main]/Windows::Baseline/Chocolateysource[springboard]/user: defined 'user' as ''
|
Notice: Applied catalog in 12.74 seconds
|
PS C:\Users\Administrator> choco source list
|
chocolatey [Disabled] - chocolatey | Priority 0.
|
springboard - https://redacted | Priority 1.
|
PS C:\Users\Administrator> puppet agent -t
|
Info: Using configured environment 'production'
|
Info: Retrieving pluginfacts
|
Info: Retrieving plugin
|
Info: Loading facts
|
Info: Caching catalog for redacted.local
|
Info: Applying configuration version '1471640554'
|
Notice: /Stage[main]/Windows::Baseline/Chocolateysource[chocolatey]/user: defined 'user' as ''
|
Notice: /Stage[main]/Windows::Baseline/Chocolateysource[springboard]/user: defined 'user' as ''
|
Notice: Applied catalog in 12.59 seconds
|
PS C:\Users\Administrator> choco source list
|
chocolatey - chocolatey | Priority 0.
|
springboard - https://redacted | Priority 1.
|
Attachments
Issue Links
- links to