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

Specifying --tags doesn't cause suitability check to be skipped for skipped resources

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 3.7.1
    • Component/s: None
    • Labels:
      None
    • Template:
    • Sprint:
      Platform 2014-09-17

      Description

      Puppet checks that providers are suitable, e.g. see this snippet (expected to fail on a non-hpux install)

      puppet apply -e 'user { "snoopy": ensure => present, provider => hpuxuseradd }'
      Notice: Compiled catalog for kylo.corp.puppetlabs.net in environment production in 0.23 seconds
      Error: /User[snoopy]: Provider hpuxuseradd is not functional on this host
      Notice: Finished catalog run in 0.02 seconds
      

      It's reasonable to think that specifying --tags to exclude the resource would skip this suitability check, but that's not the case. Note that the following snippet still fails:

      puppet apply -e 'user { "snoopy": ensure => present, provider => hpuxuseradd }' --tags do_nothing
      Notice: Compiled catalog for kylo.corp.puppetlabs.net in environment production in 0.21 seconds
      Error: /User[snoopy]: Provider hpuxuseradd is not functional on this host
      Notice: Finished catalog run in 0.02 seconds
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              kylo Kylo Ginsberg
              QA Contact:
              Eric Thompson
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support