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:
parent
f9a824781b
commit
c40fe8dc24
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user