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

Package/source should accept puppet:// files

    Details

    • Template:
    • Team:
      Platform OS

      Description

      Sometimes you need to use backported packages on debian-like system (we could easily imagine use cases for other platforms). In work/production environments, it's quite rare to have directly access to the Internet for security reasons. So "package" type should accept a "source" located on the puppet master file server, whereas it only accepts local packages for the moment.

      Said differently, I'd like to turn this kind of awful recipe :

      class apache2-passenger {
        package {"libapache2-mod-passenger":
          ensure => installed,
          provider => dpkg,
          source => "/tmp/mod-passenger.deb"
          require => File[tmp-passenger]
        }
        file {"tmp-passenger":
          name => "/tmp/mod-passenger.deb",
          owner => root,
          group => root,
          source => "puppet:///files/redmine/libapache2-mod-passenger_2.2.11debian-1~bpo50+1_i386.deb"
        }
      }
      


      Into something like this :

      class apache2-passenger {
        package {"libapache2-mod-passenger":
          ensure => installed,
          provider => dpkg,
          source => "puppet:///files/passenger/libapache2-mod-passenger_2.2.11debian-1~bpo50+1_i386.deb"
        }
      }
      

      Let me know your opinion about that. Thanks!

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:

                  Zendesk Support