-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(node/rucio01.cp.lsst.rg) add el9 network configuration
- Loading branch information
Showing
2 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
nm::connections: | ||
ens192: | ||
content: | ||
connection: | ||
id: "ens192" | ||
uuid: "fa2c1b82-c58c-3411-bdca-b701a08e2cc0" | ||
type: "ethernet" | ||
interface-name: "ens192" | ||
ethernet: {} | ||
ipv4: | ||
method: "auto" | ||
ipv6: | ||
method: "disabled" | ||
proxy: {} | ||
|
||
nfs::client_enabled: true | ||
nfs::client_mounts: | ||
/repo/LATISS: | ||
share: "/auxtel/repo/LATISS" | ||
server: "nfs-auxtel.ls.lsst.org" | ||
atboot: true | ||
/datasets: | ||
share: "/lsstdata" | ||
server: "nfs-lsstdata.ls.lsst.org" | ||
atboot: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'spec_helper' | ||
|
||
describe 'rucio01.ls.lsst.org', :sitepp do | ||
on_supported_os.each do |os, os_facts| | ||
next unless os =~ %r{almalinux-9-x86_64} | ||
|
||
context "on #{os}" do | ||
let(:facts) do | ||
lsst_override_facts(os_facts, | ||
is_virtual: false, | ||
virtual: 'vmware', | ||
dmi: { | ||
'product' => { | ||
'name' => 'VMware7,1', | ||
}, | ||
}) | ||
end | ||
let(:node_params) do | ||
{ | ||
role: 'rucio', | ||
site: 'ls', | ||
} | ||
end | ||
|
||
it { is_expected.to compile.with_all_deps } | ||
|
||
include_context 'with nm interface' | ||
|
||
it { is_expected.to have_nm__connection_resource_count(1) } | ||
|
||
context 'with ens192' do | ||
let(:interface) { 'ens192' } | ||
|
||
it_behaves_like 'nm enabled interface' | ||
it_behaves_like 'nm dhcp interface' | ||
it_behaves_like 'nm ethernet interface' | ||
end | ||
|
||
it { is_expected.to contain_class('nfs').with_client_enabled(true) } | ||
|
||
it do | ||
is_expected.to contain_nfs__client__mount('/repo/LATISS').with( | ||
share: '/auxtel/repo/LATISS', | ||
server: 'nfs-auxtel.ls.lsst.org', | ||
atboot: true | ||
) | ||
end | ||
|
||
it do | ||
is_expected.to contain_nfs__client__mount('/datasets').with( | ||
share: '/lsstdata', | ||
server: 'nfs-lsstdata.ls.lsst.org', | ||
atboot: true | ||
) | ||
end | ||
end | ||
end # on os | ||
end # on_supported_os |