summaryrefslogtreecommitdiff
path: root/manifests/custom_sources.pp
blob: cd7b8fcfe0ca54c864350a1ddb601b7b71f8d92a (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,            
    }
 }