Merge "Deprecate support for [DEFAULT] location_strategy"
This commit is contained in:
@@ -95,10 +95,6 @@
|
|||||||
# (optional) Expose image location to trusted clients.
|
# (optional) Expose image location to trusted clients.
|
||||||
# Defaults to $facts['os_service_default'].
|
# Defaults to $facts['os_service_default'].
|
||||||
#
|
#
|
||||||
# [*location_strategy*]
|
|
||||||
# (optional) Strategy used to determine the image location order.
|
|
||||||
# Defaults to $facts['os_service_default'].
|
|
||||||
#
|
|
||||||
# [*purge_config*]
|
# [*purge_config*]
|
||||||
# (optional) Whether to set only the specified config options
|
# (optional) Whether to set only the specified config options
|
||||||
# in the api config.
|
# in the api config.
|
||||||
@@ -266,6 +262,10 @@
|
|||||||
# service name removed.
|
# service name removed.
|
||||||
# Defaults to undef
|
# Defaults to undef
|
||||||
#
|
#
|
||||||
|
# [*location_strategy*]
|
||||||
|
# (optional) Strategy used to determine the image location order.
|
||||||
|
# Defaults to undef
|
||||||
|
#
|
||||||
class glance::api(
|
class glance::api(
|
||||||
$package_ensure = 'present',
|
$package_ensure = 'present',
|
||||||
$bind_host = $facts['os_service_default'],
|
$bind_host = $facts['os_service_default'],
|
||||||
@@ -280,7 +280,6 @@ class glance::api(
|
|||||||
Boolean $enabled = true,
|
Boolean $enabled = true,
|
||||||
$service_name = $::glance::params::api_service_name,
|
$service_name = $::glance::params::api_service_name,
|
||||||
$show_image_direct_url = $facts['os_service_default'],
|
$show_image_direct_url = $facts['os_service_default'],
|
||||||
$location_strategy = $facts['os_service_default'],
|
|
||||||
Boolean $purge_config = false,
|
Boolean $purge_config = false,
|
||||||
$enforce_secure_rbac = $facts['os_service_default'],
|
$enforce_secure_rbac = $facts['os_service_default'],
|
||||||
$use_keystone_limits = $facts['os_service_default'],
|
$use_keystone_limits = $facts['os_service_default'],
|
||||||
@@ -325,6 +324,7 @@ class glance::api(
|
|||||||
$filesystem_store_metadata_file = undef,
|
$filesystem_store_metadata_file = undef,
|
||||||
$filesystem_store_file_perm = undef,
|
$filesystem_store_file_perm = undef,
|
||||||
Optional[String] $pipeline = undef,
|
Optional[String] $pipeline = undef,
|
||||||
|
$location_strategy = undef,
|
||||||
) inherits glance {
|
) inherits glance {
|
||||||
|
|
||||||
include glance::deps
|
include glance::deps
|
||||||
@@ -338,6 +338,10 @@ class glance::api(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if $location_strategy != undef {
|
||||||
|
warning('The location_strategy parameter was deprecated and will be removed.')
|
||||||
|
}
|
||||||
|
|
||||||
if $sync_db {
|
if $sync_db {
|
||||||
include glance::db::sync
|
include glance::db::sync
|
||||||
include glance::db::metadefs
|
include glance::db::metadefs
|
||||||
@@ -365,7 +369,7 @@ class glance::api(
|
|||||||
'DEFAULT/backlog': value => $backlog;
|
'DEFAULT/backlog': value => $backlog;
|
||||||
'DEFAULT/workers': value => $workers;
|
'DEFAULT/workers': value => $workers;
|
||||||
'DEFAULT/show_image_direct_url': value => $show_image_direct_url;
|
'DEFAULT/show_image_direct_url': value => $show_image_direct_url;
|
||||||
'DEFAULT/location_strategy': value => $location_strategy;
|
'DEFAULT/location_strategy': value => pick($location_strategy, $facts['os_service_default']);
|
||||||
'DEFAULT/delayed_delete': value => $delayed_delete;
|
'DEFAULT/delayed_delete': value => $delayed_delete;
|
||||||
'DEFAULT/enforce_secure_rbac': value => $enforce_secure_rbac;
|
'DEFAULT/enforce_secure_rbac': value => $enforce_secure_rbac;
|
||||||
'DEFAULT/use_keystone_limits': value => $use_keystone_limits;
|
'DEFAULT/use_keystone_limits': value => $use_keystone_limits;
|
||||||
|
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
deprecations:
|
||||||
|
- |
|
||||||
|
The ``glance::api::location_strategy`` parameter has been deprecated.
|
Reference in New Issue
Block a user