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
This commit is contained in:
parent
89a0f329d8
commit
77d07672f8
@ -33,16 +33,19 @@ class profiles::nomad::node (
|
|||||||
|
|
||||||
if $client {
|
if $client {
|
||||||
|
|
||||||
include profiles::ceph::client
|
if $facts['virtual'] != 'lxc' {
|
||||||
|
include profiles::ceph::client
|
||||||
|
|
||||||
# manage the sharedvol
|
# manage the sharedvol
|
||||||
profiles::storage::cephfsvol {"${::facts['networking']['fqdn']}_nomad":
|
profiles::storage::cephfsvol {"${::facts['networking']['fqdn']}_nomad":
|
||||||
mount => $nomad_root,
|
mount => $nomad_root,
|
||||||
keyring => '/etc/ceph/ceph.client.nomad.keyring',
|
keyring => '/etc/ceph/ceph.client.nomad.keyring',
|
||||||
cephfs_name => 'nomad',
|
cephfs_name => 'nomad',
|
||||||
cephfs_fs => 'nomadfs',
|
cephfs_fs => 'nomadfs',
|
||||||
require => Profiles::Ceph::Keyring['nomad'],
|
require => Profiles::Ceph::Keyring['nomad'],
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
file { $data_dir:
|
file { $data_dir:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user