Remove swift::storage::node from loopback define

This commit removes The swift::storage::node
declaration from the swift::storage::loopback
definition.

This is done to decouple the code that creates
and mounts partitions from the code that creates
swift devices.
This commit is contained in:
Dan Bode 2012-01-27 22:07:28 -08:00
parent cea6b846dc
commit 67d53de23a

View File

@ -10,8 +10,7 @@ define swift::storage::loopback(
$base_dir = '/srv/loopback-device',
$mnt_base_dir = '/srv/node',
$byte_size = '1024',
$seek = '25000',
$storage_local_net_ip = '127.0.0.1'
$seek = '25000'
) {
if(!defined(File[$base_dir])) {
@ -42,9 +41,4 @@ define swift::storage::loopback(
subscribe => Exec["create_partition-${name}"],
}
swift::storage::node { $name:
mnt_base_dir => $mnt_base_dir,
storage_local_net_ip => $storage_local_net_ip,
require => Swift::Storage::Xfs[$name]
}
}