Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(WIP) (role/ccs-mcm) merge role/atsccs into role/ccs-mcm #822

Draft
wants to merge 4 commits into
base: production
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions hieradata/node/auxtel-mcm.cp.lsst.org.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,3 @@ ccs_software::services:
- "localdb"
- "lockmanager"
- "rest-server"

nfs::client_enabled: true

nfs::client_mounts:
/data:
share: "data"
server: "auxtel-fp01.cp.lsst.org"
atboot: true
/repo:
share: "repo"
server: "auxtel-archiver.cp.lsst.org"
atboot: true
7 changes: 0 additions & 7 deletions hieradata/node/auxtel-mcm.tu.lsst.org.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,6 @@ network::mroutes_hash:
"140.252.147.48/28": "140.252.147.17"
"140.252.147.128/27": "140.252.147.17"

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"
13 changes: 0 additions & 13 deletions hieradata/role/atsccs.yaml

This file was deleted.

1 change: 1 addition & 0 deletions 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
2 changes: 1 addition & 1 deletion spec/hosts/nodes/auxtel-dc01.cp.lsst.org_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

let(:node_params) do
{
role: 'atsccs',
role: 'ccs-dc',
site: 'cp',
cluster: 'auxtel-ccs',
}
Expand Down
2 changes: 1 addition & 1 deletion spec/hosts/nodes/auxtel-dc01.ls.lsst.org_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
let(:facts) { facts.merge(fqdn: 'auxtel-dc01.ls.lsst.org') }
let(:node_params) do
{
role: 'atsccs',
role: 'ccs-dc',
site: 'ls',
cluster: 'auxtel-ccs',
variant: '1114s',
Expand Down
18 changes: 1 addition & 17 deletions spec/hosts/nodes/auxtel-mcm.cp.lsst.org_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,13 @@

let(:node_params) do
{
role: 'atsccs',
role: 'ccs-mcm',
site: 'cp',
cluster: 'auxtel-ccs',
}
end

it { is_expected.to compile.with_all_deps }

it do
is_expected.to contain_nfs__client__mount('/data').with(
share: 'data',
server: 'auxtel-fp01.cp.lsst.org',
atboot: true,
)
end

it do
is_expected.to contain_nfs__client__mount('/repo').with(
share: 'repo',
server: 'auxtel-archiver.cp.lsst.org',
atboot: true,
)
end
end # on os
end # on_supported_os
end # role
2 changes: 1 addition & 1 deletion spec/hosts/nodes/auxtel-mcm.ls.lsst.org_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

let(:node_params) do
{
role: 'atsccs',
role: 'ccs-mcm',
site: 'ls',
cluster: 'auxtel-ccs',
variant: '1114s',
Expand Down
46 changes: 46 additions & 0 deletions spec/hosts/nodes/auxtel-mcm.tu.lsst.org_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# frozen_string_literal: true

require 'spec_helper'

describe 'auxtel-mcm.tu.lsst.org', :site do
centos7 = FacterDB.get_facts({ operatingsystem: 'CentOS', operatingsystemmajrelease: '7' }).first
# rubocop:disable Naming/VariableNumber
{ 'centos-7-x86_64': centos7 }.each do |os, facts|
# rubocop:enable Naming/VariableNumber
context "on #{os}" do
let(:facts) { facts.merge(fqdn: 'auxtel-mcm.tu.lsst.org') }
let(:node_params) do
{
role: 'ccs-mcm',
site: 'tu',
cluster: 'auxtel-ccs',
}
end

let(:alert_email) do
'tucson-teststand-aler-aaaae4zsdubhmm3n7mowaugr2y@lsstc.slack.com'
end

it { is_expected.to compile.with_all_deps }

include_examples 'ccs alerts'
include_context 'with nm interface'

it { is_expected.to contain_package('OpenSpliceDDS') }
it { is_expected.to contain_file('/etc/ccs/setup-sal5').with_content(%r{^export LSST_DDS_INTERFACE=auxtel-mcm-dds.tu.lsst.org}) }
it { is_expected.to contain_file('/etc/ccs/setup-sal5').with_content(%r{^export LSST_DDS_PARTITION_PREFIX=tucson}) }
it { is_expected.to contain_class('Ccs_software::Service') }

it do
is_expected.to contain_class('clustershell').with(
groupmembers: {
'all' => {
'group' => 'all',
'member' => 'auxtel-fp01,auxtel-mcm',
},
},
)
end
end # on os
end # on_supported_os
end # role
37 changes: 0 additions & 37 deletions spec/hosts/roles/atsccs_spec.rb

This file was deleted.

3 changes: 3 additions & 0 deletions spec/hosts/roles/ccs_mcm_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
%w[
comcam-ccs
auxtel-ccs
lsstcam-ccs
].each do |cluster|
context "#{cluster} cluster" do
let(:node_params) do
Expand All @@ -35,6 +36,8 @@
include_examples 'common', facts: facts
include_examples 'ccs common', facts: facts
include_examples 'x2go packages'
include_examples 'debugutils'
it { is_expected.to contain_class('ccs_sal') }
end # host
end # lsst_sites
end # cluster
Expand Down