Skip to content

Commit

Permalink
add hsm setup
Browse files Browse the repository at this point in the history
  • Loading branch information
kofemann committed Sep 5, 2024
1 parent b49634b commit 411acf6
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,12 @@ data:
htpasswd: |-
admin:$apr1$nq7.vQxE$tvmghVXGplwv/SNpNYGiC1
{{- if .Values.dcache.hsm.enabled }}
pool-setup: |-
queue define class -expire=0 -pending=0 -total=0 -open osm *
hsm create osm s3 script -command=/usr/bin/s3hsm -debuglog=/dev/null -s3bucket=hsm -s3config=/opt/dcache/etc/s3-tape.yml
{{- end }}

poolmanager.conf: |-
psu create unit -store *@*
psu create unit -net 0.0.0.0/0.0.0.0
Expand Down
14 changes: 14 additions & 0 deletions templates/pool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ spec:
readOnly: true
- name: pool-data
mountPath: /pool
{{- if $.Values.dcache.hsm.enabled}}
- name: pool-hsm-config
mountPath: /pool/setup
subPath: setup
readOnly: true
{{- end}}
initContainers:
{{ $host := print $.Release.Name "-pool-" . "-svc." $.Release.Namespace ".svc.cluster.local" -}}
{{ include "dcache.certs.init" $host }}
Expand All @@ -59,6 +65,14 @@ spec:
- name: certs-store-{{ . }}
persistentVolumeClaim:
claimName: {{ $.Release.Name }}-pool-{{ . }}-certs-store
{{- if $.Values.dcache.hsm.enabled}}
- name: pool-hsm-config
configMap:
name: {{ $.Release.Name }}-configmap
items:
- key: "pool-setup"
path: "setup"
{{- end}}
volumeClaimTemplates:
- metadata:
name: pool-data
Expand Down
2 changes: 2 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ image:
dcache:
door:
enabled: true
hsm:
enabled: false
pools:
- a
- b
Expand Down

0 comments on commit 411acf6

Please sign in to comment.