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

File resources with defined content don't output contents with ensure=>present

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: PUP 3.7.4
    • Fix Version/s: PUP 4.1.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Story Points:
      1
    • Sprint:
      Client 2015-04-15
    • Release Notes:
      Bug Fix

      Description

      When creating a file resource with ensure=>present and specified contents, the specified contents aren't logged:

      [root@puppet-eli file]# rm -f /root/somefile
      [root@puppet-eli file]# puppet apply -e 'file { "/root/somefile": ensure=>present, content=>"hello" }'
      Notice: Compiled catalog for puppet-eli.localdomain in environment production in 0.12 seconds
      Notice: /Stage[main]/Main/File[/root/somefile]/ensure: created
      Notice: Finished catalog run in 0.26 seconds
      

      By contrast, here's the log with ensure=>file:

      [root@puppet-eli file]# rm -f /root/somefile
      [root@puppet-eli file]# puppet apply -e 'file { "/root/somefile": ensure=>file, content=>"hello" }'
      Notice: Compiled catalog for puppet-eli.localdomain in environment production in 0.11 seconds
      Notice: /Stage[main]/Main/File[/root/somefile]/ensure: defined content as '{md5}5d41402abc4b2a76b9719d911017c592'
      Notice: Finished catalog run in 0.26 seconds
      

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                eyoung@certifydatasystems.com Eli Young
                QA Contact:
                Kurt Wall
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: