diff --git a/hieradata/node/auxtel-mcm.cp.lsst.org.yaml b/hieradata/node/auxtel-mcm.cp.lsst.org.yaml index 51924b940b..3cf36bf828 100644 --- a/hieradata/node/auxtel-mcm.cp.lsst.org.yaml +++ b/hieradata/node/auxtel-mcm.cp.lsst.org.yaml @@ -61,9 +61,6 @@ ccs_software::kafka_auths: ccs_software::services: prod: - - "mmm" - - "cluster-monitor" - "kafka-broker-service" - "localdb" - - "lockmanager" - "rest-server" diff --git a/hieradata/node/auxtel-mcm.ls.lsst.org.yaml b/hieradata/node/auxtel-mcm.ls.lsst.org.yaml index 4b94d66def..9d3e39a44f 100644 --- a/hieradata/node/auxtel-mcm.ls.lsst.org.yaml +++ b/hieradata/node/auxtel-mcm.ls.lsst.org.yaml @@ -5,8 +5,5 @@ ccs_software::global_properties: ccs_software::services: prod: - - "mmm" - - "cluster-monitor" - "localdb" - - "lockmanager" - "rest-server" diff --git a/hieradata/node/auxtel-mcm.tu.lsst.org.yaml b/hieradata/node/auxtel-mcm.tu.lsst.org.yaml index 1e547da2b7..7dbb9c53db 100644 --- a/hieradata/node/auxtel-mcm.tu.lsst.org.yaml +++ b/hieradata/node/auxtel-mcm.tu.lsst.org.yaml @@ -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" diff --git a/hieradata/role/atsccs.yaml b/hieradata/role/atsccs.yaml deleted file mode 100644 index 7b93e2685b..0000000000 --- a/hieradata/role/atsccs.yaml +++ /dev/null @@ -1,17 +0,0 @@ -# XXX rename to auxtel-mcm ---- -classes: - - "ccs_sal" - - "profile::ccs::common" - - "profile::ccs::graphical" - - "profile::core::common" - - "profile::core::debugutils" - - "profile::core::nfsclient" - - "profile::core::nfsserver" - - "profile::core::sysctl::lhn" - -profile::ccs::common::sysctls: false - -profile::core::systemd::tmpfile: - docker_tmp.conf: # XXX short term kludge - content: "x /tmp/docker_tmp 0777 saluser saluser -" diff --git a/hieradata/role/ccs-mcm.yaml b/hieradata/role/ccs-mcm.yaml index 1df39ef44e..3e2f588637 100644 --- a/hieradata/role/ccs-mcm.yaml +++ b/hieradata/role/ccs-mcm.yaml @@ -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 @@ -34,6 +35,6 @@ profile::core::systemd::tmpfile: ccs_software::services: prod: - - "mmm" - "cluster-monitor" - "lockmanager" + - "mmm" diff --git a/spec/hosts/nodes/auxtel-mcm.cp.lsst.org_spec.rb b/spec/hosts/nodes/auxtel-mcm.cp.lsst.org_spec.rb index a61f783e7e..2d990bebc0 100644 --- a/spec/hosts/nodes/auxtel-mcm.cp.lsst.org_spec.rb +++ b/spec/hosts/nodes/auxtel-mcm.cp.lsst.org_spec.rb @@ -17,7 +17,7 @@ end let(:node_params) do { - role: 'atsccs', + role: 'ccs-mcm', site: 'cp', cluster: 'auxtel-ccs', } @@ -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 diff --git a/spec/hosts/nodes/auxtel-mcm.ls.lsst.org_spec.rb b/spec/hosts/nodes/auxtel-mcm.ls.lsst.org_spec.rb index 50c203ac30..63bbb8897c 100644 --- a/spec/hosts/nodes/auxtel-mcm.ls.lsst.org_spec.rb +++ b/spec/hosts/nodes/auxtel-mcm.ls.lsst.org_spec.rb @@ -19,7 +19,7 @@ end let(:node_params) do { - role: 'atsccs', + role: 'ccs-mcm', site: 'ls', cluster: 'auxtel-ccs', variant: '1114s', @@ -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 diff --git a/spec/hosts/nodes/auxtel-mcm.tu.lsst.org_spec.rb b/spec/hosts/nodes/auxtel-mcm.tu.lsst.org_spec.rb index fd0ace5923..4f1c343bf4 100644 --- a/spec/hosts/nodes/auxtel-mcm.tu.lsst.org_spec.rb +++ b/spec/hosts/nodes/auxtel-mcm.tu.lsst.org_spec.rb @@ -19,7 +19,7 @@ end let(:node_params) do { - role: 'atsccs', + role: 'ccs-mcm', site: 'tu', cluster: 'auxtel-ccs', } @@ -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 diff --git a/spec/hosts/roles/atsccs_spec.rb b/spec/hosts/roles/atsccs_spec.rb deleted file mode 100644 index 1af22578e4..0000000000 --- a/spec/hosts/roles/atsccs_spec.rb +++ /dev/null @@ -1,31 +0,0 @@ -# frozen_string_literal: true - -require 'spec_helper' - -role = 'atsccs' - -describe "#{role} role" do - on_supported_os.each do |os, os_facts| - context "on #{os}" do - lsst_sites.each do |site| - describe "#{role}.#{site}.lsst.org", :sitepp do - let(:node_params) do - { - role:, - site:, - cluster: 'auxtel-ccs', - } - end - let(:facts) { lsst_override_facts(os_facts) } - - it { is_expected.to compile.with_all_deps } - - include_examples('common', os_facts:, site:) - include_examples('ccs common', os_facts:) - include_examples 'lhn sysctls' - it { is_expected.to contain_class('ccs_sal') } - end # host - end # lsst_sites - end # on os - end # on_supported_os -end # role diff --git a/spec/hosts/roles/ccs_mcm_spec.rb b/spec/hosts/roles/ccs_mcm_spec.rb index b7f6cef52b..e48c49c5fc 100644 --- a/spec/hosts/roles/ccs_mcm_spec.rb +++ b/spec/hosts/roles/ccs_mcm_spec.rb @@ -10,6 +10,7 @@ %w[ comcam-ccs auxtel-ccs + lsstcam-ccs ].each do |cluster| context "#{cluster} cluster" do lsst_sites.each do |site| @@ -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