Skip to content

Commit 9237119

Browse files
authored
Merge pull request #1835 from lsst-it/IT-6374/ccs-tu-data
(node/{auxtel,comcam}-fp01.tu) mv /ccs-data -> /data
2 parents b203d06 + 420ca7a commit 9237119

8 files changed

+45
-11
lines changed

hieradata/node/auxtel-dc01.tu.lsst.org.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,10 @@ nm::connections:
4343
ipv6:
4444
method: "disabled"
4545
proxy: {}
46+
47+
nfs::client_enabled: true
48+
nfs::client_mounts:
49+
/data:
50+
share: "data"
51+
server: "auxtel-fp01.tu.lsst.org"
52+
atboot: true

hieradata/node/auxtel-fp01.tu.lsst.org.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ nfs::nfs_v4_export_root_clients: >-
5050
%{facts.networking.ip}/32(ro,fsid=root,insecure,no_subtree_check,async,root_squash)
5151
auxtel-mcm.tu.lsst.org(ro,fsid=root,insecure,no_subtree_check,async,root_squash)
5252
nfs::nfs_exports_global:
53-
/ccs-data:
53+
/data:
5454
clients: >-
5555
%{facts.networking.ip}/32(ro,nohide,insecure,no_subtree_check,async,root_squash)
5656
auxtel-mcm.tu.lsst.org(ro,nohide,insecure,no_subtree_check,async,root_squash)
5757
5858
nfs::client_enabled: true
5959
nfs::client_mounts:
60-
/net/self/ccs-data:
61-
share: "ccs-data"
60+
/net/self/data:
61+
share: "data"
6262
server: "%{facts.networking.fqdn}"
6363
atboot: true
6464

hieradata/node/comcam-dc01.tu.lsst.org.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ nm::connections:
4646

4747
nfs::client_enabled: true
4848
nfs::client_mounts:
49-
/net/ccs-data:
50-
share: "ccs-data"
49+
/data:
50+
share: "data"
5151
server: "comcam-fp01.tu.lsst.org"
5252
atboot: true

hieradata/node/comcam-fp01.tu.lsst.org.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ nfs::nfs_v4_export_root_clients: >-
4949
%{facts.networking.ip}/32(ro,fsid=root,insecure,no_subtree_check,async,root_squash)
5050
comcam-dc01.tu.lsst.org(ro,fsid=root,insecure,no_subtree_check,async,root_squash)
5151
nfs::nfs_exports_global:
52-
/ccs-data:
52+
/data:
5353
clients: >-
5454
%{facts.networking.ip}/32(ro,nohide,insecure,no_subtree_check,async,root_squash)
5555
comcam-dc01.tu.lsst.org(ro,nohide,insecure,no_subtree_check,async,root_squash)
5656
5757
nfs::client_enabled: true
5858
nfs::client_mounts:
59-
/net/self/ccs-data:
60-
share: "ccs-data"
59+
/net/self/data:
60+
share: "data"
6161
server: "%{facts.networking.fqdn}"
6262
atboot: true
6363

spec/hosts/nodes/auxtel-dc01.tu.lsst.org_spec.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@
5757
it_behaves_like 'nm bridge interface'
5858
it { expect(nm_keyfile['ipv4']['ignore-auto-dns']).to be true }
5959
end
60+
61+
it do
62+
is_expected.to contain_nfs__client__mount('/data').with(
63+
share: 'data',
64+
server: 'auxtel-fp01.tu.lsst.org',
65+
atboot: true
66+
)
67+
end
6068
end # on os
6169
end # on_supported_os
6270
end

spec/hosts/nodes/auxtel-fp01.tu.lsst.org_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@
8989
end
9090

9191
it { is_expected.to contain_class('nfs::server').with_nfs_v4(true) }
92-
it { is_expected.to contain_nfs__server__export('/ccs-data') }
92+
it { is_expected.to contain_nfs__server__export('/data') }
9393

9494
it do
95-
is_expected.to contain_nfs__client__mount('/net/self/ccs-data').with(
96-
share: 'ccs-data',
95+
is_expected.to contain_nfs__client__mount('/net/self/data').with(
96+
share: 'data',
9797
server: 'auxtel-fp01.tu.lsst.org',
9898
atboot: true
9999
)

spec/hosts/nodes/comcam-dc01.tu.lsst.org_spec.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@
5858
it_behaves_like 'nm bridge interface'
5959
it { expect(nm_keyfile['ipv4']['ignore-auto-dns']).to be true }
6060
end
61+
62+
it do
63+
is_expected.to contain_nfs__client__mount('/data').with(
64+
share: 'data',
65+
server: 'comcam-fp01.tu.lsst.org',
66+
atboot: true
67+
)
68+
end
6169
end # on os
6270
end # on_supported_os
6371
end

spec/hosts/nodes/comcam-fp01.tu.lsst.org_spec.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,17 @@
9090
it { is_expected.to contain_service('comcam-fp') }
9191
it { is_expected.to contain_service('comcam-ih') }
9292
it { is_expected.to contain_service('h2db') }
93+
94+
it { is_expected.to contain_class('nfs::server').with_nfs_v4(true) }
95+
it { is_expected.to contain_nfs__server__export('/data') }
96+
97+
it do
98+
is_expected.to contain_nfs__client__mount('/net/self/data').with(
99+
share: 'data',
100+
server: 'comcam-fp01.tu.lsst.org',
101+
atboot: true
102+
)
103+
end
93104
end # on os
94105
end # on_supported_os
95106
end

0 commit comments

Comments
 (0)