]> 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 a03085d512044edae65b764bfca9d330c4f96ffd..596eff5bec43862037728c496f0b9c4517756dd7 100644 (file)
@@ -15,15 +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://git.immae.eu/releases/packages/',
-    siglevel => 'Optional'
+    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"