apt::custom_sources_template to deploy custom sources.list.d/xyz.list
This commit is contained in:
parent
575e4ab9cc
commit
3c0499b78d
2 changed files with 12 additions and 0 deletions
10
manifests/custom_sources.pp
Normal file
10
manifests/custom_sources.pp
Normal 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']
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue