]> xn--ix-yja.es Git - alex.git/commitdiff
Add molly, adapt to trixie
authorroot <root@molly.ipa.pdp7.net>
Sun, 10 Aug 2025 13:37:47 +0000 (15:37 +0200)
committeralexpdp7 <alex@corcoles.net>
Sun, 10 Aug 2025 13:40:21 +0000 (15:40 +0200)
personal_infra/puppet/modules/basic_software/manifests/init.pp
personal_infra/puppet/site/molly.ipa.pdp7.net.pp [new file with mode: 0644]

index 2452f9825654a06ce7c9ab4c3bf5e097b623ed7a..54b5a3ed9bc1dec99dcf67944b7560c1dc8d4e3f 100644 (file)
@@ -1,5 +1,5 @@
 class basic_software {
-  package {['less', 'mlocate', 'traceroute', 'nmap', 'tree', 'tar', 'screen', 'git', 'net-tools', 'pipx', 'rsync', 'bash-completion', 'moreutils']:}
+  package {['less', 'traceroute', 'nmap', 'tree', 'tar', 'screen', 'git', 'net-tools', 'pipx', 'rsync', 'bash-completion', 'moreutils']:}
 
   if($facts['os']['family'] == 'RedHat') {
     package {'which':}
@@ -13,17 +13,22 @@ class basic_software {
   }
 
   if ($facts['os']['family'] == 'Debian') {
-    file {'/etc/apt/preferences.d/90_emacs':
-      content => @(EOT)
-      Package: src:emacs
-      Pin: release n=bookworm-backports
-      Pin-Priority: 990
-      | EOT
-      ,
-    }
-    ~>
-    Exec["/usr/bin/apt update"]
-    ->
     package {'emacs-nox':}
+    if ($facts['os']['release']['major'] == 12) {
+      file {'/etc/apt/preferences.d/90_emacs':
+        content => @(EOT)
+        Package: src:emacs
+        Pin: release n=bookworm-backports
+        Pin-Priority: 990
+        | EOT
+        ,
+      }
+      ~>
+      Exec["/usr/bin/apt update"]
+      ->
+      Package['emacs-nox']
+
+      package {'mlocate':}
+    }
   }
 }
diff --git a/personal_infra/puppet/site/molly.ipa.pdp7.net.pp b/personal_infra/puppet/site/molly.ipa.pdp7.net.pp
new file mode 100644 (file)
index 0000000..f386483
--- /dev/null
@@ -0,0 +1,5 @@
+node 'molly.ipa.pdp7.net' {
+  class {'workstation':}
+  class {'steam':}
+  package {['nextcloud-desktop']:}
+}