aboutsummaryrefslogtreecommitdiff
path: root/manifests/custom_sources.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2011-04-23 10:50:53 -0400
committerMicah Anderson <micah@riseup.net>2011-04-23 10:50:53 -0400
commit11324d6057b78814ed54d4b69da38af3304e1c70 (patch)
tree858ba34a68ae2ae6557d0ca933225520ef1ed97e /manifests/custom_sources.pp
parent9354f09460aba2eb22ad8fd0464729a5ef9b216d (diff)
parent5964e90e335473844f2474efe6590c0218a8e7f2 (diff)
downloadpuppet-apt-11324d6057b78814ed54d4b69da38af3304e1c70.tar.gz
puppet-apt-11324d6057b78814ed54d4b69da38af3304e1c70.tar.bz2
Merge remote-tracking branch 'nadir/master'
Diffstat (limited to 'manifests/custom_sources.pp')
-rw-r--r--manifests/custom_sources.pp10
1 files changed, 10 insertions, 0 deletions
diff --git a/manifests/custom_sources.pp b/manifests/custom_sources.pp
new file mode 100644
index 0000000..d0c020a
--- /dev/null
+++ b/manifests/custom_sources.pp
@@ -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']
+ }
+}
+