Add call to apt-update after add-apt-repository in apt::ppa

This commit is contained in:
Ben Godfrey 2011-03-11 18:14:31 +00:00 committed by Ben Godfrey
parent 945be77019
commit 420d537ac1

View file

@ -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"]
}
}