Decompose glance_api_servicers input

Because of existing limitations for resource inputs
connections, the glance_api_servicers upstream parameter
was decomposed to host and port.

Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
This commit is contained in:
Bogdan Dobrelya 2015-08-04 13:44:08 +02:00
parent 5d5960190b
commit 4b3f883c4c
4 changed files with 6 additions and 8 deletions

View File

@ -10,6 +10,8 @@ source https://github.com/openstack/puppet-cinder/blob/5.1.0/manifests/glance.pp
(optional) A list of the glance api servers available to cinder. (optional) A list of the glance api servers available to cinder.
Should be an array with [hostname|ip]:port Should be an array with [hostname|ip]:port
Defaults to undef Defaults to undef
Note: for this resource, it is decomposed to *_host and *_port due to
existing implementation limitations
``glance_api_version`` ``glance_api_version``
(optional) Glance API version. (optional) Glance API version.

View File

@ -1,6 +1,5 @@
$resource = hiera($::resource_name) $resource = hiera($::resource_name)
$glance_api_servers = $resource['input']['glance_api_servers']['value']
$glance_api_version = $resource['input']['glance_api_version']['value'] $glance_api_version = $resource['input']['glance_api_version']['value']
$glance_num_retries = $resource['input']['glance_num_retries']['value'] $glance_num_retries = $resource['input']['glance_num_retries']['value']
$glance_api_insecure = $resource['input']['glance_api_insecure']['value'] $glance_api_insecure = $resource['input']['glance_api_insecure']['value']

View File

@ -3,9 +3,6 @@ handler: puppet
puppet_module: cinder puppet_module: cinder
version: 1.0.0 version: 1.0.0
input: input:
glance_api_servers:
schema: str
value: ''
glance_api_version: glance_api_version:
schema: int schema: int
value: 2 value: 2

View File

@ -11,8 +11,8 @@ package { 'cinder':
} -> } ->
class {'cinder::scheduler': class {'cinder::scheduler':
scheduler_driver => $scheduler_driver, scheduler_driver => $scheduler_driver,
package_ensure => $package_ensure, package_ensure => $package_ensure,
enabled => true, enabled => true,
manage_service => true, manage_service => true,
} }