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