Skip to content

Commit

Permalink
(node/auxtel-fp01.cp) add lhn interface
Browse files Browse the repository at this point in the history
  • Loading branch information
dtapiacl committed Jan 6, 2025
1 parent 3649910 commit 1534802
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
11 changes: 8 additions & 3 deletions hieradata/node/auxtel-fp01.cp.lsst.org.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,18 @@ nm::connections:
id: "eno3"
uuid: "5dcbb5a8-3425-4dff-a339-7a29e0b3a6c1"
type: "ethernet"
autoconnect: "false"
interface-name: "eno3"
ethernet: {}
ipv4:
method: "disabled"
address1: "139.229.181.74/29,139.229.181.78"
dns: "139.229.160.53;139.229.160.54;139.229.160.55;"
dns-search: "cp.lsst.org;"
method: "manual"
never-default: "true"
route1: "172.24.7.0/24,139.229.181.78"
ipv6:
method: "disabled"
method: "ignore"
proxy: {}
eno4:
content:
connection:
Expand Down
13 changes: 12 additions & 1 deletion spec/hosts/nodes/auxtel-fp01.cp.lsst.org_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@

%w[
eno2
eno3
].each do |i|
context "with #{i}" do
let(:interface) { i }
Expand Down Expand Up @@ -63,6 +62,18 @@
it { expect(nm_keyfile['ipv4']['address1']).to eq('192.168.100.251/24') }
end

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

it_behaves_like 'nm enabled interface'
it_behaves_like 'nm ethernet interface'
it { expect(nm_keyfile['ipv4']['address1']).to eq('139.229.181.74/29,139.229.181.78') }
it { expect(nm_keyfile['ipv4']['route1']).to eq('172.24.7.0/24,139.229.181.78') }
it { expect(nm_keyfile['ipv4']['dns']).to eq('139.229.160.53;139.229.160.54;139.229.160.55;') }
it { expect(nm_keyfile['ipv4']['dns-search']).to eq('cp.lsst.org;') }
it { expect(nm_keyfile['ipv4']['method']).to eq('manual') }
end

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

Expand Down

0 comments on commit 1534802

Please sign in to comment.