Skip to content

Commit bf9d132

Browse files
committed
(site/cp/cluster/auxtel-ccs) add s3nd
1 parent 373d734 commit bf9d132

File tree

3 files changed

+56
-20
lines changed

3 files changed

+56
-20
lines changed

hieradata/site/cp/cluster/auxtel-ccs.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,18 @@ s3daemon::instances:
55
env:
66
S3_ENDPOINT_URL: "https://s3.cp.lsst.org"
77
S3DAEMON_PORT: 15570
8+
cp-latiss-s3nd:
9+
image: "%{alias('s3nd_default_image')}"
10+
env:
11+
S3ND_ENDPOINT_URL: "https://s3.cp.lsst.org"
12+
S3ND_PORT: 15571
813
s3dfrgw-latiss:
914
image: "%{alias('s3daemon_default_image')}"
1015
env:
1116
S3_ENDPOINT_URL: "https://s3dfrgw.slac.stanford.edu"
1217
S3DAEMON_PORT: 15580
18+
s3dfrgw-latiss-s3nd:
19+
image: "%{alias('s3nd_default_image')}"
20+
env:
21+
S3ND_ENDPOINT_URL: "https://s3dfrgw.slac.stanford.edu"
22+
S3ND_PORT: 15581

spec/fixtures/hieradata/site/cp/cluster/auxtel-ccs.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ s3daemon::instances:
33
cp-latiss:
44
aws_access_key_id: "%{alias('s3daemon_test::aws_access_key_id')}"
55
aws_secret_access_key: "%{alias('s3daemon_test::aws_secret_access_key')}"
6+
cp-latiss-s3nd:
7+
aws_access_key_id: "%{alias('s3daemon_test::aws_access_key_id')}"
8+
aws_secret_access_key: "%{alias('s3daemon_test::aws_secret_access_key')}"
69
s3dfrgw-latiss:
710
aws_access_key_id: "%{alias('s3daemon_test::aws_access_key_id')}"
811
aws_secret_access_key: "%{alias('s3daemon_test::aws_secret_access_key')}"
12+
s3dfrgw-latiss-s3nd:
13+
aws_access_key_id: "%{alias('s3daemon_test::aws_access_key_id')}"
14+
aws_secret_access_key: "%{alias('s3daemon_test::aws_secret_access_key')}"

spec/hosts/nodes/auxtel-dc01.cp.lsst.org_spec.rb

Lines changed: 40 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,46 @@
2727

2828
it { is_expected.to compile.with_all_deps }
2929

30+
it do
31+
is_expected.to contain_s3daemon__instance('cp-latiss').with(
32+
image: 'ghcr.io/lsst-dm/s3daemon:sha-57e1aa9',
33+
env: {
34+
'S3_ENDPOINT_URL' => 'https://s3.cp.lsst.org',
35+
'S3DAEMON_PORT' => 15_570,
36+
}
37+
)
38+
end
39+
40+
it do
41+
is_expected.to contain_s3daemon__instance('cp-latiss-s3nd').with(
42+
image: 'ghcr.io/lsst-dm/s3nd:sha-1a94702',
43+
env: {
44+
'S3ND_ENDPOINT_URL' => 'https://s3.cp.lsst.org',
45+
'S3ND_PORT' => 15_571,
46+
}
47+
)
48+
end
49+
50+
it do
51+
is_expected.to contain_s3daemon__instance('s3dfrgw-latiss').with(
52+
image: 'ghcr.io/lsst-dm/s3daemon:sha-57e1aa9',
53+
env: {
54+
'S3_ENDPOINT_URL' => 'https://s3dfrgw.slac.stanford.edu',
55+
'S3DAEMON_PORT' => 15_580,
56+
}
57+
)
58+
end
59+
60+
it do
61+
is_expected.to contain_s3daemon__instance('s3dfrgw-latiss-s3nd').with(
62+
image: 'ghcr.io/lsst-dm/s3nd:sha-1a94702',
63+
env: {
64+
'S3ND_ENDPOINT_URL' => 'https://s3dfrgw.slac.stanford.edu',
65+
'S3ND_PORT' => 15_581,
66+
}
67+
)
68+
end
69+
3070
include_examples 'baremetal'
3171
include_context 'with nm interface'
3272
it { is_expected.to have_nm__connection_resource_count(2) }
@@ -49,26 +89,6 @@
4989
it_behaves_like 'nm ethernet interface'
5090
end
5191

52-
it do
53-
is_expected.to contain_s3daemon__instance('cp-latiss').with(
54-
image: 'ghcr.io/lsst-dm/s3daemon:sha-57e1aa9',
55-
env: {
56-
'S3_ENDPOINT_URL' => 'https://s3.cp.lsst.org',
57-
'S3DAEMON_PORT' => 15_570,
58-
}
59-
)
60-
end
61-
62-
it do
63-
is_expected.to contain_s3daemon__instance('s3dfrgw-latiss').with(
64-
image: 'ghcr.io/lsst-dm/s3daemon:sha-57e1aa9',
65-
env: {
66-
'S3_ENDPOINT_URL' => 'https://s3dfrgw.slac.stanford.edu',
67-
'S3DAEMON_PORT' => 15_580,
68-
}
69-
)
70-
end
71-
7292
it do
7393
is_expected.to contain_nfs__client__mount('/data').with(
7494
share: 'data',

0 commit comments

Comments
 (0)