feat: create ntp consul service

- create consul policy for ntp servers
- add consul service check and check script
This commit is contained in:
2024-06-02 19:23:39 +10:00
parent cc7165055d
commit da3444e49f
3 changed files with 35 additions and 0 deletions
+8
View File
@@ -35,5 +35,13 @@ class profiles::ntp::server (
queryhosts => $allowquery,
}
}
file {'/usr/local/bin/check_ntp.sh':
ensure => 'file',
owner => 'root',
group => 'root',
mode => '0644',
content => template('profiles/ntp/check_ntp.sh.erb'),
}
}
}