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

Add a parameter to the exec resource to support running commands in software collections without always using "scl enable"

    Details

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

      Description

      Software collections is an RPM integrated vendorization tool that's starting to get more and more widely used + supported. To run a command in the software collection (SCL), you need to run `scl enable <collection name> 'command'`. For example, if you want to install a gem into a SCL named "ruby193," you'd run `scl enable ruby193 '/usr/bin/gem install sinatra'`. Here's what I'm proposing:

      exec { 'install sinatra':
        command => '/usr/bin/gem install sinatra',
        unless  => 'gem list | grep sinatra',
        scl     => 'ruby193'
      }
      

      The presence of the SCL parameter means that all of the other parameters that involve system calls would get executed inside of a session in the SCL name that's provided.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              redmine.exporter redmine.exporter
            • Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support