Skip to content

Commit f1a1935

Browse files
committed
Allow diskcheck env vars into containers (bsc#1270033)
1 parent c6af85a commit f1a1935

4 files changed

Lines changed: 5 additions & 1 deletion

File tree

mgradm/shared/templates/pgsqlServiceTemplate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ ExecStart=/bin/sh -c '/usr/bin/podman run \
5656
{{- end }}
5757
--network {{ .Network }} \
5858
--health-on-failure=stop \
59-
${UYUNI_BACKUP_VOLUME} ${PODMAN_EXTRA_ARGS} ${UYUNI_IMAGE}'
59+
${PODMAN_EXTRA_ENV_VAR} ${UYUNI_BACKUP_VOLUME} ${PODMAN_EXTRA_ARGS} ${UYUNI_IMAGE}'
6060
ExecStop=/usr/bin/podman stop \
6161
--ignore -t 10 \
6262
--cidfile=%t/%n.ctr-id

mgradm/shared/templates/serviceTemplate.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ ExecStart=/bin/sh -c '/usr/bin/podman run \
4343
{{- range .Volumes }}
4444
-v {{ .Name }}:{{ .MountPath }} \
4545
{{- end }}
46+
${PODMAN_EXTRA_ENV_VAR} \
4647
--env-file={{ .ServerEnvFile }} \
4748
--network {{ .Network }} \
4849
{{- if .DBUserSecret }}

mgradm/shared/templates/templates_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ ExecStart=/bin/sh -c '/usr/bin/podman run \
123123
--arg value \
124124
-p 80:80 \
125125
-v var-spacewalk:/var/spacewalk \
126+
${PODMAN_EXTRA_ENV_VAR} \
126127
--env-file=/etc/systemd/system/uyuni-server.conf.d/server.env \
127128
--network uyuni-network \
128129
--secret uyuni-db-user,type=env,target=MANAGER_USER \
@@ -211,6 +212,7 @@ ExecStart=/bin/sh -c '/usr/bin/podman run \
211212
--arg value \
212213
-p 80:80 \
213214
-v var-spacewalk:/var/spacewalk \
215+
${PODMAN_EXTRA_ENV_VAR} \
214216
--env-file=/etc/systemd/system/uyuni-server.conf.d/server.env \
215217
--network uyuni-network \
216218
--secret ca-secret,type=mount,target=/etc/pki/ca.crt \
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Allow diskcheck env vars into containers (bsc#1270033)

0 commit comments

Comments
 (0)