mirror of https://github.com/zulip/zulip.git
24 lines
366 B
Puppet
24 lines
366 B
Puppet
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'),
|
|
}
|
|
|
|
}
|