Support ability to add more than one PPA

This commit is contained in:
Scott McLeod 2011-04-17 21:43:33 -04:00
parent 420d537ac1
commit ed2d19e2f3
2 changed files with 8 additions and 8 deletions

View file

@ -4,6 +4,8 @@ class apt {
$root = '/etc/apt'
$provider = '/usr/bin/apt-get'
package { "python-software-properties": }
file { "sources.list":
name => "${root}/sources.list",
ensure => present,

View file

@ -3,18 +3,16 @@
define apt::ppa(
) {
include apt
require apt
package { "python-software-properties": }
exec { "apt-update":
command => "/usr/bin/apt-get update",
exec { "apt-update-${name}":
command => "/usr/bin/aptitude update",
refreshonly => true,
}
exec { "/usr/bin/add-apt-repository ${name}":
require => Package["python-software-properties"],
notify => Exec["apt-update"]
exec { "add-apt-repository-${name}":
command => "/usr/bin/add-apt-repository ${name}",
notify => Exec["apt-update-${name}"],
}
}