diff --git a/attributes/default.rb b/attributes/default.rb index f9a98a6..ce3e18a 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -55,6 +55,10 @@ default["cinder"]["group"] = "cinder" # operating system user that services will run under default["cinder"]["user"] = "cinder" +# Maximum allocatable gigabytes +# Should equal total backend storage, default is 10TB +default["cinder"]["max_gigabytes"] = "10000" + # This user's password is stored in an encrypted databag # and accessed with openstack-common cookbook library's # user_password routine. You are expected to create diff --git a/templates/default/cinder.conf.erb b/templates/default/cinder.conf.erb index c1ab684..67f1af5 100644 --- a/templates/default/cinder.conf.erb +++ b/templates/default/cinder.conf.erb @@ -502,7 +502,7 @@ rabbit_virtual_host=<%= @rabbit_virtual_host %> ######## defined in cinder.scheduler.simple ######## -# max_gigabytes=10000 +max_gigabytes=<%= node["cinder"]["max_gigabytes"] %> #### (IntOpt) maximum number of volume gigabytes to allow per host