From 0fd3ae29233c46ea072e6b228e93d262c2f1b2aa Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Thu, 24 Apr 2025 23:15:27 +1000 Subject: [PATCH] feat: lxc cannot use chronyd - ensure lxc nodes do not attempt to install chronyd - ensure chrony is removed --- hieradata/virtual/lxc.yaml | 3 +++ site/profiles/manifests/base.pp | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/hieradata/virtual/lxc.yaml b/hieradata/virtual/lxc.yaml index ed97d53..8309995 100644 --- a/hieradata/virtual/lxc.yaml +++ b/hieradata/virtual/lxc.yaml @@ -1 +1,4 @@ --- +profiles::packages::include: + chrony: + ensure: absent diff --git a/site/profiles/manifests/base.pp b/site/profiles/manifests/base.pp index 4ec5150..46df942 100644 --- a/site/profiles/manifests/base.pp +++ b/site/profiles/manifests/base.pp @@ -28,7 +28,9 @@ class profiles::base ( include profiles::base::groups include profiles::base::root include profiles::accounts::sysadmin - include profiles::ntp::client + if $facts['virtual'] != 'lxc' { + include profiles::ntp::client + } include profiles::dns::base include profiles::pki::vault include profiles::ssh::sign -- 2.47.3