zulip/puppet/puppet-apt/manifests/ppa.pp

24 lines
366 B
ObjectPascal
Raw Normal View History

define apt::ppa (
$key,
$ensure = present,
$ppa ='ppa'
) {
apt::key {$key:
ensure => $ensure,
}
$ppa_name = inline_template("<%=
if ppa.is_a?(Array)
ppa.join('-')
else
ppa
end %>")
apt::sources_list {"${name}-${ppa_name}-${lsbdistcodename}":
ensure => $ensure,
content => template('apt/ppa-list.erb'),
}
}