Skip to content

Commit

Permalink
(node/rucio01.cp.lsst.rg) add el9 network configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
dtapiacl committed Oct 7, 2024
1 parent b67155f commit 2889b02
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 0 deletions.
26 changes: 26 additions & 0 deletions hieradata/node/rucio01.ls.lsst.org.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
nm::connections:
ens192:
content:
connection:
id: "ens192"
uuid: "fa2c1b82-c58c-3411-bdca-b701a08e2cc0"
type: "ethernet"
interface-name: "ens192"
ethernet: {}
ipv4:
method: "auto"
ipv6:
method: "disabled"
proxy: {}

nfs::client_enabled: true
nfs::client_mounts:
/repo/LATISS:
share: "/auxtel/repo/LATISS"
server: "nfs-auxtel.ls.lsst.org"
atboot: true
/datasets:
share: "/lsstdata"
server: "nfs-lsstdata.ls.lsst.org"
atboot: true
60 changes: 60 additions & 0 deletions spec/hosts/nodes/rucio01.ls.lsst.org_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# frozen_string_literal: true

require 'spec_helper'

describe 'rucio01.ls.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: 'vmware',
dmi: {
'product' => {
'name' => 'VMware7,1',
},
})
end
let(:node_params) do
{
role: 'rucio',
site: 'ls',
}
end

it { is_expected.to compile.with_all_deps }

include_context 'with nm interface'

it { is_expected.to have_nm__connection_resource_count(1) }

context 'with ens192' do
let(:interface) { 'ens192' }

it_behaves_like 'nm enabled interface'
it_behaves_like 'nm dhcp interface'
it_behaves_like 'nm ethernet interface'
end

it { is_expected.to contain_class('nfs').with_client_enabled(true) }

it do
is_expected.to contain_nfs__client__mount('/repo/LATISS').with(
share: '/auxtel/repo/LATISS',
server: 'nfs-auxtel.ls.lsst.org',
atboot: true
)
end

it do
is_expected.to contain_nfs__client__mount('/datasets').with(
share: '/lsstdata',
server: 'nfs-lsstdata.ls.lsst.org',
atboot: true
)
end
end
end # on os
end # on_supported_os

0 comments on commit 2889b02

Please sign in to comment.