Skip to content

Commit f527c92

Browse files
authored
Merge pull request #1832 from lsst-it/IT-5083-Observer-Workstations
(observerstation01.cp.lsst.org) Add host config and tests
2 parents 63d1845 + 00eb80e commit f527c92

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
powertop::ensure: "absent"
3+
4+
nm::connections:
5+
enp7s0:
6+
content:
7+
connection:
8+
id: "enp7s0"
9+
uuid: "d0b09602-d300-4485-b005-3851181ee549"
10+
type: "ethernet"
11+
interface-name: "enp7s0"
12+
ethernet: {}
13+
ipv4:
14+
method: "auto"
15+
ipv6:
16+
method: "disabled"
17+
proxy: {}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# frozen_string_literal: true
2+
3+
require 'spec_helper'
4+
5+
describe 'observerstation01.cp.lsst.org', :sitepp do
6+
on_supported_os.each do |os, os_facts|
7+
next unless os =~ %r{almalinux-9-x86_64}
8+
9+
context "on #{os}" do
10+
let(:facts) do
11+
lsst_override_facts(os_facts,
12+
is_virtual: false,
13+
virtual: 'physical',
14+
dmi: {
15+
'product' => {
16+
'name' => 'MS-7E07',
17+
},
18+
})
19+
end
20+
let(:node_params) do
21+
{
22+
role: 'generic',
23+
site: 'cp',
24+
}
25+
end
26+
27+
it { is_expected.to compile.with_all_deps }
28+
29+
it { is_expected.to contain_package('powertop').with_ensure('absent') }
30+
31+
include_examples 'baremetal no bmc'
32+
include_context 'with nm interface'
33+
34+
it { is_expected.to have_nm__connection_resource_count(1) }
35+
36+
context 'with enp7s0' do
37+
let(:interface) { 'enp7s0' }
38+
39+
it_behaves_like 'nm enabled interface'
40+
it_behaves_like 'nm ethernet interface'
41+
it_behaves_like 'nm dhcp interface'
42+
end
43+
end # on os
44+
end # on_supported_os
45+
end

0 commit comments

Comments
 (0)