From 77d07672f86261948f0fd1d9c2afbc301e23e0ff Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Thu, 22 May 2025 21:06:15 +1000 Subject: [PATCH] chore: dont mount cephfs inside lxc (#292) - lxc instances will have cephfs passed from the host - skip cephfs mounting for lxc instances Reviewed-on: https://git.query.consul/unkinben/puppet-prod/pulls/292 --- 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: