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

Requesting new feature for notify messages

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      RHEL6, 7, Centos7

    • Template:
    • QA Risk Assessment:
      Needs Assessment

      Description

      Currently there is not a good way to have a catalog fail but continue compiling the catalog.  The options we have been given are to either use one of the 2 options which isn't ideal

      This will come back with an error but would like to have a notify value that provides an error, this is for testing and also if a new node doesn't get provisioned properly:

        notify { 'this should fail': }
        -> exec { '/bin/false': }

      The following will come back with an error 500 and stops compiling 

      fail("There are no classes assigned to ${facts['fqdn']} please contact someone!!!")

      We want to have an option where it continues to process but shows a failure message, example

      test_fail("There are no classes assigned to $(facts['fqdn']} please contact someone!!!")

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              pxm2433 Patrick Mayes
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support