diff --git a/hieradata/node/observer01.cp.lsst.org.yaml b/hieradata/node/observer01.cp.lsst.org.yaml new file mode 100644 index 0000000000..08be4b0098 --- /dev/null +++ b/hieradata/node/observer01.cp.lsst.org.yaml @@ -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: {} diff --git a/spec/hosts/nodes/observer01.cp.lsst.org_spec.rb b/spec/hosts/nodes/observer01.cp.lsst.org_spec.rb new file mode 100644 index 0000000000..012f5300c3 --- /dev/null +++ b/spec/hosts/nodes/observer01.cp.lsst.org_spec.rb @@ -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