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

Output of notify message in simulation (noop) is not similar to enforcing notify message

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: PUP 5.3.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Template:
    • Agent OS:
      CentOS 6
    • Master OS:
      CentOS 6
    • Team:
      Coremunity

      Description

      During a Demo to a partner with the noop/enforcing of a simple comment field change the partner identified that the notify output of puppet apply --noop and without noop is not the same. With noop the value is in '' and in enforce not. Please see example output from my console:

      [root@centos6a ~]# cat root.pp
      user

      { 'root': ensure => 'present', comment => 'New value for root', }

      [root@centos6a ~]# puppet resource user root
      user

      { 'root': ensure => 'present', comment => 'root', gid => '0', home => '/root', password => '$1$v4K9E8Wj$gZIHJ5JtQL5ZGZXeqSSsd0', password_max_age => '99999', password_min_age => '0', shell => '/bin/bash', uid => '0', }

      [root@centos6a ~]# puppet apply root.pp --noop
      Notice: Compiled catalog for centos6a.pdx.puppetlabs.demo in environment production in 0.11 seconds
      Notice: /Stage[main]/Main/User[root]/comment: current_value root, should be New value for root (noop)
      Notice: Class[Main]: Would have triggered 'refresh' from 1 events
      Notice: Stage[main]: Would have triggered 'refresh' from 1 events
      Notice: Finished catalog run in 0.09 seconds
      [root@centos6a ~]# puppet apply root.pp
      Notice: Compiled catalog for centos6a.pdx.puppetlabs.demo in environment production in 0.13 seconds
      Notice: /Stage[main]/Main/User[root]/comment: comment changed 'root' to 'New value for root'
      Notice: Finished catalog run in 0.27 seconds

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                andreas.wilke Andreas Wilke
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Zendesk Support