From: nadir Date: Sat, 9 Oct 2010 12:39:11 +0000 (+0200) Subject: re-added apt::custom_sources_template to deploy custom sources.list.d/xyz.list X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=eae01000c1db8bcfa7de17b2a9a8370289b801bc;p=puppet-apt.git re-added apt::custom_sources_template to deploy custom sources.list.d/xyz.list --- diff --git a/manifests/custom_sources.pp b/manifests/custom_sources.pp new file mode 100644 index 0000000..cd7b8fc --- /dev/null +++ b/manifests/custom_sources.pp @@ -0,0 +1,10 @@ +define apt::custom_sources_template ($sources_file = "") { + file { "/etc/apt/sources.list.d/$sources_file": + content => template($name), + } + exec { "/usr/bin/apt-get update": + subscribe => File["/etc/apt/sources.list.d/$sources_file"], + refreshonly => true, + } + } + diff --git a/manifests/init.pp b/manifests/init.pp index 78ae6c5..9c33b4d 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -5,6 +5,8 @@ class apt { + import "custom_sources.pp" + # See README $real_apt_clean = $apt_clean ? { '' => 'auto',