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

File does not establish sync state when using mtime checksum

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: PUP 3.7.3
    • Fix Version/s: None
    • Component/s: Types and Providers
    • Labels:
      None
    • Template:
    • Story Points:
      3
    • UX Priority:
      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

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  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