So I'm using Puppet 3.8.1 on Windows 7 x64 and managing a configuration
file using a template.
file { 'chocolatey.config':
path => "C:/ProgramData/chocolatey/config/chocolatey.config",
content => template('yum/chocolatey.config.erb'),
owner => 'SYSTEM',
group => 'Administrators',
mode => '0775',
ensure => present,
require => Exec['chocolatelyinstall'],
}
The template file grabs values from a foreman parameter:
<?xml version="1.0" encoding="utf-8"?>
<chocolatey xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance">
<cacheLocation />
<containsLegacyPackageInstalls>true</containsLegacyPackageInstalls>
<commandExecutionTimeoutSeconds>2700</commandExecutionTimeoutSeconds>
<sources>
<source id="chocolatey" value="https://chocolatey.org/api/v2/" disabled=
"true" />
<source id="<%= @choco_repo_name %>" value="<%= @choco_repo_url %>"
disabled="false" />
</sources>
<features>
<feature name="checksumFiles" enabled="true" setExplicitly="false" />
<feature name="autoUninstaller" enabled="true" setExplicitly="true" />
<feature name="allowGlobalConfirmation" enabled="false" setExplicitly=
"false" />
</features>
<apiKeys />
</chocolatey>
Every time it runs, even one manual run right after another, it changes the
file from one hash to a different one, always the same 2 hashes, and the
contents of the file (text) are the same each time. I also get a FileBucket
got a duplicate file each time.
Notice: /Stage[main]/Yum/File[chocolatey.config]/content:
Info: Computing checksum on file C:/ProgramData/chocolatey/config/chocolatey
.con
fig
Info: FileBucket got a duplicate file {md5}eedc18d21cf625bb6c04902e8a9dd409
Info: /Stage[main]/Yum/File[chocolatey.config]: Filebucketed C:/ProgramData/
choc
olatey/config/chocolatey.config to puppet with sum
eedc18d21cf625bb6c04902e8a9dd
409
Notice: /Stage[main]/Yum/File[chocolatey.config]/content: content changed
'{md5}
eedc18d21cf625bb6c04902e8a9dd409' to '{md5}4efbb2600ee773122152faec7ae80934'
Any idea WTH is going on?
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/b51075e6-422b-4614-88db-787618d89e6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.