Add call to apt-update after add-apt-repository in apt::ppa
This commit is contained in:
parent
945be77019
commit
420d537ac1
1 changed files with 9 additions and 4 deletions
|
@ -7,9 +7,14 @@ define apt::ppa(
|
||||||
|
|
||||||
package { "python-software-properties": }
|
package { "python-software-properties": }
|
||||||
|
|
||||||
exec { "/usr/bin/add-apt-repository ${name}":
|
exec { "apt-update":
|
||||||
require => Package["python-software-properties"],
|
command => "/usr/bin/apt-get update",
|
||||||
# TODO: unless => 'check'
|
refreshonly => true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
exec { "/usr/bin/add-apt-repository ${name}":
|
||||||
|
require => Package["python-software-properties"],
|
||||||
|
notify => Exec["apt-update"]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue