reformatted apt::ppa according to recommended
style. removed require apt in favor of marking a dependency. converted release define into a class since the resources are singletons.
This commit is contained in:
parent
d8a1e4ee9d
commit
18f614b89b
2 changed files with 5 additions and 6 deletions
|
@ -1,9 +1,8 @@
|
||||||
# ppa.pp
|
# ppa.pp
|
||||||
|
|
||||||
define apt::ppa(
|
define apt::ppa() {
|
||||||
|
|
||||||
) {
|
Class['apt'] -> Apt::Ppa[$title]
|
||||||
require apt
|
|
||||||
|
|
||||||
exec { "apt-update-${name}":
|
exec { "apt-update-${name}":
|
||||||
command => "/usr/bin/aptitude update",
|
command => "/usr/bin/aptitude update",
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
# release.pp
|
# release.pp
|
||||||
|
|
||||||
define apt::release (
|
class apt::release (
|
||||||
|
$release_id
|
||||||
) {
|
) {
|
||||||
|
|
||||||
owner => root,
|
owner => root,
|
||||||
group => root,
|
group => root,
|
||||||
mode => 644,
|
mode => 644,
|
||||||
content => "APT::Default-Release \"${name}\";"
|
|
||||||
}
|
}
|
||||||
include apt::params
|
include apt::params
|
||||||
|
|
||||||
file { "${apt::params::root}/apt.conf.d/01release":
|
file { "${apt::params::root}/apt.conf.d/01release":
|
||||||
|
content => "APT::Default-Release \"${release_id}\";"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue