 e7ab4ec0d7
			
		
	
	e7ab4ec0d7
	
	
	
		
			
			Add cloudkitty_api_paste_ini type/provider for cloudkitty. Also add the capability to configure api_paste.ini with config.pp. Change-Id: Ie1284e7b8e6f92d4a1f04935b7720840a5415b51 Closes-Bug: #1483371
		
			
				
	
	
		
			39 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Puppet
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Puppet
		
	
	
	
	
	
| # == Class: cloudkitty::config
 | |
| #
 | |
| # This class is used to manage arbitrary cloudkitty configurations.
 | |
| #
 | |
| # === Parameters
 | |
| #
 | |
| # [*cloudkitty_config*]
 | |
| #   (optional) Allow configuration of arbitrary cloudkitty configurations.
 | |
| #   The value is an hash of cloudkitty_config resources. Example:
 | |
| #   { 'DEFAULT/foo' => { value => 'fooValue'},
 | |
| #     'DEFAULT/bar' => { value => 'barValue'}
 | |
| #   }
 | |
| #   In yaml format, Example:
 | |
| #   cloudkitty_config:
 | |
| #     DEFAULT/foo:
 | |
| #       value: fooValue
 | |
| #     DEFAULT/bar:
 | |
| #       value: barValue
 | |
| #
 | |
| # [*cloudkitty_api_paste_ini*]
 | |
| #   (optional) Allow configuration of /etc/cloudkitty/api_paste.ini options.
 | |
| #
 | |
| #   NOTE: The configuration MUST NOT be already handled by this module
 | |
| #   or Puppet catalog compilation will fail with duplicate resources.
 | |
| #
 | |
| class cloudkitty::config (
 | |
|   $cloudkitty_config        = {},
 | |
|   $cloudkitty_api_paste_ini = {},
 | |
| ) {
 | |
| 
 | |
|   include ::cloudkitty::deps
 | |
| 
 | |
|   validate_hash($cloudkitty_config)
 | |
|   validate_hash($cloudkitty_api_paste_ini)
 | |
| 
 | |
|   create_resources('cloudkitty_config', $cloudkitty_config)
 | |
|   create_resources('cloudkitty_api_paste_ini', $cloudkitty_api_paste_ini)
 | |
| }
 |