-
Type:
New Feature
-
Status: Ready for Review
-
Priority:
Normal
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Template:customfield_10700 21439
-
Team:Night's Watch
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!