lint: Fix all ERRORS

Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
This commit is contained in:
Emilien Macchi
2013-12-28 21:56:25 +01:00
parent 5b95a60611
commit fbdd686133
4 changed files with 11 additions and 11 deletions

View File

@@ -19,8 +19,8 @@
class authorized_keys ($keys, $account='root', $home = '') {
# This line allows default homedir based on $account variable.
# If $home is empty, the default is used.
$rhome = $account ? {'root' => '/root', default => $home}
$homedir = $rhome ? {'' => "/home/${account}", default => $rhome}
$rhome = $account ? {'root' => '/root', default => $home}
$homedir = $rhome ? {'' => "/home/${account}", default => $rhome}
file { "${homedir}/.ssh":
ensure => directory,
owner => $ensure ? {'present' => $account, default => undef },

View File

@@ -180,7 +180,7 @@ monitor fail if horizon_dead
}
if $keystone {
os_haproxy_listen_http { 'keystone_api_cluster': ports => $ks_keystone_public_port }
os_haproxy_listen_http { 'keystone_api_cluster': ports => $ks_keystone_public_port }
os_haproxy_listen_http { 'keystone_api_admin_cluster': ports => $ks_keystone_admin_port }
}
if $swift_api {

View File

@@ -47,13 +47,13 @@ class os_swift_storage (
Swift::Storage::Server {
#devices => $devices,
storage_local_net_ip => $local_ip,
workers => inline_template('<%= @processorcount.to_i / 2 %>'),
replicator_concurrency => 2,
updater_concurrency => 1,
reaper_concurrency => 1,
require => Class['swift'],
mount_check => true,
storage_local_net_ip => $local_ip,
workers => inline_template('<%= @processorcount.to_i / 2 %>'),
replicator_concurrency => 2,
updater_concurrency => 1,
reaper_concurrency => 1,
require => Class['swift'],
mount_check => true,
}
# concurrency at 2 and 1 seems better see
# http://docs.openstack.org/trunk/openstack-object-storage/admin/content/general-service-tuning.html