diff options
| author | alex <alex@pdp7.net> | 2023-10-07 02:11:30 +0200 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2023-10-07 02:11:30 +0200 |
| commit | 7e6c9d2d87d1f388507206110820edec1aebe8bc (patch) | |
| tree | 78a8287af5382ec02f51f9631b65449a324eb2e4 /personal_infra/puppet | |
| parent | 185a32273998435a269f6772d3618defe42ef6ed (diff) | |
Properly enable tinc on EL9
Diffstat (limited to 'personal_infra/puppet')
| -rw-r--r-- | personal_infra/puppet/modules/tinc/manifests/init.pp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/personal_infra/puppet/modules/tinc/manifests/init.pp b/personal_infra/puppet/modules/tinc/manifests/init.pp index b83d9494..5ae78126 100644 --- a/personal_infra/puppet/modules/tinc/manifests/init.pp +++ b/personal_infra/puppet/modules/tinc/manifests/init.pp @@ -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}"], |
