Swift: cleanup

Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
This commit is contained in:
Emilien Macchi
2013-11-02 14:45:21 +01:00
parent b47d10ff97
commit dfa66f9d33
4 changed files with 15 additions and 13 deletions

View File

@@ -16,10 +16,11 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# Swift nodes
#
class os_role_swift {
class os_swift_common {
class { 'ssh::server::install': }

View File

@@ -16,12 +16,13 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# Swift Proxy node
#
class os_role_swift_proxy(
class os_swift_proxy(
$local_ip = $ipaddress_eth0,
) inherits os_role_swift {
) inherits os_swift_common {
class { 'memcached':
listen_ip => $local_ip,

View File

@@ -16,14 +16,14 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# Swift ring builder node
#
class os_role_swift_ringbuilder(
class os_swift_ringbuilder(
$rsyncd_ipaddress = ipaddress_eth0,
$replicas = 3
) inherits os_role_swift {
) inherits os_swift_common {
Ring_object_device <<| |>>
Ring_container_device <<| |>>

View File

@@ -16,9 +16,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# Swift Storage node
#
define set_io_scheduler(){
# TODO: Add it on server boot
@@ -31,14 +31,14 @@ define set_io_scheduler(){
}
class os_role_swift_storage (
class os_swift_storage (
$local_ip = $ipaddress_eth0,
$swift_zone = undef,
$object_port = '6000',
$container_port = '6001',
$account_port = '6002',
$onloopdevices = false,
) inherits os_role_swift {
) inherits os_swift_common {
class { 'swift::storage':
storage_local_net_ip => $local_ip,