Skip to content

Commit

Permalink
Merge pull request #822 from lsst-it/IT-4373/rm-atsccs
Browse files Browse the repository at this point in the history
(role/ccs-mcm) merge role/atsccs into role/ccs-mcm
  • Loading branch information
jhoblitt authored Nov 27, 2024
2 parents 6c33e6b + 44c4c6d commit a7a5c8c
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 73 deletions.
3 changes: 0 additions & 3 deletions hieradata/node/auxtel-mcm.cp.lsst.org.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ ccs_software::kafka_auths:

ccs_software::services:
prod:
- "mmm"
- "cluster-monitor"
- "kafka-broker-service"
- "localdb"
- "lockmanager"
- "rest-server"
3 changes: 0 additions & 3 deletions hieradata/node/auxtel-mcm.ls.lsst.org.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,5 @@ ccs_software::global_properties:

ccs_software::services:
prod:
- "mmm"
- "cluster-monitor"
- "localdb"
- "lockmanager"
- "rest-server"
11 changes: 0 additions & 11 deletions hieradata/node/auxtel-mcm.tu.lsst.org.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,3 @@ nm::connections:
ipv6:
method: "disabled"
proxy: {}

nfs::client_enabled: true
nfs::client_mounts:
/ccs-data:
share: "ccs-data"
server: "auxtel-fp01.tu.lsst.org"
atboot: true

ccs_software::services:
prod:
- "lockmanager"
17 changes: 0 additions & 17 deletions hieradata/role/atsccs.yaml

This file was deleted.

3 changes: 2 additions & 1 deletion hieradata/role/ccs-mcm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ classes:
- "profile::ccs::graphical"
- "profile::ccs::tomcat"
- "profile::core::common"
- "profile::core::debugutils"

nginx::confd_purge: true
nginx::server_purge: true
Expand Down Expand Up @@ -34,6 +35,6 @@ profile::core::systemd::tmpfile:

ccs_software::services:
prod:
- "mmm"
- "cluster-monitor"
- "lockmanager"
- "mmm"
12 changes: 9 additions & 3 deletions spec/hosts/nodes/auxtel-mcm.cp.lsst.org_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
end
let(:node_params) do
{
role: 'atsccs',
role: 'ccs-mcm',
site: 'cp',
cluster: 'auxtel-ccs',
}
Expand All @@ -26,8 +26,14 @@
it { is_expected.to compile.with_all_deps }

include_examples 'baremetal'
it { is_expected.to contain_class('nfs').with_server_enabled(false) }
it { is_expected.to contain_class('nfs').with_client_enabled(false) }

it { is_expected.to contain_class('Ccs_software::Service') }
it { is_expected.to contain_service('cluster-monitor') }
it { is_expected.to contain_service('kafka-broker-service') }
it { is_expected.to contain_service('localdb') }
it { is_expected.to contain_service('lockmanager') }
it { is_expected.to contain_service('mmm') }
it { is_expected.to contain_service('rest-server') }
end # on os
end # on_supported_os
end # role
5 changes: 3 additions & 2 deletions spec/hosts/nodes/auxtel-mcm.ls.lsst.org_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
end
let(:node_params) do
{
role: 'atsccs',
role: 'ccs-mcm',
site: 'ls',
cluster: 'auxtel-ccs',
variant: '1114s',
Expand Down Expand Up @@ -87,9 +87,10 @@
it { is_expected.to contain_file('/etc/ccs/setup-sal5').with_content(%r{^export LSST_DDS_PARTITION_PREFIX=base}) }

it { is_expected.to contain_class('Ccs_software::Service') }
it { is_expected.to contain_service('mmm') }
it { is_expected.to contain_service('cluster-monitor') }
it { is_expected.to contain_service('localdb') }
it { is_expected.to contain_service('lockmanager') }
it { is_expected.to contain_service('mmm') }
it { is_expected.to contain_service('rest-server') }

it do
Expand Down
7 changes: 6 additions & 1 deletion spec/hosts/nodes/auxtel-mcm.tu.lsst.org_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
end
let(:node_params) do
{
role: 'atsccs',
role: 'ccs-mcm',
site: 'tu',
cluster: 'auxtel-ccs',
}
Expand Down Expand Up @@ -57,6 +57,11 @@
it { expect(nm_keyfile['ipv4']['route1']).to eq('140.252.147.48/28,140.252.147.17') }
it { expect(nm_keyfile['ipv4']['route2']).to eq('140.252.147.128/27,140.252.147.17') }
end

it { is_expected.to contain_class('Ccs_software::Service') }
it { is_expected.to contain_service('cluster-monitor') }
it { is_expected.to contain_service('lockmanager') }
it { is_expected.to contain_service('mmm') }
end # on os
end # on_supported_os
end
31 changes: 0 additions & 31 deletions spec/hosts/roles/atsccs_spec.rb

This file was deleted.

6 changes: 5 additions & 1 deletion spec/hosts/roles/ccs_mcm_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
%w[
comcam-ccs
auxtel-ccs
lsstcam-ccs
].each do |cluster|
context "#{cluster} cluster" do
lsst_sites.each do |site|
Expand All @@ -27,7 +28,10 @@

include_examples('common', os_facts:, site:)
include_examples('ccs common', os_facts:)
include_examples 'x2go packages', os_facts:
include_examples('x2go packages', os_facts:)
include_examples('debugutils')

it { is_expected.to contain_class('ccs_sal') }
end # host
end # lsst_sites
end # cluster
Expand Down

0 comments on commit a7a5c8c

Please sign in to comment.