Merge "Deprecate support for [DEFAULT] catalog_template_file"
This commit is contained in:
		@@ -12,10 +12,6 @@
 | 
				
			|||||||
#   (Optional) Catalog driver used by Keystone to store endpoints and services.
 | 
					#   (Optional) Catalog driver used by Keystone to store endpoints and services.
 | 
				
			||||||
#   Defaults to $facts['os_service_default'].
 | 
					#   Defaults to $facts['os_service_default'].
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# [*catalog_template_file*]
 | 
					 | 
				
			||||||
#   (Optional) Path to the catalog used if 'templated' catalog driver is used.
 | 
					 | 
				
			||||||
#   Defaults to '/etc/keystone/default_catalog.templates'
 | 
					 | 
				
			||||||
#
 | 
					 | 
				
			||||||
# [*token_provider*]
 | 
					# [*token_provider*]
 | 
				
			||||||
#   (Optional) Format keystone uses for tokens.
 | 
					#   (Optional) Format keystone uses for tokens.
 | 
				
			||||||
#   Defaults to 'fernet'
 | 
					#   Defaults to 'fernet'
 | 
				
			||||||
@@ -346,6 +342,10 @@
 | 
				
			|||||||
#   accepts latest or specific versions.
 | 
					#   accepts latest or specific versions.
 | 
				
			||||||
#   Defaults to present.
 | 
					#   Defaults to present.
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
 | 
					# [*catalog_template_file*]
 | 
				
			||||||
 | 
					#   (Optional) Path to the catalog used if 'templated' catalog driver is used.
 | 
				
			||||||
 | 
					#   Defaults to '/etc/keystone/default_catalog.templates'
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
# == Authors
 | 
					# == Authors
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
#   Dan Bode dan@puppetlabs.com
 | 
					#   Dan Bode dan@puppetlabs.com
 | 
				
			||||||
@@ -357,7 +357,6 @@
 | 
				
			|||||||
class keystone(
 | 
					class keystone(
 | 
				
			||||||
  $package_ensure                                 = 'present',
 | 
					  $package_ensure                                 = 'present',
 | 
				
			||||||
  $catalog_driver                                 = $facts['os_service_default'],
 | 
					  $catalog_driver                                 = $facts['os_service_default'],
 | 
				
			||||||
  $catalog_template_file                          = '/etc/keystone/default_catalog.templates',
 | 
					 | 
				
			||||||
  $token_provider                                 = 'fernet',
 | 
					  $token_provider                                 = 'fernet',
 | 
				
			||||||
  $token_expiration                               = 3600,
 | 
					  $token_expiration                               = 3600,
 | 
				
			||||||
  $password_hash_algorithm                        = $facts['os_service_default'],
 | 
					  $password_hash_algorithm                        = $facts['os_service_default'],
 | 
				
			||||||
@@ -417,6 +416,7 @@ class keystone(
 | 
				
			|||||||
  $amqp_durable_queues                            = $facts['os_service_default'],
 | 
					  $amqp_durable_queues                            = $facts['os_service_default'],
 | 
				
			||||||
  # DEPRECATED PARAMETERS
 | 
					  # DEPRECATED PARAMETERS
 | 
				
			||||||
  $client_package_ensure                          = undef,
 | 
					  $client_package_ensure                          = undef,
 | 
				
			||||||
 | 
					  $catalog_template_file                          = undef,
 | 
				
			||||||
) inherits keystone::params {
 | 
					) inherits keystone::params {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  include keystone::deps
 | 
					  include keystone::deps
 | 
				
			||||||
@@ -427,6 +427,13 @@ class keystone(
 | 
				
			|||||||
    warning('The client_package_ensure parameter is deprecated and has no effect.')
 | 
					    warning('The client_package_ensure parameter is deprecated and has no effect.')
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  if $catalog_template_file != undef {
 | 
				
			||||||
 | 
					    warning('The catalog_template_file parameter is deprecated and will be removed in a future release')
 | 
				
			||||||
 | 
					    $catalog_template_file_real = $catalog_template_file
 | 
				
			||||||
 | 
					  } else {
 | 
				
			||||||
 | 
					    $catalog_template_file_real = '/etc/keystone/default_catalog.templates'
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if $manage_policyrcd {
 | 
					  if $manage_policyrcd {
 | 
				
			||||||
    # openstacklib policy_rcd only affects debian based systems.
 | 
					    # openstacklib policy_rcd only affects debian based systems.
 | 
				
			||||||
    if ($facts['os']['name'] == 'Ubuntu') {
 | 
					    if ($facts['os']['name'] == 'Ubuntu') {
 | 
				
			||||||
@@ -483,7 +490,7 @@ class keystone(
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  keystone_config {
 | 
					  keystone_config {
 | 
				
			||||||
    'catalog/driver':        value => $catalog_driver;
 | 
					    'catalog/driver':        value => $catalog_driver;
 | 
				
			||||||
    'catalog/template_file': value => $catalog_template_file;
 | 
					    'catalog/template_file': value => $catalog_template_file_real;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  keystone_config {
 | 
					  keystone_config {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -0,0 +1,5 @@
 | 
				
			|||||||
 | 
					---
 | 
				
			||||||
 | 
					deprecations:
 | 
				
			||||||
 | 
					  - |
 | 
				
			||||||
 | 
					    The ``keystone::catalog_template_file`` parameter has been deprecated and
 | 
				
			||||||
 | 
					    will be removed in a futrue release.
 | 
				
			||||||
		Reference in New Issue
	
	Block a user