This code moves all deps to an external class so that Keystone can be installed with mechanisms besides packages (like venv or docker). This also cleans-up the dependency tree by removing false or confusing dependencies. Change-Id: If69cd7cba267f75faad51fdbc80a58b24d2095d8 Co-Author: Clayton O'Neill <clayton.oneill@twcable.com>
		
			
				
	
	
		
			39 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Puppet
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Puppet
		
	
	
	
	
	
# == Class: keystone::config
 | 
						|
#
 | 
						|
# This class is used to manage arbitrary keystone configurations.
 | 
						|
#
 | 
						|
# === Parameters
 | 
						|
#
 | 
						|
# [*keystone_config*]
 | 
						|
#   (optional) Allow configuration of arbitrary keystone configurations.
 | 
						|
#   The value is an hash of keystone_config resources. Example:
 | 
						|
#   { 'DEFAULT/foo' => { value => 'fooValue'},
 | 
						|
#     'DEFAULT/bar' => { value => 'barValue'}
 | 
						|
#   }
 | 
						|
#   In yaml format, Example:
 | 
						|
#   keystone_config:
 | 
						|
#     DEFAULT/foo:
 | 
						|
#       value: fooValue
 | 
						|
#     DEFAULT/bar:
 | 
						|
#       value: barValue
 | 
						|
#
 | 
						|
# [*keystone_paste_ini*]
 | 
						|
#   (optional) Allow configuration of /etc/keystone/keystone-paste.ini options.
 | 
						|
#
 | 
						|
#   NOTE: The configuration MUST NOT be already handled by this module
 | 
						|
#   or Puppet catalog compilation will fail with duplicate resources.
 | 
						|
#
 | 
						|
class keystone::config (
 | 
						|
  $keystone_config  = {},
 | 
						|
  $keystone_paste_ini = {},
 | 
						|
) {
 | 
						|
 | 
						|
  include ::keystone::deps
 | 
						|
 | 
						|
  validate_hash($keystone_config)
 | 
						|
  validate_hash($keystone_paste_ini)
 | 
						|
 | 
						|
  create_resources('keystone_config', $keystone_config)
 | 
						|
  create_resources('keystone_paste_ini', $keystone_paste_ini)
 | 
						|
}
 |