Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-3726

File does not establish sync state when using mtime checksum

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • PUP 3.7.3
    • None
    • Types and Providers
    • None
    • 3
    • Minor

    Description

      When creating a file using the mtime checksum, the target file should get the same or a newer checksum than the source file. A subsequent run should not synchronize content again.

      echo foo >/tmp/bar
      bundle exec puppet apply -e 'file { "/tmp/foo": source => "/tmp/bar", checksum => "mtime" }'  
      Notice: Compiled catalog for geras.fritz.box in environment production in 0.20 seconds
      Notice: /Stage[main]/Main/File[/tmp/foo]/ensure: defined content as '{md5}d3b07384d113edec49eaa6238ad5ff00'
      Notice: Applied catalog in 0.25 seconds
      

      However, another run will cause another sync.

      bundle exec puppet apply -e 'file { "/tmp/foo": source => "/tmp/bar", checksum => "mtime" }'  
      Notice: Compiled catalog for geras.fritz.box in environment production in 0.20 seconds
      Notice: /Stage[main]/Main/File[/tmp/foo]/content: content changed '{mtime}2014-12-03 02:11:12 +0100' to '{md5}d3b07384d113edec49eaa6238ad5ff00'
      Notice: Applied catalog in 0.26 seconds
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ffrank Felix Frank
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support

                  Time Tracking

                    Estimated:
                    Original Estimate - 2 days
                    2d
                    Remaining:
                    Remaining Estimate - 2 days
                    2d
                    Logged:
                    Time Spent - Not Specified
                    Not Specified