]> xn--ix-yja.es Git - alex.git/commitdiff
Fix fact usage
authoralex <alex@pdp7.net>
Tue, 31 Jan 2023 22:47:13 +0000 (23:47 +0100)
committeralex <alex@pdp7.net>
Tue, 31 Jan 2023 23:30:30 +0000 (00:30 +0100)
personal_infra/puppet/modules/tinc/manifests/init.pp

index fc70a31c08f6c20763fc1a5bd1002e2ab56c863b..8e6dfe17214137dcc803beb0beeb760fecfebfef 100644 (file)
@@ -61,7 +61,7 @@ cat /etc/ansible/tinc/public_${location['address']}.pem >>/etc/tinc/${tinc_name}
     notify => Service["tinc@${tinc_name}"],
   }
 
-  if ($osfamily == 'RedHat') {
+  if ($facts['os']['family'] == 'RedHat') {
     exec {'open firewall for tinc':
       command => '/usr/bin/firewall-cmd --permanent --add-port=655/{tcp,udp}',
       unless => '/usr/bin/firewall-cmd --query-port=655/udp',