Skip to content

Commit

Permalink
(node/sal-dx.cp) add el9 network configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
dtapiacl committed Jan 22, 2025
1 parent 73ec7d3 commit 0fdae50
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 5 deletions.
19 changes: 14 additions & 5 deletions hieradata/node/sal-dx.cp.lsst.org.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
---
network::interfaces_hash:
eth0:
bootproto: "dhcp"
onboot: "yes"
type: "Ethernet"
nm::connections:
ens192:
content:
connection:
id: "ens192"
uuid: "03da7500-2101-c722-2438-d0d006c28c73"
type: "ethernet"
interface-name: "ens192"
ethernet: {}
ipv4:
method: "auto"
ipv6:
method: "disabled"
proxy: {}
39 changes: 39 additions & 0 deletions spec/hosts/nodes/sal-dx.cp.lsst.org_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# frozen_string_literal: true

require 'spec_helper'

describe 'sal-dx.cp.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: true,
virtual: 'vmware',
dmi: {
'product' => {
'name' => 'VMware7,1',
},
})
end
let(:node_params) do
{
role: 'sal-dx',
site: 'cp',
}
end

it { is_expected.to compile.with_all_deps }

include_context 'with nm interface'
it { is_expected.to have_nm__connection_resource_count(1) }

Check failure on line 30 in spec/hosts/nodes/sal-dx.cp.lsst.org_spec.rb

View workflow job for this annotation

GitHub Actions / rake_checks

RSpec/EmptyLineAfterExample: Add an empty line after `it`. (https://rspec.rubystyle.guide/#empty-lines-around-examples, https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/EmptyLineAfterExample)
context 'with ens192' do
let(:interface) { 'ens192' }

Check failure on line 32 in spec/hosts/nodes/sal-dx.cp.lsst.org_spec.rb

View workflow job for this annotation

GitHub Actions / rake_checks

RSpec/EmptyLineAfterFinalLet: Add an empty line after the last `let`. (https://rspec.rubystyle.guide/#empty-line-after-let, https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/EmptyLineAfterFinalLet)
it_behaves_like 'nm enabled interface'
it_behaves_like 'nm ethernet interface'
it_behaves_like 'nm dhcp interface'
end
end # on os
end # on_supported_os
end

0 comments on commit 0fdae50

Please sign in to comment.