Skip to content

Commit b3898fa

Browse files
committed
(node/rucio01.cp.lsst.rg) add el9 network configuration
1 parent 3f6524e commit b3898fa

File tree

2 files changed

+86
-0
lines changed

2 files changed

+86
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
nm::connections:
3+
ens192:
4+
content:
5+
connection:
6+
id: "ens192"
7+
uuid: "fa2c1b82-c58c-3411-bdca-b701a08e2cc0"
8+
type: "ethernet"
9+
interface-name: "ens192"
10+
ethernet: {}
11+
ipv4:
12+
method: "auto"
13+
ipv6:
14+
method: "disabled"
15+
proxy: {}
16+
17+
nfs::client_enabled: true
18+
nfs::client_mounts:
19+
/repo/LATISS:
20+
share: "/auxtel/repo/LATISS"
21+
server: "nfs-auxtel.ls.lsst.org"
22+
atboot: true
23+
/datasets:
24+
share: "/lsstdata"
25+
server: "nfs-lsstdata.ls.lsst.org"
26+
atboot: true
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# frozen_string_literal: true
2+
3+
require 'spec_helper'
4+
5+
describe 'rucio01.ls.lsst.org', :sitepp do
6+
on_supported_os.each do |os, os_facts|
7+
next unless os =~ %r{almalinux-9-x86_64}
8+
9+
context "on #{os}" do
10+
let(:facts) do
11+
lsst_override_facts(os_facts,
12+
is_virtual: false,
13+
virtual: 'vmware',
14+
dmi: {
15+
'product' => {
16+
'name' => 'VMware7,1',
17+
},
18+
})
19+
end
20+
let(:node_params) do
21+
{
22+
role: 'rucio',
23+
site: 'ls',
24+
}
25+
end
26+
27+
it { is_expected.to compile.with_all_deps }
28+
29+
include_context 'with nm interface'
30+
31+
it { is_expected.to have_nm__connection_resource_count(1) }
32+
33+
context 'with ens192' do
34+
let(:interface) { 'ens192' }
35+
36+
it_behaves_like 'nm enabled interface'
37+
it_behaves_like 'nm dhcp interface'
38+
it_behaves_like 'nm ethernet interface'
39+
end
40+
41+
it { is_expected.to contain_class('nfs').with_client_enabled(true) }
42+
43+
it do
44+
is_expected.to contain_nfs__client__mount('/repo/LATISS').with(
45+
share: '/auxtel/repo/LATISS',
46+
server: 'nfs-auxtel.ls.lsst.org',
47+
atboot: true
48+
)
49+
end
50+
51+
it do
52+
is_expected.to contain_nfs__client__mount('/datasets').with(
53+
share: '/lsstdata',
54+
server: 'nfs-lsstdata.ls.lsst.org',
55+
atboot: true
56+
)
57+
end
58+
end
59+
end # on os
60+
end # on_supported_os

0 commit comments

Comments
 (0)