ATT specific fixups
This commit is contained in:
128
README.md
128
README.md
@@ -8,48 +8,10 @@ Glance is installed from packages, optionally populating the repository with def
|
|||||||
|
|
||||||
http://glance.openstack.org/
|
http://glance.openstack.org/
|
||||||
|
|
||||||
Usage
|
|
||||||
=====
|
|
||||||
|
|
||||||
The Glance cookbook currently supports file, swift, and Rackspace Cloud Files (swift API compliant) backing stores. NOTE: changing the storage location from cloudfiles to swift (and vice versa) requires that you manually export and import your stored images.
|
|
||||||
|
|
||||||
To enable these features set the following in the default attributes section in your environment:
|
|
||||||
|
|
||||||
Files
|
|
||||||
-----
|
|
||||||
"glance": {
|
|
||||||
"api": {
|
|
||||||
"default_store": "file"
|
|
||||||
},
|
|
||||||
"images": [
|
|
||||||
"cirros"
|
|
||||||
],
|
|
||||||
"image_upload": true
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
Swift
|
|
||||||
-----
|
|
||||||
"glance": {
|
|
||||||
"api": {
|
|
||||||
"default_store": "swift"
|
|
||||||
},
|
|
||||||
"images": [
|
|
||||||
"cirros"
|
|
||||||
],
|
|
||||||
"image_upload": true
|
|
||||||
}
|
|
||||||
|
|
||||||
Requirements
|
Requirements
|
||||||
============
|
============
|
||||||
|
|
||||||
Chef 0.10.0 or higher required (for Chef environment use)
|
Chef 0.10.0 or higher required (for Chef environment use).
|
||||||
|
|
||||||
Platform
|
|
||||||
--------
|
|
||||||
|
|
||||||
* Ubuntu-12.04+
|
|
||||||
* Fedora-17+
|
|
||||||
|
|
||||||
Cookbooks
|
Cookbooks
|
||||||
---------
|
---------
|
||||||
@@ -57,25 +19,12 @@ Cookbooks
|
|||||||
The following cookbooks are dependencies:
|
The following cookbooks are dependencies:
|
||||||
|
|
||||||
* database
|
* database
|
||||||
* keystone
|
* keystone">= 2012.2.1"
|
||||||
* mysql
|
* mysql
|
||||||
* openstack-common
|
* openstack-common >= 0.1.7
|
||||||
|
|
||||||
Providers
|
Usage
|
||||||
=========
|
=====
|
||||||
|
|
||||||
`image` (`:action` `:upload`
|
|
||||||
|
|
||||||
- `:image_url`: Location of the image to be loaded into Glance.
|
|
||||||
- `:image_name`: A name for the image.
|
|
||||||
- `:image_type`: `qcow2` or `ami`. Defaults to `qcow2`.
|
|
||||||
- `:keystone_user`: Username of the Keystone admin user.
|
|
||||||
- `:keystone_pass`: Password for the Keystone admin user.
|
|
||||||
- `:keystone_tenant`: Name of the Keystone admin user's tenant.
|
|
||||||
- `:keystone_uri`: URI of the Identity API endpoint.
|
|
||||||
|
|
||||||
Recipes
|
|
||||||
=======
|
|
||||||
|
|
||||||
api
|
api
|
||||||
------
|
------
|
||||||
@@ -93,6 +42,53 @@ db
|
|||||||
--
|
--
|
||||||
- Creates the Glance registry database
|
- Creates the Glance registry database
|
||||||
|
|
||||||
|
The Glance cookbook currently supports file, swift, and Rackspace Cloud Files (swift API compliant) backing stores. NOTE: changing the storage location from cloudfiles to swift (and vice versa) requires that you manually export and import your stored images.
|
||||||
|
|
||||||
|
To enable these features set the following in the default attributes section in your environment:
|
||||||
|
|
||||||
|
Files
|
||||||
|
-----
|
||||||
|
|
||||||
|
```json
|
||||||
|
"glance": {
|
||||||
|
"api": {
|
||||||
|
"default_store": "file"
|
||||||
|
},
|
||||||
|
"images": [
|
||||||
|
"cirros"
|
||||||
|
],
|
||||||
|
"image_upload": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Swift
|
||||||
|
-----
|
||||||
|
|
||||||
|
```json
|
||||||
|
"glance": {
|
||||||
|
"api": {
|
||||||
|
"default_store": "swift"
|
||||||
|
},
|
||||||
|
"images": [
|
||||||
|
"cirros"
|
||||||
|
],
|
||||||
|
"image_upload": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Providers
|
||||||
|
=========
|
||||||
|
|
||||||
|
`image` (`:action` `:upload`
|
||||||
|
|
||||||
|
- `:image_url`: Location of the image to be loaded into Glance.
|
||||||
|
- `:image_name`: A name for the image.
|
||||||
|
- `:image_type`: `qcow2` or `ami`. Defaults to `qcow2`.
|
||||||
|
- `:keystone_user`: Username of the Keystone admin user.
|
||||||
|
- `:keystone_pass`: Password for the Keystone admin user.
|
||||||
|
- `:keystone_tenant`: Name of the Keystone admin user's tenant.
|
||||||
|
- `:keystone_uri`: URI of the Identity API endpoint.
|
||||||
|
|
||||||
Attributes
|
Attributes
|
||||||
==========
|
==========
|
||||||
|
|
||||||
@@ -109,9 +105,7 @@ Attributes
|
|||||||
* `glance["service_tenant_name"]` - Tenant name used by glance when interacting with keystone - used in the API and registry paste.ini files
|
* `glance["service_tenant_name"]` - Tenant name used by glance when interacting with keystone - used in the API and registry paste.ini files
|
||||||
* `glance["service_user"]` - User name used by glance when interacting with keystone - used in the API and registry paste.ini files
|
* `glance["service_user"]` - User name used by glance when interacting with keystone - used in the API and registry paste.ini files
|
||||||
* `glance["service_role"]` - User role used by glance when interacting with keystone - used in the API and registry paste.ini files
|
* `glance["service_role"]` - User role used by glance when interacting with keystone - used in the API and registry paste.ini files
|
||||||
|
|
||||||
* `default["glance"]["pki"]["signing_dir"]` - Defaults to `/tmp/glance-signing-dir`. Directory where `auth_token` middleware writes certificate
|
* `default["glance"]["pki"]["signing_dir"]` - Defaults to `/tmp/glance-signing-dir`. Directory where `auth_token` middleware writes certificate
|
||||||
|
|
||||||
* `glance["image_upload"]` - Toggles whether to automatically upload images in the `glance["images"]` array
|
* `glance["image_upload"]` - Toggles whether to automatically upload images in the `glance["images"]` array
|
||||||
* `glance["images"]` - Default list of images to upload to the glance repository as part of the install
|
* `glance["images"]` - Default list of images to upload to the glance repository as part of the install
|
||||||
* `glance["image]["<imagename>"]` - URL location of the `<imagename>` image. There can be multiple instances of this line to define multiple imagess (eg natty, maverick, fedora17 etc)
|
* `glance["image]["<imagename>"]` - URL location of the `<imagename>` image. There can be multiple instances of this line to define multiple imagess (eg natty, maverick, fedora17 etc)
|
||||||
@@ -125,15 +119,14 @@ Attributes
|
|||||||
* `glance["api"]["rbd"]["rbd_store_pool"]` - RADOS pool for images
|
* `glance["api"]["rbd"]["rbd_store_pool"]` - RADOS pool for images
|
||||||
* `glance["api"]["rbd"]["rbd_store_chunk_size"]` - Size in MB of chunks for RADOS Store, should be a power of 2
|
* `glance["api"]["rbd"]["rbd_store_chunk_size"]` - Size in MB of chunks for RADOS Store, should be a power of 2
|
||||||
|
|
||||||
Templates
|
Testing
|
||||||
=========
|
=====
|
||||||
|
|
||||||
* `glance-api-paste.ini.erb` - Paste config for glance-api middleware
|
This cookbook is using [ChefSpec](https://github.com/acrmp/chefspec) for
|
||||||
* `glance-api.conf.erb` - Config file for glance-api server
|
testing. Run the following before commiting. It will run your tests,
|
||||||
* `glance-registry-paste.ini.erb` - Paste config for glance-registry middleware
|
and check for lint errors.
|
||||||
* `glance-registry.conf.erb` - Config file for glance-registry server
|
|
||||||
* `glance-scrubber.conf.erb` - Config file for glance image scrubber service
|
$ ./run_tests.bash
|
||||||
* `policy.json.erb` - Configuration of ACLs for glance API server
|
|
||||||
|
|
||||||
License and Author
|
License and Author
|
||||||
==================
|
==================
|
||||||
@@ -146,9 +139,12 @@ Author:: William Kelly (<william.kelly@rackspace.com>)
|
|||||||
Author:: Darren Birkett (<darren.birkett@rackspace.co.uk>)
|
Author:: Darren Birkett (<darren.birkett@rackspace.co.uk>)
|
||||||
Author:: Evan Callicoat (<evan.callicoat@rackspace.com>)
|
Author:: Evan Callicoat (<evan.callicoat@rackspace.com>)
|
||||||
Author:: Matt Ray (<matt@opscode.com>)
|
Author:: Matt Ray (<matt@opscode.com>)
|
||||||
|
Author:: Jay Pipes (<jaypipes@att.com>)
|
||||||
|
Author:: John Dewey (<jdewey@att.com>)
|
||||||
|
|
||||||
Copyright 2012, Rackspace US, Inc.
|
Copyright 2012, Rackspace US, Inc.
|
||||||
Copyright 2012, Opscode, Inc.
|
Copyright 2012, Opscode, Inc.
|
||||||
|
Copyright 2012-2013, AT&T Services, Inc.
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
# Copyright 2012, Rackspace US, Inc.
|
# Copyright 2012, Rackspace US, Inc.
|
||||||
# Copyright 2012, Opscode, Inc.
|
# Copyright 2012, Opscode, Inc.
|
||||||
# Copyright 2013, AT&T
|
# Copyright 2012-2013, AT&T Services, Inc.
|
||||||
#
|
#
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# you may not use this file except in compliance with the License.
|
# you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# Cookbook Name:: glance
|
# Cookbook Name:: glance
|
||||||
# Recipe:: db
|
# Recipe:: db
|
||||||
#
|
#
|
||||||
# Copyright 2012, AT&T
|
# Copyright 2012-2013, AT&T Services, Inc.
|
||||||
#
|
#
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# you may not use this file except in compliance with the License.
|
# you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# Cookbook Name:: glance
|
# Cookbook Name:: glance
|
||||||
# Recipe:: keystone_registration
|
# Recipe:: keystone_registration
|
||||||
#
|
#
|
||||||
# Copyright 2013, AT&T
|
# Copyright 2013, AT&T Services, Inc.
|
||||||
#
|
#
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# you may not use this file except in compliance with the License.
|
# you may not use this file except in compliance with the License.
|
||||||
|
|||||||
Reference in New Issue
Block a user