summaryrefslogtreecommitdiff
path: root/manifests/custom_sources.pp
blob: 31d685a71ea1dbceb3031356c17ce619f5e81f1a (plain)
1
2
3
4
5
6
7
8
9
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,
    }
 }