swift: move class
Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
This commit is contained in:
parent
dc279ce8cb
commit
8edee188d0
@ -16,7 +16,7 @@
|
|||||||
# Swift nodes
|
# Swift nodes
|
||||||
#
|
#
|
||||||
|
|
||||||
class os_swift_common(
|
class privatecloud::object(
|
||||||
$swift_hash_suffix = $os_params::swift_hash_suffix
|
$swift_hash_suffix = $os_params::swift_hash_suffix
|
||||||
) {
|
) {
|
||||||
|
|
||||||
@ -26,6 +26,6 @@ class os_swift_common(
|
|||||||
swift_hash_suffix => $swift_hash_suffix,
|
swift_hash_suffix => $swift_hash_suffix,
|
||||||
}
|
}
|
||||||
|
|
||||||
class {'os_swift_system::tweaking': }
|
class {'privatecloud::object::tweaking': }
|
||||||
|
|
||||||
}
|
}
|
@ -16,7 +16,7 @@
|
|||||||
# Swift Proxy node
|
# Swift Proxy node
|
||||||
#
|
#
|
||||||
|
|
||||||
class os_swift_proxy(
|
class privatecloud::object::controller(
|
||||||
$ks_keystone_admin_host = $os_params::ks_keystone_admin_host,
|
$ks_keystone_admin_host = $os_params::ks_keystone_admin_host,
|
||||||
$ks_keystone_admin_port = $os_params::ks_keystone_admin_port,
|
$ks_keystone_admin_port = $os_params::ks_keystone_admin_port,
|
||||||
$ks_keystone_internal_host = $os_params::ks_keystone_internal_host,
|
$ks_keystone_internal_host = $os_params::ks_keystone_internal_host,
|
||||||
@ -27,7 +27,7 @@ class os_swift_proxy(
|
|||||||
$statsd_host = $os_params::statsd_host,
|
$statsd_host = $os_params::statsd_host,
|
||||||
$statsd_port = $os_params::statsd_port,
|
$statsd_port = $os_params::statsd_port,
|
||||||
$swift_memchached = $os_params::swift_memchached
|
$swift_memchached = $os_params::swift_memchached
|
||||||
) inherits os_swift_common {
|
) {
|
||||||
|
|
||||||
class { 'swift::proxy':
|
class { 'swift::proxy':
|
||||||
proxy_local_net_ip => $ipaddress_eth0,
|
proxy_local_net_ip => $ipaddress_eth0,
|
@ -16,11 +16,11 @@
|
|||||||
# Swift ring builder node
|
# Swift ring builder node
|
||||||
#
|
#
|
||||||
|
|
||||||
class os_swift_ringbuilder(
|
class privatecloud::object::ringbuilder(
|
||||||
$rsyncd_ipaddress = ipaddress_eth0,
|
$rsyncd_ipaddress = ipaddress_eth0,
|
||||||
$replicas = $os_params::replicas,
|
$replicas = $os_params::replicas,
|
||||||
$swift_rsync_max_connections = $os_params::swift_rsync_max_connections,
|
$swift_rsync_max_connections = $os_params::swift_rsync_max_connections,
|
||||||
) inherits os_swift_common {
|
) {
|
||||||
|
|
||||||
Ring_object_device <<| |>>
|
Ring_object_device <<| |>>
|
||||||
Ring_container_device <<| |>>
|
Ring_container_device <<| |>>
|
@ -27,14 +27,14 @@ define set_io_scheduler(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
# swift storage
|
# swift storage
|
||||||
class os_swift_storage (
|
class privatecloud::object::storage (
|
||||||
$local_ip = $ipaddress_eth0,
|
$local_ip = $ipaddress_eth0,
|
||||||
$swift_zone = undef,
|
$swift_zone = undef,
|
||||||
$object_port = '6000',
|
$object_port = '6000',
|
||||||
$container_port = '6001',
|
$container_port = '6001',
|
||||||
$account_port = '6002',
|
$account_port = '6002',
|
||||||
$onloopdevices = false,
|
$onloopdevices = false,
|
||||||
) inherits os_swift_common {
|
) {
|
||||||
|
|
||||||
class { 'swift::storage':
|
class { 'swift::storage':
|
||||||
storage_local_net_ip => $local_ip,
|
storage_local_net_ip => $local_ip,
|
@ -16,7 +16,7 @@
|
|||||||
# Swift tweaking
|
# Swift tweaking
|
||||||
#
|
#
|
||||||
|
|
||||||
class os_swift_system::tweaking {
|
class privatecloud::object::tweaking {
|
||||||
file {'/etc/sysctl.d/swift-tuning.conf':
|
file {'/etc/sysctl.d/swift-tuning.conf':
|
||||||
content => "
|
content => "
|
||||||
# disable TIME_WAIT.. wait..
|
# disable TIME_WAIT.. wait..
|
Loading…
x
Reference in New Issue
Block a user