-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1119 from lsst-it/IT-4780/cp-tang
(role/tang) add cp site support
- Loading branch information
Showing
11 changed files
with
235 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
nm::connections: | ||
enp1s0: | ||
content: | ||
connection: | ||
id: "enp1s0" | ||
uuid: "03da7500-2101-c722-2438-d0d006c28c73" | ||
type: "ethernet" | ||
interface-name: "enp1s0" | ||
ethernet: {} | ||
ipv4: | ||
address1: "139.229.161.4/27,139.229.161.30" | ||
dns: "139.229.160.53;139.229.160.54;139.229.160.55;" | ||
dns-search: "cp.lsst.org;" | ||
method: "manual" | ||
ipv6: | ||
method: "disabled" | ||
proxy: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
nm::connections: | ||
enp1s0: | ||
content: | ||
connection: | ||
id: "enp1s0" | ||
uuid: "03da7500-2101-c722-2438-d0d006c28c73" | ||
type: "ethernet" | ||
interface-name: "enp1s0" | ||
ethernet: {} | ||
ipv4: | ||
address1: "139.229.161.5/27,139.229.161.30" | ||
dns: "139.229.160.53;139.229.160.54;139.229.160.55;" | ||
dns-search: "cp.lsst.org;" | ||
method: "manual" | ||
ipv6: | ||
method: "disabled" | ||
proxy: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
nm::connections: | ||
enp1s0: | ||
content: | ||
connection: | ||
id: "enp1s0" | ||
uuid: "03da7500-2101-c722-2438-d0d006c28c73" | ||
type: "ethernet" | ||
interface-name: "enp1s0" | ||
ethernet: {} | ||
ipv4: | ||
address1: "139.229.161.6/27,139.229.161.30" | ||
dns: "139.229.160.53;139.229.160.54;139.229.160.55;" | ||
dns-search: "cp.lsst.org;" | ||
method: "manual" | ||
ipv6: | ||
method: "disabled" | ||
proxy: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
profile::core::firewall::firewall: | ||
"200 accept tang": | ||
proto: "tcp" | ||
state: "NEW" | ||
ipset: "cpfde src" | ||
dport: "7500" | ||
action: "accept" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'spec_helper' | ||
|
||
describe 'tang01.cp.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 | ||
override_facts(os_facts, | ||
fqdn: 'tang01.cp.lsst.org', | ||
is_virtual: true, | ||
virtual: 'kvm', | ||
dmi: { | ||
'product' => { | ||
'name' => 'KVM', | ||
}, | ||
}) | ||
end | ||
let(:node_params) do | ||
{ | ||
role: 'tang', | ||
site: 'cp', | ||
} | ||
end | ||
|
||
it { is_expected.to compile.with_all_deps } | ||
|
||
include_examples 'vm' | ||
include_context 'with nm interface' | ||
it { is_expected.to have_nm__connection_resource_count(1) } | ||
|
||
context 'with enp1s0' do | ||
let(:interface) { 'enp1s0' } | ||
|
||
it_behaves_like 'nm enabled interface' | ||
it_behaves_like 'nm ethernet interface' | ||
it_behaves_like 'nm manual interface' | ||
it { expect(nm_keyfile['ipv4']['address1']).to eq('139.229.161.4/27,139.229.161.30') } | ||
it { expect(nm_keyfile['ipv4']['dns']).to eq('139.229.160.53;139.229.160.54;139.229.160.55;') } | ||
it { expect(nm_keyfile['ipv4']['dns-search']).to eq('cp.lsst.org;') } | ||
end | ||
end # on os | ||
end # on_supported_os | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'spec_helper' | ||
|
||
describe 'tang02.cp.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 | ||
override_facts(os_facts, | ||
fqdn: 'tang02.cp.lsst.org', | ||
is_virtual: true, | ||
virtual: 'kvm', | ||
dmi: { | ||
'product' => { | ||
'name' => 'KVM', | ||
}, | ||
}) | ||
end | ||
let(:node_params) do | ||
{ | ||
role: 'tang', | ||
site: 'cp', | ||
} | ||
end | ||
|
||
it { is_expected.to compile.with_all_deps } | ||
|
||
include_examples 'vm' | ||
include_context 'with nm interface' | ||
it { is_expected.to have_nm__connection_resource_count(1) } | ||
|
||
context 'with enp1s0' do | ||
let(:interface) { 'enp1s0' } | ||
|
||
it_behaves_like 'nm enabled interface' | ||
it_behaves_like 'nm ethernet interface' | ||
it_behaves_like 'nm manual interface' | ||
it { expect(nm_keyfile['ipv4']['address1']).to eq('139.229.161.5/27,139.229.161.30') } | ||
it { expect(nm_keyfile['ipv4']['dns']).to eq('139.229.160.53;139.229.160.54;139.229.160.55;') } | ||
it { expect(nm_keyfile['ipv4']['dns-search']).to eq('cp.lsst.org;') } | ||
end | ||
end # on os | ||
end # on_supported_os | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'spec_helper' | ||
|
||
describe 'tang03.cp.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 | ||
override_facts(os_facts, | ||
fqdn: 'tang03.cp.lsst.org', | ||
is_virtual: true, | ||
virtual: 'kvm', | ||
dmi: { | ||
'product' => { | ||
'name' => 'KVM', | ||
}, | ||
}) | ||
end | ||
let(:node_params) do | ||
{ | ||
role: 'tang', | ||
site: 'cp', | ||
} | ||
end | ||
|
||
it { is_expected.to compile.with_all_deps } | ||
|
||
include_examples 'vm' | ||
include_context 'with nm interface' | ||
it { is_expected.to have_nm__connection_resource_count(1) } | ||
|
||
context 'with enp1s0' do | ||
let(:interface) { 'enp1s0' } | ||
|
||
it_behaves_like 'nm enabled interface' | ||
it_behaves_like 'nm ethernet interface' | ||
it_behaves_like 'nm manual interface' | ||
it { expect(nm_keyfile['ipv4']['address1']).to eq('139.229.161.6/27,139.229.161.30') } | ||
it { expect(nm_keyfile['ipv4']['dns']).to eq('139.229.160.53;139.229.160.54;139.229.160.55;') } | ||
it { expect(nm_keyfile['ipv4']['dns-search']).to eq('cp.lsst.org;') } | ||
end | ||
end # on os | ||
end # on_supported_os | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters