Puppet Class: cubbystack::cinder::api_paste
- Defined in:
- manifests/cinder/api_paste.pp
Overview
Class: cubbystack::cinder::api_paste
Configures api_paste authentication for cinder
Parameters
- settings
-
A hash of key => value settings to go in ap-paste.ini
- config_file
-
The path to api-paste.ini Defaults to /etc/cinder/api-paste.ini
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'manifests/cinder/api_paste.pp', line 14
class cubbystack::cinder::api_paste (
$settings,
$config_file = '/etc/cinder/api-paste.ini',
) {
## Meta settings and globals
$tags = ['openstack', 'cinder']
# Global file attributes
File {
ensure => present,
owner => 'cinder',
group => 'cinder',
mode => '0640',
tag => $tags,
require => Package['cinder-common'],
}
file { $config_file: }
$settings.each |$setting, $value| {
cubbystack_config { "${config_file}: ${setting}":
value => $value,
tag => $tags,
}
}
}
|