From c344f9a7e775a71c8901579a1e5328735ac44237 Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Thu, 22 May 2025 21:03:04 +1000 Subject: [PATCH] chore: dont mount cephfs inside lxc - lxc instances will have cephfs passed from the host - skip cephfs mounting for lxc instances --- site/profiles/manifests/nomad/node.pp | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/site/profiles/manifests/nomad/node.pp b/site/profiles/manifests/nomad/node.pp index 942b596..dfc33ff 100644 --- a/site/profiles/manifests/nomad/node.pp +++ b/site/profiles/manifests/nomad/node.pp @@ -33,16 +33,19 @@ class profiles::nomad::node ( if $client { - include profiles::ceph::client + if $facts['virtual'] != 'lxc' { + include profiles::ceph::client - # manage the sharedvol - profiles::storage::cephfsvol {"${::facts['networking']['fqdn']}_nomad": - mount => $nomad_root, - keyring => '/etc/ceph/ceph.client.nomad.keyring', - cephfs_name => 'nomad', - cephfs_fs => 'nomadfs', - require => Profiles::Ceph::Keyring['nomad'], + # manage the sharedvol + profiles::storage::cephfsvol {"${::facts['networking']['fqdn']}_nomad": + mount => $nomad_root, + keyring => '/etc/ceph/ceph.client.nomad.keyring', + cephfs_name => 'nomad', + cephfs_fs => 'nomadfs', + require => Profiles::Ceph::Keyring['nomad'], + } } + } file { $data_dir: -- 2.47.3