Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(node/auxtel-dc01.cp) add EL9 network configuration & tests #1588

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 27 additions & 29 deletions hieradata/node/auxtel-dc01.cp.lsst.org.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,32 @@
---
network::interfaces_hash:
em1: # dds
bootproto: "dhcp"
defroute: "no"
nozeroconf: "yes"
onboot: "yes"
type: "Ethernet"
em2: # fqdn *and* ccs-auxtel
bootproto: "dhcp"
defroute: "yes"
nozeroconf: "yes"
onboot: "yes"
type: "Ethernet"
em3: # not connected
bootproto: "none"
onboot: "no"
type: "Ethernet"
em4: # not connected
bootproto: "none"
onboot: "no"
type: "Ethernet"
nm::connections:
eno1: # fqdn
content:
connection:
id: "eno1"
uuid: "354bf22a-2048-4ac3-8c70-b161fe052d00"
type: "ethernet"
interface-name: "eno1"
ethernet: {}
ipv4:
method: "auto"
ipv6:
method: "disabled"
proxy: {}

network::mroutes_hash:
em1:
routes:
"139.229.147.0/24": "139.229.170.254"
"139.229.166.0/24": "139.229.170.254"
"139.229.167.0/24": "139.229.170.254"
#"139.229.170.0/24": "139.229.170.254"
"139.229.178.0/24": "139.229.170.254"
eno2:
content:
connection:
id: "eno2"
uuid: "116172cd-60a2-4ce4-b125-47028a79e0da"
type: "ethernet"
autoconnect: "false"
interface-name: "eno2"
ethernet: {}
ipv4:
method: "disabled"
ipv6:
method: "disabled"

nfs::client_enabled: true

Expand Down
30 changes: 25 additions & 5 deletions spec/hosts/nodes/auxtel-dc01.cp.lsst.org_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,28 @@

it { is_expected.to compile.with_all_deps }

include_examples 'baremetal'
include_context 'with nm interface'
it { is_expected.to have_nm__connection_resource_count(2) }

%w[
eno2
].each do |i|
context "with #{i}" do
let(:interface) { i }

it_behaves_like 'nm disabled interface'
end
end

context 'with eno1' do
let(:interface) { 'eno1' }

it_behaves_like 'nm enabled interface'
it_behaves_like 'nm dhcp interface'
it_behaves_like 'nm ethernet interface'
end

it do
is_expected.to contain_s3daemon__instance('cp-latiss').with(
s3_endpoint_url: 'https://s3.cp.lsst.org',
Expand All @@ -43,8 +65,6 @@
)
end

include_examples 'baremetal'

it do
is_expected.to contain_nfs__client__mount('/data').with(
share: 'data',
Expand All @@ -60,6 +80,6 @@
atboot: true
)
end
end # on os
end # on_supported_os
end # role
end
end # on os
end # on_supported_os
Loading