From: Ben Godfrey Date: Fri, 11 Mar 2011 18:14:31 +0000 (+0000) Subject: Add call to apt-update after add-apt-repository in apt::ppa X-Git-Tag: 0.0.1~34 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=420d537ac17ded4dc383c4004bf636103d03a852;p=puppet-modules%2Fpuppetlabs-apt.git Add call to apt-update after add-apt-repository in apt::ppa --- diff --git a/manifests/ppa.pp b/manifests/ppa.pp index c9ab955..2821051 100644 --- a/manifests/ppa.pp +++ b/manifests/ppa.pp @@ -7,9 +7,14 @@ define apt::ppa( package { "python-software-properties": } - exec { "/usr/bin/add-apt-repository ${name}": - require => Package["python-software-properties"], - # TODO: unless => 'check' - } + exec { "apt-update": + command => "/usr/bin/apt-get update", + refreshonly => true, + } + + exec { "/usr/bin/add-apt-repository ${name}": + require => Package["python-software-properties"], + notify => Exec["apt-update"] + } }