diff --git a/README.md b/README.md index d68bef7..5aaad82 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/attributes/default.rb b/attributes/default.rb index 4fd80be..40c5001 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -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" diff --git a/recipes/api.rb b/recipes/api.rb index e763aa0..b8316bf 100644 --- a/recipes/api.rb +++ b/recipes/api.rb @@ -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