ansible/roles/copr/backend/files/copr-builder-image-fixup-snapshot-os.sh
2020-04-24 21:34:09 +02:00

15 lines
388 B
Bash
Executable file

#! /bin/bash
# Once we have snapshot (builder image) in OpenStack, we need to make it public,
# protected, and setup hw_rng_model attribute. This script simplifies the task.
# See https://docs.pagure.org/copr.copr/how_to_upgrade_builders.html
. /home/copr/cloud/keystonerc_proper_tenant
set +x
openstack image set \
--public \
--protected \
--property hw_rng_model=virtio \
"$1"