
Previously, all of the storage server types (account, container, proxy) were always configured to be installed on the same node. It often makes sense to only have the account and container together, and to put the object server on a different node. (or its possible that other configurations make sense) This commit refactors the swift module so that each of the types of nodes can be built independently of each other.
36 lines
660 B
Puppet
36 lines
660 B
Puppet
#
|
|
# Configures dependencies that are common for all storage
|
|
# types.
|
|
# - installs an rsync server
|
|
# - installs required packages
|
|
#
|
|
# == Parameters
|
|
# [*storeage_local_net_ip*] ip address that the swift servers should
|
|
# bind to. Required.
|
|
# == Dependencies
|
|
#
|
|
# == Examples
|
|
#
|
|
# == Authors
|
|
#
|
|
# Dan Bode dan@puppetlabs.com
|
|
#
|
|
# == Copyright
|
|
#
|
|
# Copyright 2011 Puppetlabs Inc, unless otherwise noted.
|
|
#
|
|
class swift::storage(
|
|
$storage_local_net_ip
|
|
) inherits swift {
|
|
|
|
class{ 'rsync::server':
|
|
use_xinetd => false,
|
|
address => $storage_local_net_ip,
|
|
}
|
|
|
|
# package dependencies
|
|
package { ['xfsprogs', 'parted']:
|
|
ensure => 'present'
|
|
}
|
|
}
|