diff options
author | nadir <nadir-technik@nadir.org> | 2011-01-09 22:57:18 +0100 |
---|---|---|
committer | nadir <nadir-technik@nadir.org> | 2011-01-09 22:57:18 +0100 |
commit | 3c0499b78d1f671fcce13127ef14b1b662a48c5a (patch) | |
tree | 05ddb3e8bc9ca49dafbc8e496f28f62cba2a67c4 /manifests/custom_sources.pp | |
parent | 575e4ab9ccfc9933a35f79deba8651b7eec8a0cb (diff) |
apt::custom_sources_template to deploy custom sources.list.d/xyz.list
Diffstat (limited to 'manifests/custom_sources.pp')
-rw-r--r-- | manifests/custom_sources.pp | 10 |
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'] + } +} + |