Permalink
Browse files

document Glance image uploads

  • Loading branch information...
1 parent 735a786 commit b548240823142f0082c06fa479b83028f7213e08 @mattray mattray committed Aug 14, 2012
Showing with 22 additions and 5 deletions.
  1. +1 −0 TODO.org
  2. +8 −5 documentation/glance.md
  3. +1 −0 infrastructure.yml
  4. +12 −0 roles/glance-images.rb
View
@@ -38,6 +38,7 @@
end
*** glance
make a glance::client for other cookbooks
+ refactor the glance/image upload in glance::api to use more idempotent Chef resources, perhaps as a separate recipe for readability
*** nova config/setup
needs cleanup to be safe to run partial Nova deploys
nova-common should pass hashes instead of so many attributes, that would make conditional rendering blocks simpler
View
@@ -11,19 +11,19 @@ Every Glance role depends on the `base` role included in the repository to ensur
mysql-master
------------
-roles and underlying recipes providing database services through MySQL required for glance (and Keystone, Nova and Horizon).
+roles and underlying recipes providing database services through MySQL required for Glance (and Keystone, Nova and Horizon).
rabbitmq-server
---------------
roles and underlying recipes providing messaging services through RabbitMQ required for Glance (and Nova).
-os-database
+os-Database
-----------
-expose and provide the attributes used for configuring glance's database.
+expose and provide the attributes used for configuring Glance's database.
os-network
----------
-expose and provide the attributes used for configuring and defining glance's network.
+expose and provide the attributes used for configuring and defining Glance's network.
Glance Roles
============
@@ -32,6 +32,9 @@ These roles are utilized by the osops-utils package for mapping ip addresses to
glance-api
----------
-
glance-registry
---------------
+
+glance-images
+-------------
+Attributes enabling uploading images to Glance as well as listing the images to be used. There is an example of an Ubuntu 12.04 "precise" image from a local server. There are additional examples within the `attributes/default.rb` file included within the Glance cookbook.
View
@@ -52,6 +52,7 @@ roles:
- glance-api:
- glance-registry:
- glance:
+ - glance-images:
- nova-setup:
- nova-scheduler:
- nova-api-ec2:
View
@@ -0,0 +1,12 @@
+name "glance-images"
+description "Define the images you're going to use with OpenStack."
+
+override_attributes(
+ "glance" => {
+ "image_upload" => true,
+ "images" => ["precise"],
+ "image" => {
+ "precise" => "http://hypnotoad/precise-server-cloudimg-amd64.tar.gz"
+ }
+ }
+ )

0 comments on commit b548240

Please sign in to comment.