Added attributes for user and group

This commit is contained in:
John Dewey
2012-11-21 21:52:23 -08:00
parent 42d4ed3a3f
commit 4d2c067de5
3 changed files with 7 additions and 2 deletions

View File

@@ -109,6 +109,8 @@ Attributes
* `glance["verbose"]` - Enables/disables verbose output for glance services.
* `glance["debug"]` - Enables/disables debug output for glance services.
* `glance["keystone_service_chef_role"]` - The name of the Chef role that installs the Keystone Service API
* `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

View File

@@ -34,6 +34,9 @@ default["glance"]["debug"] = "False"
# This is the name of the Chef role that will install the Keystone Service API
default["glance"]["keystone_service_chef_role"] = "keystone"
default["glance"]["user"] = "glance"
default["glance"]["group"] = "glance"
# The name of the Chef role that knows about the message queue server
# that Glance uses
default["glance"]["rabbit_server_chef_role"] = "rabbitmq-server"

View File

@@ -46,8 +46,8 @@ service "glance-api" do
end
directory "/etc/glance" do
group "glance"
owner "glance"
owner node["glance"]["user"]
group node["glance"]["group"]
mode 00700
action :create