File tree Expand file tree Collapse file tree 2 files changed +98
-0
lines changed Expand file tree Collapse file tree 2 files changed +98
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ nm::connections :
3+ ens192 :
4+ content :
5+ connection :
6+ id : " ens192"
7+ uuid : " 03da7500-2101-c722-2438-d0d006c28c73"
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+ nfs::client_mounts :
19+ /net/obs-env :
20+ share : " obs-env"
21+ server : " nfs-obs-env.cp.lsst.org"
22+ atboot : true
23+ /net/scratch :
24+ share : " scratch"
25+ server : " nfs-scratch.cp.lsst.org"
26+ atboot : true
27+ /project :
28+ share : " project"
29+ server : " nfs-project.cp.lsst.org"
30+ atboot : true
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
3+ require 'spec_helper'
4+
5+ describe 'tel-hw1.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 : true ,
13+ virtual : 'vmware' ,
14+ dmi : {
15+ 'product' => {
16+ 'name' => 'VMware7,1' ,
17+ } ,
18+ } )
19+ end
20+ let ( :node_params ) do
21+ {
22+ role : 'dco' ,
23+ site : 'cp' ,
24+ }
25+ end
26+
27+ it { is_expected . to compile . with_all_deps }
28+
29+ it { is_expected . to contain_class ( 'nfs' ) . with_server_enabled ( false ) }
30+ it { is_expected . to contain_class ( 'nfs' ) . with_client_enabled ( true ) }
31+
32+ include_context 'with nm interface'
33+ it { is_expected . to have_nm__connection_resource_count ( 1 ) }
34+
35+ context 'with ens192' do
36+ let ( :interface ) { 'ens192' }
37+
38+ it_behaves_like 'nm enabled interface'
39+ it_behaves_like 'nm ethernet interface'
40+ it_behaves_like 'nm dhcp interface'
41+ end
42+
43+ it do
44+ is_expected . to contain_nfs__client__mount ( '/net/obs-env' ) . with (
45+ share : 'obs-env' ,
46+ server : 'nfs-obs-env.cp.lsst.org' ,
47+ atboot : true
48+ )
49+ end
50+
51+ it do
52+ is_expected . to contain_nfs__client__mount ( '/net/scratch' ) . with (
53+ share : 'scratch' ,
54+ server : 'nfs-scratch.cp.lsst.org' ,
55+ atboot : true
56+ )
57+ end
58+
59+ it do
60+ is_expected . to contain_nfs__client__mount ( '/project' ) . with (
61+ share : 'project' ,
62+ server : 'nfs-project.cp.lsst.org' ,
63+ atboot : true
64+ )
65+ end
66+ end # on os
67+ end # on_supported_os
68+ end
You can’t perform that action at this time.
0 commit comments