Skip to content

Commit

Permalink
ansible: Include console.redhat.com password in image-upload secrets
Browse files Browse the repository at this point in the history
This is necessary for rhel4edge refreshes. Add a new
`$COCKPIT_CRC_PASSWORD` env variable for it so that we can stop
hardcoding the path in bots rhel4edge.bootstrap.

Also clarify the comments a bit.
  • Loading branch information
martinpitt authored and allisonkarlitskaya committed Mar 11, 2024
1 parent ea998a0 commit b59697b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ansible/roles/tasks-systemd/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,17 @@
[container.secrets]
# these are *host* paths, this is podman-remote
# FIXME: Split the upload/download secrets
# secret from issue-scan for image refreshes
image-upload=[
'--volume=/var/lib/cockpit-secrets/tasks/s3-keys/:/run/secrets/s3-keys:ro',
'--env=COCKPIT_S3_KEY_DIR=/run/secrets/s3-keys',
# password for console.redhat.com when image-create'ing rhel4edge
'--volume=/var/lib/cockpit-secrets/tasks/crc_passwd:/run/secrets/crc_passwd:ro',
'--env=COCKPIT_CRC_PASSWORD=/run/secrets/crc_passwd',
]
# secret from tests-scan for downloading RHEL images
image-download=[
# FIXME: create a new "download only" S3 token
'--volume=/var/lib/cockpit-secrets/tasks/s3-keys/:/run/secrets/s3-keys:ro',
'--env=COCKPIT_S3_KEY_DIR=/run/secrets/s3-keys',
]
Expand Down

0 comments on commit b59697b

Please sign in to comment.