]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blobdiff - modules/base_installation/manifests/package_managers.pp
Change release url
[perso/Immae/Projets/Puppet.git] / modules / base_installation / manifests / package_managers.pp
index c5c848524f5ad63695cbd7334b3bbc528e5b2878..596eff5bec43862037728c496f0b9c4517756dd7 100644 (file)
@@ -15,9 +15,22 @@ class base_installation::package_managers inherits base_installation {
 
   pacman::repo { 'multilib':
     order   => 15,
-    include => '/etc/pacman.d/mirrorlist'
+    include => '/etc/pacman.d/mirrorlist',
   }
 
+  pacman::repo { 'immae':
+    order    => 0,
+    server   => 'https://release.immae.eu/packages/',
+    siglevel => 'Optional',
+  }
+
+  exec { "refresh pacman":
+    command     => "/usr/bin/pacman -Sy",
+    refreshonly => true,
+  }
+
+  Concat["/etc/pacman.conf"] ~> Exec["refresh pacman"] -> Package <| name != "pacman" |>
+
   class { 'aur': }
 
   contain "pacman"