Merge "Restrict access to the mount base directory"
This commit is contained in:
@@ -75,8 +75,8 @@ define swift::storage::disk(
|
|||||||
if(!defined(File[$mnt_base_dir])) {
|
if(!defined(File[$mnt_base_dir])) {
|
||||||
file { $mnt_base_dir:
|
file { $mnt_base_dir:
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
owner => $::swift::params::user,
|
owner => 'root',
|
||||||
group => $::swift::params::group,
|
group => 'root',
|
||||||
require => Anchor['swift::config::begin'],
|
require => Anchor['swift::config::begin'],
|
||||||
before => Anchor['swift::config::end'],
|
before => Anchor['swift::config::end'],
|
||||||
}
|
}
|
||||||
|
@@ -52,8 +52,8 @@ define swift::storage::loopback(
|
|||||||
if(!defined(File[$mnt_base_dir])) {
|
if(!defined(File[$mnt_base_dir])) {
|
||||||
file { $mnt_base_dir:
|
file { $mnt_base_dir:
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
owner => $::swift::params::user,
|
owner => 'root',
|
||||||
group => $::swift::params::group,
|
group => 'root',
|
||||||
require => Anchor['swift::config::begin'],
|
require => Anchor['swift::config::begin'],
|
||||||
before => Anchor['swift::config::end'],
|
before => Anchor['swift::config::end'],
|
||||||
}
|
}
|
||||||
|
@@ -76,8 +76,8 @@ define swift::storage::xfs(
|
|||||||
if(!defined(File[$mnt_base_dir])) {
|
if(!defined(File[$mnt_base_dir])) {
|
||||||
file { $mnt_base_dir:
|
file { $mnt_base_dir:
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
owner => $::swift::params::user,
|
owner => 'root',
|
||||||
group => $::swift::params::group,
|
group => 'root',
|
||||||
require => Anchor['swift::config::begin'],
|
require => Anchor['swift::config::begin'],
|
||||||
before => Anchor['swift::config::end'],
|
before => Anchor['swift::config::end'],
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user