From 4718f204d37daac95b5cad0fe8341af6872f964d Mon Sep 17 00:00:00 2001 From: Diego Tapia <64498901+dtapia-IT@users.noreply.github.com> Date: Thu, 7 Nov 2024 16:44:41 -0300 Subject: [PATCH] (node/comcam-dc01.cp) add nfs mount and tests --- hieradata/node/comcam-dc01.cp.lsst.org.yaml | 7 +++++++ spec/hosts/nodes/comcam-dc01.cp.lsst.org_spec.rb | 16 ++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/hieradata/node/comcam-dc01.cp.lsst.org.yaml b/hieradata/node/comcam-dc01.cp.lsst.org.yaml index bae16910c8..6dd70a082b 100644 --- a/hieradata/node/comcam-dc01.cp.lsst.org.yaml +++ b/hieradata/node/comcam-dc01.cp.lsst.org.yaml @@ -102,3 +102,10 @@ nfs::client_mounts: share: "/ccs-data" server: "comcam-fp01.cp.lsst.org" atboot: true +nfs::client_enabled: true +nfs::nfs_v4_client: false +nfs::client_mounts: + /repo: + share: "/export/comcam/repo" + server: "nfs3.cp.lsst.org" + atboot: true diff --git a/spec/hosts/nodes/comcam-dc01.cp.lsst.org_spec.rb b/spec/hosts/nodes/comcam-dc01.cp.lsst.org_spec.rb index aba18dacb5..52952b1c98 100644 --- a/spec/hosts/nodes/comcam-dc01.cp.lsst.org_spec.rb +++ b/spec/hosts/nodes/comcam-dc01.cp.lsst.org_spec.rb @@ -85,6 +85,22 @@ it_behaves_like 'nm dhcp interface' it_behaves_like 'nm bridge interface' end + + it do + is_expected.to contain_nfs__client__mount('/net/ccs-data').with( + share: '/ccs-data', + server: 'comcam-fp01.cp.lsst.org', + atboot: true + ) + end + + it do + is_expected.to contain_nfs__client__mount('/repo').with( + share: '/export/comcam', + server: 'nfs3.cp.lsst.org', + atboot: true + ) + end end end # on os end # on_supported_os