Create directories for devices in advance

Swift after [1] requires directories to pre exist when
using mount_check=False, so we need to create the directories
in advance.

[1] https://review.openstack.org/#/c/500158

Change-Id: I136f481ad542b35d945c84c4348691392bfca5c3
This commit is contained in:
yatin 2017-11-08 16:04:16 +05:30
parent f9a824781b
commit c40fe8dc24

View File

@ -81,6 +81,15 @@ class openstack_integration::swift {
group => 'swift',
require => Package['swift'],
}
# Create 3 directories under /srv/node for 3 devices
[1, 2, 3].each | $device | {
file { "/srv/node/${device}":
ensure => directory,
owner => 'swift',
group => 'swift',
require => File['/srv/node'],
}
}
include ::swift::ringbuilder
class { '::swift::storage::all':
storage_local_net_ip => $::openstack_integration::config::host,