Merge "Warn that object storage parameter mount_check changes next release"
This commit is contained in:
@@ -36,7 +36,7 @@
|
|||||||
# [*mount_check*]
|
# [*mount_check*]
|
||||||
# (optional) Whether or not check if the devices are mounted
|
# (optional) Whether or not check if the devices are mounted
|
||||||
# to prevent accidentally writing to the root device
|
# to prevent accidentally writing to the root device
|
||||||
# Defaults to false
|
# Defaults to false. Soon to be changed to 'true' to match Swift defaults.
|
||||||
#
|
#
|
||||||
# [*account_pipeline*]
|
# [*account_pipeline*]
|
||||||
# (optional) Specify the account pipeline
|
# (optional) Specify the account pipeline
|
||||||
@@ -82,7 +82,7 @@ class swift::storage::all(
|
|||||||
$object_pipeline = undef,
|
$object_pipeline = undef,
|
||||||
$container_pipeline = undef,
|
$container_pipeline = undef,
|
||||||
$allow_versions = false,
|
$allow_versions = false,
|
||||||
$mount_check = false,
|
$mount_check = undef,
|
||||||
$account_pipeline = undef,
|
$account_pipeline = undef,
|
||||||
$log_facility = 'LOG_LOCAL2',
|
$log_facility = 'LOG_LOCAL2',
|
||||||
$log_level = 'INFO',
|
$log_level = 'INFO',
|
||||||
@@ -93,6 +93,14 @@ class swift::storage::all(
|
|||||||
$outgoing_chmod = '0644',
|
$outgoing_chmod = '0644',
|
||||||
) {
|
) {
|
||||||
|
|
||||||
|
if (!$mount_check) {
|
||||||
|
warning('The default for the mount_check parameter will change from false to true in the next release to match upstream. To disable this warning, set mount_check=false.')
|
||||||
|
$mount_check_real = false
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$mount_check_real = $mount_check
|
||||||
|
}
|
||||||
|
|
||||||
class { '::swift::storage':
|
class { '::swift::storage':
|
||||||
storage_local_net_ip => $storage_local_net_ip,
|
storage_local_net_ip => $storage_local_net_ip,
|
||||||
}
|
}
|
||||||
@@ -100,7 +108,7 @@ class swift::storage::all(
|
|||||||
Swift::Storage::Server {
|
Swift::Storage::Server {
|
||||||
devices => $devices,
|
devices => $devices,
|
||||||
storage_local_net_ip => $storage_local_net_ip,
|
storage_local_net_ip => $storage_local_net_ip,
|
||||||
mount_check => $mount_check,
|
mount_check => $mount_check_real,
|
||||||
log_level => $log_level,
|
log_level => $log_level,
|
||||||
log_udp_host => $log_udp_host,
|
log_udp_host => $log_udp_host,
|
||||||
log_udp_port => $log_udp_port,
|
log_udp_port => $log_udp_port,
|
||||||
|
@@ -47,8 +47,8 @@
|
|||||||
#
|
#
|
||||||
# [*mount_check*]
|
# [*mount_check*]
|
||||||
# (optional) Whether or not check if the devices are mounted to prevent accidentally
|
# (optional) Whether or not check if the devices are mounted to prevent accidentally
|
||||||
# writing to the root device
|
# writing to the root device.
|
||||||
# Defaults to false.
|
# Defaults to false. Soon to be changed to 'true' to match Swift defaults.
|
||||||
#
|
#
|
||||||
# [*user*]
|
# [*user*]
|
||||||
# (optional) User to run as
|
# (optional) User to run as
|
||||||
@@ -121,7 +121,7 @@ define swift::storage::server(
|
|||||||
$outgoing_chmod = '0644',
|
$outgoing_chmod = '0644',
|
||||||
$max_connections = 25,
|
$max_connections = 25,
|
||||||
$pipeline = ["${type}-server"],
|
$pipeline = ["${type}-server"],
|
||||||
$mount_check = false,
|
$mount_check = undef,
|
||||||
$user = 'swift',
|
$user = 'swift',
|
||||||
$workers = '1',
|
$workers = '1',
|
||||||
$allow_versions = false,
|
$allow_versions = false,
|
||||||
@@ -147,6 +147,14 @@ define swift::storage::server(
|
|||||||
warning('The default outgoing_chmod set to 0644 may yield in error prone directories and will be changed in a later release.')
|
warning('The default outgoing_chmod set to 0644 may yield in error prone directories and will be changed in a later release.')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!$mount_check) {
|
||||||
|
warning('The default for the mount_check parameter will change from false to true in the next release to match upstream. To disable this warning, set mount_check=false.')
|
||||||
|
$mount_check_real = false
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$mount_check_real = $mount_check
|
||||||
|
}
|
||||||
|
|
||||||
# Warn if ${type-server} isn't included in the pipeline
|
# Warn if ${type-server} isn't included in the pipeline
|
||||||
if is_array($pipeline) {
|
if is_array($pipeline) {
|
||||||
if !member($pipeline, "${type}-server") {
|
if !member($pipeline, "${type}-server") {
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
devices = <%= @devices %>
|
devices = <%= @devices %>
|
||||||
bind_ip = <%= @storage_local_net_ip %>
|
bind_ip = <%= @storage_local_net_ip %>
|
||||||
bind_port = <%= @bind_port %>
|
bind_port = <%= @bind_port %>
|
||||||
mount_check = <%= @mount_check %>
|
mount_check = <%= @mount_check_real %>
|
||||||
user = <%= @user %>
|
user = <%= @user %>
|
||||||
workers = <%= @workers %>
|
workers = <%= @workers %>
|
||||||
log_name = <%= @log_name %>
|
log_name = <%= @log_name %>
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
devices = <%= @devices %>
|
devices = <%= @devices %>
|
||||||
bind_ip = <%= @storage_local_net_ip %>
|
bind_ip = <%= @storage_local_net_ip %>
|
||||||
bind_port = <%= @bind_port %>
|
bind_port = <%= @bind_port %>
|
||||||
mount_check = <%= @mount_check %>
|
mount_check = <%= @mount_check_real %>
|
||||||
user = <%= @user %>
|
user = <%= @user %>
|
||||||
log_name = <%= @log_name %>
|
log_name = <%= @log_name %>
|
||||||
log_facility = <%= @log_facility %>
|
log_facility = <%= @log_facility %>
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
devices = <%= @devices %>
|
devices = <%= @devices %>
|
||||||
bind_ip = <%= @storage_local_net_ip %>
|
bind_ip = <%= @storage_local_net_ip %>
|
||||||
bind_port = <%= @bind_port %>
|
bind_port = <%= @bind_port %>
|
||||||
mount_check = <%= @mount_check %>
|
mount_check = <%= @mount_check_real %>
|
||||||
user = <%= @user %>
|
user = <%= @user %>
|
||||||
log_name = <%= @log_name %>
|
log_name = <%= @log_name %>
|
||||||
log_facility = <%= @log_facility %>
|
log_facility = <%= @log_facility %>
|
||||||
|
Reference in New Issue
Block a user