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

concat : resource metaparameter noop don't work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: concat
    • Labels:
    • Environment:

      Tested with puppetlabs/concat 4.1.1

      PE 2017.3.2 (agent 5.3.3)

      PE 2017.3.5 (agent 5.3.5)

      Tested running with puppet agent and directly with puppet apply

    • Template:
      MODULES Bug Template
    • Acceptance Criteria:
      Hide

      The file /tmp/test should be created and populated with data.

      Show
      The file /tmp/test should be created and populated with data.
    • Team:
      Modules
    • Method Found:
      Needs Assessment
    • CS Priority:
      Normal
    • CS Frequency:
      2 - 5-25% of Customers
    • CS Severity:
      3 - Serious
    • CS Business Value:
      4 - $$$$$
    • CS Impact:
      The documentation (https://puppet.com/docs/puppet/5.3/metaparameter.html#noop) indicates that the resource level noop setting should take precedence over the global noop.
    • QA Risk Assessment:
      Needs Assessment

      Description

      Running with noop=true in puppet.conf and using the resource metaparameter noop => false as described here (https://puppet.com/docs/puppet/5.3/metaparameter.html#noop)

      concat_file and concat_fragment will not respect the noop => false configured as metaparameter.
      Standard resource like puppet work correctly.

        file {'/tmp/filenoop':
          ensure => file,
          noop   => false,
        }
        concat_file{'test':
          ensure => present,
          path   => '/tmp/test',
          noop   => false,
        }
        concat_fragment{ 'test01':
          target  => 'test',
          content => 'test',
          order   => '10',
          tag     => 'test',
          noop    => false,
        }
      
      

      Result of the puppet apply (the resource is still run in noop)

      [root@redhat7agent vagrant_puppet]# puppet apply --modulepath modules testapply/concatok.pp
      Notice: Compiled catalog for redhat7agent.q8inttest.com in environment production in 0.24 seconds
      Notice: /Stage[main]/Main/File[/tmp/filenoop]/ensure: created
      Notice: /Stage[main]/Main/File[/tmp/test]/ensure: current_value 'absent', should be 'file' (noop)
      Notice: test: Would have triggered 'refresh' from 1 event
      Notice: Class[Main]: Would have triggered 'refresh' from 3 events
      Notice: Stage[main]: Would have triggered 'refresh' from 1 event
      Notice: Applied catalog in 0.08 seconds
      

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              hunter Hunter (Hunner) Haugen
              Reporter:
              fduranti Francesco Duranti
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support