Skip to content

Commit 913c0ac

Browse files
authored
Merge pull request #1976 from lsst-it/IT-5853_auxtel_vms
(node/auxtel-dc1.cp.lsst.org) add vm host
2 parents 15244cf + 58316f1 commit 913c0ac

File tree

2 files changed

+85
-0
lines changed

2 files changed

+85
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
nm::connections:
3+
ens192: # fqdn
4+
content:
5+
connection:
6+
id: "ens192"
7+
uuid: "f9e08f7e-0e02-387e-bc27-f49e5ea4e8c7"
8+
type: "ethernet"
9+
interface-name: "ens192"
10+
ethernet: {}
11+
ipv4:
12+
method: "auto"
13+
ipv6:
14+
method: "disabled"
15+
proxy: {}
16+
17+
nfs::client_enabled: true
18+
19+
nfs::client_mounts:
20+
/data:
21+
share: "data"
22+
server: "auxtel-fp01.cp.lsst.org"
23+
atboot: true
24+
/repo:
25+
share: "auxtel/repo"
26+
server: "nfs-auxtel.cp.lsst.org"
27+
atboot: true
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# frozen_string_literal: true
2+
3+
require 'spec_helper'
4+
5+
describe 'auxtel-dc1.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' => 'PowerEdge R630',
17+
},
18+
})
19+
end
20+
let(:node_params) do
21+
{
22+
role: 'ccs-dc',
23+
cluster: 'auxtel-ccs',
24+
site: 'cp',
25+
}
26+
end
27+
28+
it { is_expected.to compile.with_all_deps }
29+
30+
include_context 'with nm interface'
31+
it { is_expected.to have_nm__connection_resource_count(1) }
32+
33+
context 'with ens192' do
34+
let(:interface) { 'ens192' }
35+
36+
it_behaves_like 'nm enabled interface'
37+
it_behaves_like 'nm dhcp interface'
38+
it_behaves_like 'nm ethernet interface'
39+
end
40+
41+
it do
42+
is_expected.to contain_nfs__client__mount('/data').with(
43+
share: 'data',
44+
server: 'auxtel-fp01.cp.lsst.org',
45+
atboot: true
46+
)
47+
end
48+
49+
it do
50+
is_expected.to contain_nfs__client__mount('/repo').with(
51+
share: 'auxtel/repo',
52+
server: 'nfs-auxtel.cp.lsst.org',
53+
atboot: true
54+
)
55+
end
56+
end
57+
end # on os
58+
end # on_supported_os

0 commit comments

Comments
 (0)