File tree Expand file tree Collapse file tree 12 files changed +402
-0
lines changed Expand file tree Collapse file tree 12 files changed +402
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ nm::connections :
3+ enp65s0f0 :
4+ content :
5+ connection :
6+ id : " enp65s0f0"
7+ uuid : " 682a815d-eedf-a30b-774c-aae04c2d5ccb"
8+ type : " ethernet"
9+ interface-name : " enp65s0f0"
10+ ethernet : {}
11+ ipv4 :
12+ address1 : " 139.229.160.82/24,139.229.160.254"
13+ dns : " 139.229.160.53;139.229.160.54;139.229.160.55;"
14+ dns-search : " cp.lsst.org;"
15+ method : " manual"
16+ ipv6 :
17+ method : " ignore"
18+ proxy : {}
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+ address1 : " 139.229.134.64/24,139.229.134.254"
13+ dns : " 139.229.134.53;139.229.134.54;139.229.134.55;"
14+ dns-search : " dev.lsst.org;"
15+ method : " manual"
16+ ipv6 :
17+ method : " ignore"
18+ proxy : {}
Original file line number Diff line number Diff line change 1+ ---
2+ nm::connections :
3+ enp129s0f1 :
4+ content :
5+ connection :
6+ id : " enp129s0f1"
7+ uuid : " 46d19ce1-bcab-7e77-6fc7-b730b26c54b1"
8+ type : " ethernet"
9+ interface-name : " enp129s0f1"
10+ ethernet : {}
11+ ipv4 :
12+ address1 : " 139.229.138.20/24,139.229.138.254"
13+ dns : " 139.229.135.53;139.229.135.54;139.229.135.55;"
14+ dns-search : " ls.lsst.org;"
15+ method : " manual"
16+ ipv6 :
17+ method : " ignore"
18+ proxy : {}
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 : " 51e4ccf4-1dd1-3081-9b28-0aa1291b79ac"
8+ type : " ethernet"
9+ interface-name : " ens192"
10+ ethernet : {}
11+ ipv4 :
12+ address1 : " 139.229.160.83/24,139.229.160.254"
13+ dns : " 139.229.160.53;139.229.160.54;139.229.160.55;"
14+ dns-search : " cp.lsst.org;"
15+ method : " manual"
16+ ipv6 :
17+ method : " ignore"
18+ proxy : {}
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+ address1 : " 139.229.134.99/24,139.229.134.254"
13+ dns : " 139.229.134.53;139.229.134.54;139.229.134.55;"
14+ dns-search : " dev.lsst.org;"
15+ method : " manual"
16+ ipv6 :
17+ method : " ignore"
18+ proxy : {}
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 : " 36e2d4c8-3d89-49c8-95f0-048af8c5fe28"
8+ type : " ethernet"
9+ interface-name : " ens192"
10+ ethernet : {}
11+ ipv4 :
12+ address1 : " 139.229.138.21/24,139.229.138.254"
13+ dns : " 139.229.135.53;139.229.135.54;139.229.135.55;"
14+ dns-search : " ls.lsst.org;"
15+ method : " manual"
16+ ipv6 :
17+ method : " ignore"
18+ proxy : {}
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
3+ require 'spec_helper'
4+
5+ describe 'vpn01.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' => 'AS -1115HS-TNR' ,
17+ } ,
18+ } )
19+ end
20+ let ( :node_params ) do
21+ {
22+ role : 'openvpn' ,
23+ site : 'cp' ,
24+ }
25+ end
26+
27+ it { is_expected . to compile . with_all_deps }
28+
29+ include_examples 'baremetal'
30+ include_context 'with nm interface'
31+ it { is_expected . to have_nm__connection_resource_count ( 3 ) }
32+
33+ %w[
34+ enp12s0f4u1u2c2
35+ enp65s0f1
36+ ] . each do |i |
37+ context "with #{ i } " do
38+ let ( :interface ) { i }
39+
40+ it_behaves_like 'nm disabled interface'
41+ end
42+ end
43+
44+ context 'with enp65s0f0' do
45+ let ( :interface ) { 'enp65s0f0' }
46+
47+ it_behaves_like 'nm enabled interface'
48+ it_behaves_like 'nm ethernet interface'
49+ it { expect ( nm_keyfile [ 'ipv4' ] [ 'address1' ] ) . to eq ( '139.229.160.82/24,139.229.160.254' ) }
50+ it { expect ( nm_keyfile [ 'ipv4' ] [ 'dns' ] ) . to eq ( '139.229.160.53;139.229.160.54;139.229.160.55;' ) }
51+ it { expect ( nm_keyfile [ 'ipv4' ] [ 'dns-search' ] ) . to eq ( 'cp.lsst.org;' ) }
52+ it { expect ( nm_keyfile [ 'ipv4' ] [ 'method' ] ) . to eq ( 'manual' ) }
53+ end
54+ end # on os
55+ end # on_supported_os
56+ end
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
3+ require 'spec_helper'
4+
5+ describe 'vpn01.dev.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+ override_facts ( os_facts ,
12+ fqdn : 'vpn01.dev.lsst.org' ,
13+ is_virtual : true ,
14+ virtual : 'vmware' ,
15+ dmi : {
16+ 'product' => {
17+ 'name' => 'VMware7,1' ,
18+ } ,
19+ } )
20+ end
21+ let ( :node_params ) do
22+ {
23+ role : 'openvpn' ,
24+ site : 'dev' ,
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 ethernet interface'
38+ it { expect ( nm_keyfile [ 'ipv4' ] [ 'address1' ] ) . to eq ( '139.229.134.64/24,139.229.134.254' ) }
39+ it { expect ( nm_keyfile [ 'ipv4' ] [ 'dns' ] ) . to eq ( '139.229.134.53;139.229.134.54;139.229.134.55;' ) }
40+ it { expect ( nm_keyfile [ 'ipv4' ] [ 'dns-search' ] ) . to eq ( 'dev.lsst.org;' ) }
41+ it { expect ( nm_keyfile [ 'ipv4' ] [ 'method' ] ) . to eq ( 'manual' ) }
42+ end
43+ end # on os
44+ end # on_supported_os
45+ end
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
3+ require 'spec_helper'
4+
5+ describe 'vpn01.ls.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' => 'AS -1114S-WN10RT' ,
17+ } ,
18+ } )
19+ end
20+ let ( :node_params ) do
21+ {
22+ role : 'openvpn' ,
23+ site : 'ls' ,
24+ }
25+ end
26+
27+ it { is_expected . to compile . with_all_deps }
28+
29+ include_examples 'baremetal'
30+ include_context 'with nm interface'
31+ it { is_expected . to have_nm__connection_resource_count ( 5 ) }
32+
33+ %w[
34+ eno1np0
35+ eno2np1
36+ enp4s0f3u2u2c2
37+ enp129s0f0
38+ ] . each do |i |
39+ context "with #{ i } " do
40+ let ( :interface ) { i }
41+
42+ it_behaves_like 'nm disabled interface'
43+ end
44+ end
45+
46+ context 'with enp129s0f1' do
47+ let ( :interface ) { 'enp129s0f1' }
48+
49+ it_behaves_like 'nm enabled interface'
50+ it_behaves_like 'nm ethernet interface'
51+ it { expect ( nm_keyfile [ 'ipv4' ] [ 'address1' ] ) . to eq ( '139.229.138.20/24,139.229.138.254' ) }
52+ it { expect ( nm_keyfile [ 'ipv4' ] [ 'dns' ] ) . to eq ( '139.229.135.53;139.229.135.54;139.229.135.55;' ) }
53+ it { expect ( nm_keyfile [ 'ipv4' ] [ 'dns-search' ] ) . to eq ( 'ls.lsst.org;' ) }
54+ it { expect ( nm_keyfile [ 'ipv4' ] [ 'method' ] ) . to eq ( 'manual' ) }
55+ end
56+ end # on os
57+ end # on_supported_os
58+ end
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
3+ require 'spec_helper'
4+
5+ describe 'vpn02.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+ override_facts ( os_facts ,
12+ fqdn : 'vpn02.cp.lsst.org' ,
13+ is_virtual : true ,
14+ virtual : 'vmware' ,
15+ dmi : {
16+ 'product' => {
17+ 'name' => 'VMware7,1' ,
18+ } ,
19+ } )
20+ end
21+ let ( :node_params ) do
22+ {
23+ role : 'openvpn' ,
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 ethernet interface'
38+ it { expect ( nm_keyfile [ 'ipv4' ] [ 'address1' ] ) . to eq ( '139.229.160.83/24,139.229.160.254' ) }
39+ it { expect ( nm_keyfile [ 'ipv4' ] [ 'dns' ] ) . to eq ( '139.229.160.53;139.229.160.54;139.229.160.55;' ) }
40+ it { expect ( nm_keyfile [ 'ipv4' ] [ 'dns-search' ] ) . to eq ( 'cp.lsst.org;' ) }
41+ it { expect ( nm_keyfile [ 'ipv4' ] [ 'method' ] ) . to eq ( 'manual' ) }
42+ end
43+ end # on os
44+ end # on_supported_os
45+ end
You can’t perform that action at this time.
0 commit comments