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:
parent
cea6b846dc
commit
67d53de23a
@ -10,8 +10,7 @@ define swift::storage::loopback(
|
|||||||
$base_dir = '/srv/loopback-device',
|
$base_dir = '/srv/loopback-device',
|
||||||
$mnt_base_dir = '/srv/node',
|
$mnt_base_dir = '/srv/node',
|
||||||
$byte_size = '1024',
|
$byte_size = '1024',
|
||||||
$seek = '25000',
|
$seek = '25000'
|
||||||
$storage_local_net_ip = '127.0.0.1'
|
|
||||||
) {
|
) {
|
||||||
|
|
||||||
if(!defined(File[$base_dir])) {
|
if(!defined(File[$base_dir])) {
|
||||||
@ -42,9 +41,4 @@ define swift::storage::loopback(
|
|||||||
subscribe => Exec["create_partition-${name}"],
|
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]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user