Skip to content

Commit

Permalink
(node/azar03.cp.lsst.org) setup as tmp lsstcam-archiver.cp.lsst.org
Browse files Browse the repository at this point in the history
lsstcam-archiver.cp.lsst.org on esxi is being overwelmed by 10 dc nodes
and ssh connections are failing. @rhl & @a2 wanted to try a bare metal
node to see if it improves performance.
  • Loading branch information
jhoblitt committed Sep 18, 2024
1 parent 56412c7 commit f36a20c
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
19 changes: 19 additions & 0 deletions hieradata/node/azar03.cp.lsst.org.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,22 @@ nfs::client_mounts:
share: "scratch"
server: "nfs1.cp.lsst.org"
atboot: true
/data:
share: "lsstcam"
server: "nfs3.cp.lsst.org"
atboot: true

profile::core::k5login::k5login:
"/home/saluser/.k5login":
ensure: "present"
principals:
- "ccs-ipa/[email protected]"
- "ccs-ipa/[email protected]"
- "ccs-ipa/[email protected]"
- "ccs-ipa/[email protected]"
- "ccs-ipa/[email protected]"
- "ccs-ipa/[email protected]"
- "ccs-ipa/[email protected]"
- "ccs-ipa/[email protected]"
- "ccs-ipa/[email protected]"
- "ccs-ipa/[email protected]"
22 changes: 22 additions & 0 deletions spec/hosts/nodes/azar03.cp.lsst.org_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@
it { expect(nm_keyfile['ethernet']['mtu']).to eq(9000) }
end

it { is_expected.to contain_class('nfs').with_server_enabled(false) }
it { is_expected.to contain_class('nfs').with_client_enabled(true) }

it do
is_expected.to contain_nfs__client__mount('/net/project').with(
share: 'project',
Expand All @@ -97,6 +100,25 @@
atboot: true
)
end

it do
is_expected.to contain_nfs__client__mount('/data').with(
share: 'lsstcam',
server: 'nfs3.cp.lsst.org',
atboot: true
)
end

principals = 1.upto(10).map do |i|
format('ccs-ipa/lsstcam-dc%[email protected]', i)
end

it do
is_expected.to contain_k5login('/home/saluser/.k5login').with(
ensure: 'present',
principals:
)
end
end # on os
end # on_supported_os
end

0 comments on commit f36a20c

Please sign in to comment.