Changes to make sure the signing_dir is written properly
The auth_token middleware barfs if signing_dir is empty, so only write the line into the paste ini section for the auth_token middleware if the attribute is present and has some value...
This commit is contained in:
12
README.md
12
README.md
@@ -111,22 +111,14 @@ Attributes
|
||||
* `glance["user"] - User glance runs as
|
||||
* `glance["group"] - Group glance runs as
|
||||
* `glance["glance_api_chef_role"]` - The name of the Chef role that installs the Glance API service
|
||||
* `glance["db"]["name"]` - Name of glance database
|
||||
* `glance["db"]["user"]` - Username for glance database access
|
||||
* `glance["db"]["password"]` - Password for glance database access
|
||||
* `glance["api"]["ip_address"]` - IP address to use for communicating with the glance API
|
||||
* `glance["api"]["bind_address"]` - IP address for the glance API to bind to
|
||||
* `glance["api"]["port"]` - Port for the glance API to bind to
|
||||
* `glance["db"]["username"]` - Username for glance database access
|
||||
* `glance["api"]["adminURL"]` - Used when registering image endpoint with keystone
|
||||
* `glance["api"]["internalURL"]` - Used when registering image endpoint with keystone
|
||||
* `glance["api"]["publicURL"]` - Used when registering image endpoint with keystone
|
||||
* `glance["registry"]["ip_address"]` - IP address to use for communicating with the glance registry
|
||||
* `glance["registry"]["bind_address"]` - IP address for the glance registry to bind to
|
||||
* `glance["registry"]["port"]` - IP address for the glance port to bind to
|
||||
* `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_pass"]` - User password 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["signing_dir"]` - Directory that the `auth_token` middleware writes to if using PKI
|
||||
* `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["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)
|
||||
|
||||
@@ -44,6 +44,8 @@ default["glance"]["db"]["username"] = "glance" # node_attribute
|
||||
default["glance"]["service_tenant_name"] = "service" # node_attribute
|
||||
default["glance"]["service_user"] = "glance" # node_attribute
|
||||
default["glance"]["service_role"] = "admin" # node_attribute
|
||||
default["glance"]["signing_dir"] = "/tmp/glance-signing-dir"
|
||||
|
||||
default["glance"]["api"]["default_store"] = "file" # node_attribute
|
||||
default["glance"]["api"]["swift"]["container"] = "glance" # node_attribute
|
||||
default["glance"]["api"]["swift"]["large_object_size"] = "200" # node_attribute
|
||||
|
||||
@@ -63,3 +63,6 @@ admin_tenant_name = <%= node["glance"]["service_tenant_name"] %>
|
||||
admin_user = <%= node["glance"]["service_user"] %>
|
||||
admin_password = <%= @service_pass %>
|
||||
delay_auth_decision = true
|
||||
<% if node["glance"]["signing_dir"] %>
|
||||
signing_dir = <%= node["glance"]["signing_dir"] %>
|
||||
<% end %>
|
||||
|
||||
@@ -27,3 +27,7 @@ auth_protocol = <%= @identity_endpoint.scheme %>
|
||||
admin_tenant_name = <%= node["glance"]["service_tenant_name"] %>
|
||||
admin_user = <%= node["glance"]["service_user"] %>
|
||||
admin_password = <%= @service_pass %>
|
||||
delay_auth_decision = true
|
||||
<% if node["glance"]["signing_dir"] %>
|
||||
signing_dir = <%= node["glance"]["signing_dir"] %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user