feat: add ntp server/client

- add ntp client and server class
- add ntp server role
- update hiera.yaml to work with enc_role
- cleanup base profile
This commit is contained in:
2023-11-10 23:21:08 +11:00
parent 11508f2538
commit 9cb730d116
8 changed files with 105 additions and 12 deletions
+2 -4
View File
@@ -1,11 +1,8 @@
# this is the base class, which will be used by all servers
class profiles::base (
Array $ntp_servers,
Array $puppet_servers,
) {
class { 'chrony':
servers => $ntp_servers,
}
case $facts['os']['family'] {
'RedHat': {
include profiles::yum::global
@@ -31,6 +28,7 @@ class profiles::base (
include profiles::base::scripts
include profiles::base::hosts
include profiles::accounts::sysadmin
include profiles::ntp::client
# include the python class
class { 'python':