On Tue, Sep 1, 2015 at 7:50 AM, jmp242 <jp10...@gmail.com> wrote:

> 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?
>

At first I thought it might be related to PUP-927[1], but that was "fixed"
in 3.8.0. It appears that maybe it is similar to that or the fix in 3.8.0
was not enough. Is the Puppet version you have installed x86 or x64?

[1] https://tickets.puppetlabs.com/browse/PUP-927


>
>
>
> --
> 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 puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/b51075e6-422b-4614-88db-787618d89e6e%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/b51075e6-422b-4614-88db-787618d89e6e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Rob Reynolds
Developer, Puppet Labs

*PuppetConf 2015 <http://2015.puppetconf.com/> is coming to Portland,
Oregon! Join us October 5-9.*
*Register now to take advantage of the Final Countdown discount
<https://www.eventbrite.com/e/puppetconf-2015-october-5-9-register-now-its-the-final-countdown-tickets-13115894995?discount=FinalCountdown>
*
*—**save $149!*

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAMJiBK4Ui84C%3DzSum0Njau_DSNbxe3N2z_V-BRfMKjp9%3DR_FbA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to