Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Support ability to add more than one PPA

  • Loading branch information...
commit ed2d19e2f3aa025871ec8334d48db53b800a91f2 1 parent 420d537
Scott McLeod authored
Showing with 8 additions and 8 deletions.
  1. +2 −0  manifests/init.pp
  2. +6 −8 manifests/ppa.pp
View
2  manifests/init.pp
@@ -4,6 +4,8 @@
$root = '/etc/apt'
$provider = '/usr/bin/apt-get'
+ package { "python-software-properties": }
+
file { "sources.list":
name => "${root}/sources.list",
ensure => present,
View
14 manifests/ppa.pp
@@ -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}"],
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.