Commit b1db79ba authored by mh's avatar mh
Browse files

introduce a simple wrapper, so other modules that work with puppetlabs'...

introduce a simple wrapper, so other modules that work with puppetlabs' module, also work with that one
parent a18c940b
# Configure an apt source
# this is a simple wrapper for the interface
# of puppetlabs' apt module.
define apt::source (
$ensure = 'present',
$location = undef,
$key = undef,
$include_src = undef,
){
apt::sources_list{
$name:
ensure => $ensure,
}
if $ensure == 'present' {
validate_string($location)
Apt::Source[$name]{
content => "deb ${location} ${lsbdistcodename} main
deb-src ${location} ${lsbdistcodename} main\n",
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment