ansible/roles/copr/backend/files/copr-builder-image-fixup-snapshot-os.sh

16 lines
388 B
Bash
Raw Normal View History

#! /bin/bash
2019-09-02 11:10:58 +02:00
# 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"