Skip to content

Commit

Permalink
Merge pull request #1165 from lsst-it/IT-5369/lsstcam-aio056
Browse files Browse the repository at this point in the history
 (node/lsstcam-aio0[56].cp) fwv
  • Loading branch information
jhoblitt authored May 21, 2024
2 parents 1f061cc + b761d8c commit f68b84c
Show file tree
Hide file tree
Showing 4 changed files with 120 additions and 0 deletions.
15 changes: 15 additions & 0 deletions hieradata/node/lsstcam-aio05.cp.lsst.org.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
nm::connections:
enp0s31f6:
content:
connection:
id: "enp0s31f6"
uuid: "b93cc6e9-e4ba-4905-8e07-363ce3b90e28"
type: "ethernet"
interface-name: "enp0s31f6"
ethernet: {}
ipv4:
method: "auto"
ipv6:
method: "disabled"
proxy: {}
15 changes: 15 additions & 0 deletions hieradata/node/lsstcam-aio06.cp.lsst.org.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
nm::connections:
enp0s31f6:
content:
connection:
id: "enp0s31f6"
uuid: "b93cc6e9-e4ba-4905-8e07-363ce3b90e28"
type: "ethernet"
interface-name: "enp0s31f6"
ethernet: {}
ipv4:
method: "auto"
ipv6:
method: "disabled"
proxy: {}
45 changes: 45 additions & 0 deletions spec/hosts/nodes/lsstcam-aio05.cp.lsst.org_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# frozen_string_literal: true

require 'spec_helper'

describe 'lsstcam-aio05.cp.lsst.org', :sitepp do
on_supported_os.each do |os, os_facts|
next if os =~ %r{centos-7-x86_64}

context "on #{os}" do
let(:facts) do
override_facts(os_facts,
fqdn: 'lsstcam-aio05.cp.lsst.org',
is_virtual: false,
virtual: 'physical',
dmi: {
'product' => {
'name' => 'OptiPlex AIO 7410 35W',
},
})
end
let(:node_params) do
{
role: 'ccs-desktop',
cluster: 'lsstcam-ccs',
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 enp0s31f6' do
let(:interface) { 'enp0s31f6' }

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
45 changes: 45 additions & 0 deletions spec/hosts/nodes/lsstcam-aio06.cp.lsst.org_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# frozen_string_literal: true

require 'spec_helper'

describe 'lsstcam-aio06.cp.lsst.org', :sitepp do
on_supported_os.each do |os, os_facts|
next if os =~ %r{centos-7-x86_64}

context "on #{os}" do
let(:facts) do
override_facts(os_facts,
fqdn: 'lsstcam-aio06.cp.lsst.org',
is_virtual: false,
virtual: 'physical',
dmi: {
'product' => {
'name' => 'OptiPlex AIO 7410 35W',
},
})
end
let(:node_params) do
{
role: 'ccs-desktop',
cluster: 'lsstcam-ccs',
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 enp0s31f6' do
let(:interface) { 'enp0s31f6' }

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 f68b84c

Please sign in to comment.