2012-02-14 15:05:35 -08:00
|
|
|
#
|
2012-03-02 20:01:49 -08:00
|
|
|
# Configures dependencies that are common for all storage
|
|
|
|
# types.
|
|
|
|
# - installs an rsync server
|
|
|
|
# - installs required packages
|
2012-02-14 15:05:35 -08:00
|
|
|
#
|
2012-02-13 15:39:18 -08:00
|
|
|
# == Parameters
|
2015-02-12 14:25:52 -07:00
|
|
|
# [*storage_local_net_ip*] ip address that the swift servers should
|
2012-03-02 20:01:49 -08:00
|
|
|
# bind to. Required.
|
2012-02-13 15:39:18 -08:00
|
|
|
# == Dependencies
|
2012-01-19 18:58:37 -08:00
|
|
|
#
|
2012-02-13 15:39:18 -08:00
|
|
|
# == Examples
|
|
|
|
#
|
|
|
|
# == Authors
|
|
|
|
#
|
|
|
|
# Dan Bode dan@puppetlabs.com
|
|
|
|
#
|
|
|
|
# == Copyright
|
|
|
|
#
|
|
|
|
# Copyright 2011 Puppetlabs Inc, unless otherwise noted.
|
2012-01-19 18:58:37 -08:00
|
|
|
#
|
|
|
|
class swift::storage(
|
2012-03-02 20:01:49 -08:00
|
|
|
$storage_local_net_ip
|
2012-04-22 12:12:53 -07:00
|
|
|
) {
|
2012-01-19 18:58:37 -08:00
|
|
|
|
2013-12-17 13:42:38 -06:00
|
|
|
if !defined(Class['rsync::server']){
|
2015-03-23 18:25:34 +01:00
|
|
|
class{ '::rsync::server':
|
2013-12-17 13:42:38 -06:00
|
|
|
use_xinetd => true,
|
|
|
|
address => $storage_local_net_ip,
|
|
|
|
use_chroot => 'no',
|
|
|
|
}
|
2012-02-14 14:09:01 -08:00
|
|
|
}
|
2012-01-19 18:58:37 -08:00
|
|
|
}
|