Brian 'Redbeard' Harrington 5532603e06 feat(OpenStack): Add new scripts to support OpenStack OEM handling
Included are scripts to monitor the CoreOS remote etag, as well as
load a new image into a OpenStack Glance image store.
2014-06-17 12:28:11 -07:00

38 lines
1021 B
Markdown

#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
```