flatcar-scripts/oem/openstack
Flatcar Buildbot c7bbb2b1e2 2345.0.0
2019-12-04 14:59:11 +01:00
..
glance_load.sh 2345.0.0 2019-12-04 14:59:11 +01:00
README.md feat(OpenStack): Add new scripts to support OpenStack OEM handling 2014-06-17 12:28:11 -07:00

#OpenStack OEM utils

##About

These scripts are used to manage loading CoreOS images into an OpenStack deployment. All scripts here should be considered in the public domain.

Outside of this directory is a "generic" scripts directory. This is the location of any scripts not specific to any OEM. There you will find useful scripts like check_etag.sh.

To load images in an automated fashion via python-glanceclient, one may use a cron job which will check the ETag on the remote file on the CoreOS image storage then proceed with executing this script.

##Example Usage

First, load your openstack credentials using one of the following methods:

$ source ~/.openstack/keystonerc_${USERNAME}
$ export OS_PASSWORD=secure_password
$ export OS_AUTH_URL=http://my.keystone.auth-url.example.com:35357/v2.0/
$ export OS_USERNAME=redbeard
$ export OS_TENANT_NAME=coreos

Next, run the actual synchronization script:

$ ../generic/check_etag.sh && echo "Everything synced" || ./glance_load.sh