]> xn--ix-yja.es Git - alex.git/commitdiff
Properly enable tinc on EL9
authoralex <alex@pdp7.net>
Sat, 7 Oct 2023 00:11:30 +0000 (02:11 +0200)
committeralex <alex@pdp7.net>
Sat, 7 Oct 2023 00:11:30 +0000 (02:11 +0200)
personal_infra/puppet/modules/tinc/manifests/init.pp

index b83d9494fd9496f327792b84ca2b92edcd9b592e..5ae781265c574bce586d21aa78a8140c1bab8a4e 100644 (file)
@@ -56,6 +56,12 @@ cat /etc/ansible/tinc/public_${location['address']}.pem >>/etc/tinc/${tinc_name}
     enable => true,
   }
 
+  if($facts['os']['family'] == 'RedHat' and $facts['os']['release']['major'] == '9') {
+    service {"tinc":
+      ensure => running,
+      enable => true,
+    }
+  }
   exec {"/bin/cp /etc/ansible/tinc/private.pem /etc/tinc/${tinc_name}/rsa_key.priv":
     creates => "/etc/tinc/${tinc_name}/rsa_key.priv",
     require => File["/etc/tinc/${tinc_name}"],