Skip to content

Commit f895e56

Browse files
authored
Merge pull request #1208 from lsst-it/IT-5403/ccs-lsstcam-dc02-services-v2
(node/lsstcam-dc02.cp) disable ccs image-handling service
2 parents dfe260b + 395c217 commit f895e56

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed

hieradata/node/lsstcam-dc02.cp.lsst.org.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,12 @@ nm::connections:
2020
method=ignore
2121
2222
[proxy]
23+
24+
## The role ccs-dc adds the image-handling service to all lsstcam-dc*.cp nodes.
25+
## However, dc02.cp is a special case, where the service should not be present.
26+
lookup_options:
27+
ccs_software::services:
28+
merge:
29+
strategy: "first"
30+
31+
ccs_software::services:

hieradata/site/cp/cluster/lsstcam-ccs/role/ccs-dc.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ files:
1111
owner: &ccsipauser 72055
1212
group: *ccsipauser
1313

14+
## Note: node/lsstcam-dc02.cp should not have image-handling,
15+
## and so specifically redefines services to be empty.
16+
## If you want to add more services here, they will also need to be
17+
## added to that node.
1418
ccs_software::services:
1519
prod:
1620
- {name: "image-handling", user: "ccs-ipa", group: "ccs-ipa", workdir: "/home/ccs-ipa"}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# frozen_string_literal: true
2+
3+
require 'spec_helper'
4+
5+
describe 'lsstcam-dc02.cp.lsst.org', :sitepp do
6+
on_supported_os.each do |os, os_facts|
7+
next if os =~ %r{centos-7-x86_64}
8+
9+
context "on #{os}" do
10+
let(:facts) do
11+
override_facts(os_facts,
12+
fqdn: 'lsstcam-dc02.cp.lsst.org',
13+
is_virtual: false,
14+
virtual: 'physical',
15+
dmi: {
16+
'product' => {
17+
'name' => 'PowerEdge R6515',
18+
},
19+
})
20+
end
21+
let(:node_params) do
22+
{
23+
role: 'ccs-dc',
24+
cluster: 'lsstcam-ccs',
25+
site: 'cp',
26+
}
27+
end
28+
29+
it { is_expected.to compile.with_all_deps }
30+
31+
include_examples 'baremetal'
32+
33+
it { is_expected.not_to contain_service('image-handling') }
34+
end # on os
35+
end # on_supported_os
36+
end

0 commit comments

Comments
 (0)