object-storage: fix puppetvar declaration

This commit is contained in:
Sebastien Badia
2013-12-09 16:10:59 +01:00
parent 1cfa679952
commit 6541f82ba2
2 changed files with 3 additions and 3 deletions

View File

@@ -45,7 +45,7 @@ class os_swift_proxy(
'proxy-logging', 'proxy-server'],
account_autocreate => true,
log_level => 'DEBUG',
workers => inline_template('<%= processorcount.to_i * 2 %>
workers => inline_template('<%= @processorcount.to_i * 2 %>
cors_allow_origin = <%= scope.lookupvar("swift_cors_allow_origin") %>
log_statsd_host = <%= scope.lookupvar("statsd_host") %>
log_statsd_port = <%= scope.lookupvar("statsd_port") %>

View File

@@ -52,7 +52,7 @@ class os_swift_storage (
Swift::Storage::Server {
#devices => $devices,
storage_local_net_ip => $local_ip,
workers => inline_template('<%= processorcount.to_i / 2 %>'),
workers => inline_template('<%= @processorcount.to_i / 2 %>'),
replicator_concurrency => 2,
updater_concurrency => 1,
reaper_concurrency => 1,
@@ -72,7 +72,7 @@ class os_swift_storage (
swift::storage::server { $container_port:
type => 'container',
config_file_path => 'container-server.conf',
workers => inline_template("<%= processorcount.to_i / 2 %>
workers => inline_template("<%= @processorcount.to_i / 2 %>
db_preallocation = on
allow_versions = on
"), # great hack :(