From eae01000c1db8bcfa7de17b2a9a8370289b801bc Mon Sep 17 00:00:00 2001 From: nadir Date: Sat, 9 Oct 2010 14:39:11 +0200 Subject: re-added apt::custom_sources_template to deploy custom sources.list.d/xyz.list --- manifests/custom_sources.pp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 manifests/custom_sources.pp (limited to 'manifests/custom_sources.pp') 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, + } + } + -- cgit v1.2.3