Added attributes for user and group
This commit is contained in:
		@@ -109,6 +109,8 @@ Attributes
 | 
				
			|||||||
* `glance["verbose"]` - Enables/disables verbose output for glance services.
 | 
					* `glance["verbose"]` - Enables/disables verbose output for glance services.
 | 
				
			||||||
* `glance["debug"]` - Enables/disables debug 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["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["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"]["name"]` - Name of glance database
 | 
				
			||||||
* `glance["db"]["user"]` - Username for glance database access
 | 
					* `glance["db"]["user"]` - Username for glance database access
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -34,6 +34,9 @@ default["glance"]["debug"] = "False"
 | 
				
			|||||||
# This is the name of the Chef role that will install the Keystone Service API
 | 
					# This is the name of the Chef role that will install the Keystone Service API
 | 
				
			||||||
default["glance"]["keystone_service_chef_role"] = "keystone"
 | 
					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
 | 
					# The name of the Chef role that knows about the message queue server
 | 
				
			||||||
# that Glance uses
 | 
					# that Glance uses
 | 
				
			||||||
default["glance"]["rabbit_server_chef_role"] = "rabbitmq-server"
 | 
					default["glance"]["rabbit_server_chef_role"] = "rabbitmq-server"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -46,8 +46,8 @@ service "glance-api" do
 | 
				
			|||||||
end
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
directory "/etc/glance" do
 | 
					directory "/etc/glance" do
 | 
				
			||||||
  group "glance"
 | 
					  owner node["glance"]["user"]
 | 
				
			||||||
  owner "glance"
 | 
					  group node["glance"]["group"]
 | 
				
			||||||
  mode  00700
 | 
					  mode  00700
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  action :create
 | 
					  action :create
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user