diff options
-rw-r--r-- | manifests/arch_builder.pp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/manifests/arch_builder.pp b/manifests/arch_builder.pp index 85868e5..3ba9395 100644 --- a/manifests/arch_builder.pp +++ b/manifests/arch_builder.pp @@ -6,7 +6,12 @@ class profiles::arch_builder ( include ::profiles::repo include ::profiles::sudo - exec { '/usr/bin/pacman -Syu --noconfirm': + # Update package database early here, to ensure that our custom + # repos are available + Pacman::Repo <| |> -> Exec['pacman update'] -> Package <| |> + + exec { 'pacman update': + command => '/usr/bin/pacman -Syu --noconfirm'.split(' '), } ensure_packages([ |