af129f0a93
This adds conditionals to support a installation in which a user desires to run both swift proxy and storage on the same node. Change-Id: I0cc827525968a9d1dc836c553a39f0ac13c4667e
34 lines
631 B
Puppet
34 lines
631 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
|
|
) {
|
|
|
|
if !defined(Class['rsync::server']){
|
|
class{ 'rsync::server':
|
|
use_xinetd => true,
|
|
address => $storage_local_net_ip,
|
|
use_chroot => 'no',
|
|
}
|
|
}
|
|
}
|