]> xn--ix-yja.es Git - alex.git/commitdiff
Use modern facts
authoralex <alex@pdp7.net>
Sun, 15 Jan 2023 19:45:26 +0000 (20:45 +0100)
committeralex <alex@pdp7.net>
Sun, 15 Jan 2023 19:45:26 +0000 (20:45 +0100)
personal_infra/puppet/modules/automatic_updates/manifests/init.pp

index c5d043fe45409619ffbdd9907c6b44655d7f7449..d5f0e6298f231f252ca7d1ae044df9fe27a18525 100644 (file)
@@ -1,5 +1,5 @@
 class automatic_updates {
-  if ($osfamily == 'Debian') {
+  if ($facts['os']['family'] == 'Debian') {
     package {["unattended-upgrades", "apt-listchanges"]:}
   }
 }