Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-2741

Noop attribute does not work with Concat resources

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: concat
    • Labels:
      None
    • Template:
    • Story Points:
      2
    • Sprint:
      MODS 2015-11-11

      Description

      I installed puppetlabs-concat on PE 3.7.0. Created a test module with concat resources and a file resource in init.pp:

      class testmod {
        $motd = '/etc/puppetlabs/puppet/test'
       
        concat { $motd:
          owner => 'root',
          group => 'root',
          noop  => false,
          mode  => '0644'
        }
       
        concat::fragment{ 'motd_header':
          target  => $motd,
          content => "\nPuppet modules on this server:\n\n",
          order   => '01',
          noop    => false,
        }
       
        file { '/tmp/test':
          ensure => present,
          noop   => false,
        }
      }
      

      Added noop = true to the puppet.conf:

      [main]
          noop = true
      

      Puppet run:

      [root@pe-370-master ~]# puppet agent -t
      Info: Retrieving pluginfacts
      Info: Retrieving plugin
      Info: Loading facts
      Info: Caching catalog for pe-370-master.puppetdebug.vlan
      Info: Applying configuration version '1444660451'
      Notice: /Stage[main]/Testmod/File[/tmp/test]/ensure: created
      Notice: /Stage[main]/Testmod/Concat[/etc/puppetlabs/puppet/test]/File[/etc/puppetlabs/puppet/test]/ensure: current_value absent, should be file (noop)
      Notice: Concat[/etc/puppetlabs/puppet/test]: Would have triggered 'refresh' from 1 events
      Notice: Finished catalog run in 5.82 seconds
      

      As you can see the file resource was created, but the concat resources were not. We also found that if puppet apply is used with --no-noop the concat resources will be applied.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bryan.jen Bryan Jen
              Reporter:
              kaitlin Kaitlin Carter
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support