Move all dependency tracking to an external class which simplifies the relationships and allows managing Mistral without necessarily using packages. Change-Id: If83638c6cdabc4256cd775d7a0187a5668e4d2c9
		
			
				
	
	
		
			33 lines
		
	
	
		
			821 B
		
	
	
	
		
			Puppet
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			821 B
		
	
	
	
		
			Puppet
		
	
	
	
	
	
# == Class: mistral::config
 | 
						|
#
 | 
						|
# This class is used to manage arbitrary mistral configurations.
 | 
						|
#
 | 
						|
# === Parameters
 | 
						|
#
 | 
						|
# [*mistral_config*]
 | 
						|
#   (optional) Allow configuration of arbitrary mistral configurations.
 | 
						|
#   The value is an hash of mistral_config resources. Example:
 | 
						|
#   { 'DEFAULT/foo' => { value => 'fooValue'},
 | 
						|
#     'DEFAULT/bar' => { value => 'barValue'}
 | 
						|
#   }
 | 
						|
#   In yaml format, Example:
 | 
						|
#   mistral_config:
 | 
						|
#     DEFAULT/foo:
 | 
						|
#       value: fooValue
 | 
						|
#     DEFAULT/bar:
 | 
						|
#       value: barValue
 | 
						|
#
 | 
						|
#   NOTE: The configuration MUST NOT be already handled by this module
 | 
						|
#   or Puppet catalog compilation will fail with duplicate resources.
 | 
						|
#
 | 
						|
class mistral::config (
 | 
						|
  $mistral_config = {},
 | 
						|
) {
 | 
						|
 | 
						|
  include ::mistral::deps
 | 
						|
 | 
						|
  validate_hash($mistral_config)
 | 
						|
 | 
						|
  create_resources('mistral_config', $mistral_config)
 | 
						|
}
 |