summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-01-25 17:01:46 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-02-09 18:06:31 +0100
commit2c56395822c667ae25cdbe882ae29ba41da6574c (patch)
tree3dc7c7443910f0e3652b1a3c58c5cce4a8c7a28c
parentRewrite syncthing profile to use module. (diff)
downloadprofiles-2c56395822c667ae25cdbe882ae29ba41da6574c.tar.gz
profiles-2c56395822c667ae25cdbe882ae29ba41da6574c.tar.xz
Ordering for arch_builder.
-rw-r--r--manifests/arch_builder.pp7
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([