-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1150 from lsst-it/IT-5342_lsstcam_vac
(node/lsstcam-vac.cp.lsst.org) deploy host as el9
- Loading branch information
Showing
2 changed files
with
93 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
nm::connections: | ||
enp0s31f6: | ||
content: | ||
connection: | ||
id: "enp0s31f6" | ||
uuid: "03da7500-2101-c722-2438-d0d006c28c73" | ||
type: "ethernet" | ||
interface-name: "enp0s31f6" | ||
ethernet: {} | ||
ipv4: | ||
address1: "139.229.175.79/26,139.229.175.126" | ||
dns: "139.229.160.53;139.229.160.54;139.229.160.55;" | ||
dns-search: "cp.lsst.org;" | ||
method: "manual" | ||
ipv6: | ||
method: "disabled" | ||
proxy: {} | ||
enp3s0: | ||
content: | ||
connection: | ||
id: "enp3s0" | ||
uuid: "edb4ebb1-6d05-427b-b6ea-d483bdf32ec7" | ||
type: "ethernet" | ||
interface-name: "enp3s0" | ||
ethernet: {} | ||
ipv4: | ||
method: "manual" | ||
address1: "192.168.1.122/24" | ||
ipv6: | ||
method: "disabled" | ||
proxy: {} | ||
|
||
ccs_software::services: | ||
prod: | ||
- "hex" | ||
- "thermal" | ||
- "vacuum" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'spec_helper' | ||
|
||
describe 'lsstcam-vac.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 | ||
override_facts(os_facts, | ||
fqdn: 'lsstcam-vac.cp.lsst.org', | ||
is_virtual: false, | ||
virtual: 'physical', | ||
dmi: { | ||
'product' => { | ||
'name' => 'EPMe-42', | ||
}, | ||
}) | ||
end | ||
let(:node_params) do | ||
{ | ||
role: 'ccs-hcu', | ||
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(2) } | ||
|
||
context 'with enp0s31f6' do | ||
let(:interface) { 'enp0s31f6' } | ||
|
||
it_behaves_like 'nm enabled interface' | ||
it_behaves_like 'nm ethernet interface' | ||
it_behaves_like 'nm manual interface' | ||
it { expect(nm_keyfile['ipv4']['address1']).to eq('139.229.175.79/26,139.229.175.126') } | ||
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;') } | ||
end | ||
|
||
context 'with enp3s0' do | ||
let(:interface) { 'enp3s0' } | ||
|
||
it_behaves_like 'nm enabled interface' | ||
it_behaves_like 'nm ethernet interface' | ||
it_behaves_like 'nm manual interface' | ||
it { expect(nm_keyfile['ipv4']['address1']).to eq('192.168.1.122/24') } | ||
end | ||
end # on os | ||
end # on_supported_os | ||
end |