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

Exec resource can use facts comparison for onlyif and unless attributes

    Details

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

      Description

      Currently the onlyif and unless attribute for exec reference will only take a command and evaluate the command's exit code.

      Request to add the feature to check variable or Facts and compare the value with a string provided,

      exec { "some exec": 
      command => "/some/command", 
      onlyif => { $somefact == true }, 
      }
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              joshua.tee Joshuatly Tee
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support