Skip to content

Commit

Permalink
(node/observer01.cp.lsst.org) provision host as EL9 & add test
Browse files Browse the repository at this point in the history
  • Loading branch information
badenerb committed Nov 29, 2024
1 parent c4408e7 commit d7a3572
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
15 changes: 15 additions & 0 deletions hieradata/node/observer01.cp.lsst.org.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
nm::connections:
enp10s0:
content:
connection:
id: "enp10s0"
uuid: "d0b09602-d300-4485-b005-3851181ee549"
type: "ethernet"
interface-name: "enp10s0"
ethernet: {}
ipv4:
method: "auto"
ipv6:
method: "disabled"
proxy: {}
43 changes: 43 additions & 0 deletions spec/hosts/nodes/observer01.cp.lsst.org_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# frozen_string_literal: true

require 'spec_helper'

describe 'observer01.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: false,
virtual: 'physical',
dmi: {
'product' => {
'name' => 'MS-7E07',
},
})
end
let(:node_params) do
{
role: 'generic',
site: 'cp',
}
end

it { is_expected.to compile.with_all_deps }

include_examples 'baremetal no bmc'
include_context 'with nm interface'

it { is_expected.to have_nm__connection_resource_count(1) }

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

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 d7a3572

Please sign in to comment.