apt::custom_sources_template to deploy custom sources.list.d/xyz.list

This commit is contained in:
nadir 2011-01-09 22:57:18 +01:00
parent 575e4ab9cc
commit 3c0499b78d
2 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1,10 @@
define apt::custom_sources_template ($sources_file = "") {
include apt::update
file { "/etc/apt/sources.list.d/$sources_file":
content => template($name),
notify => Exec['apt_updated']
}
}

View file

@ -5,6 +5,8 @@
class apt { class apt {
import "custom_sources.pp"
$use_volatile = $apt_volatile_enabled ? { $use_volatile = $apt_volatile_enabled ? {
'' => false, '' => false,
default => $apt_volatile_enabled, default => $apt_volatile_enabled,