ad964216001906f5124316b5d5bc3502b37ba78e
[apex-tripleo-heat-templates.git] / puppet / services / pacemaker / glance-api.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Glance API service with Pacemaker configured with Puppet.
5
6 parameters:
7   EndpointMap:
8     default: {}
9     description: Mapping of service endpoint -> protocol. Typically set
10                  via parameter_defaults in the resource registry.
11     type: json
12   MysqlVirtualIPUri:
13     type: string
14     default: ''
15   GlanceFilePcmkDevice:
16     default: ''
17     description: >
18       An exported storage device that should be mounted by Pacemaker
19       as Glance storage. Effective when GlanceFilePcmkManage is true.
20     type: string
21   GlanceFilePcmkFstype:
22     default: 'nfs'
23     description: >
24       Filesystem type for Pacemaker mount used as Glance storage.
25       Effective when GlanceFilePcmkManage is true.
26     type: string
27   GlanceFilePcmkManage:
28     default: false
29     description: >
30       Whether to make Glance file backend a mount managed by Pacemaker.
31       Effective when GlanceBackend is 'file'.
32     type: boolean
33   GlanceFilePcmkOptions:
34     default: ''
35     description: >
36       Mount options for Pacemaker mount used as Glance storage.
37       Effective when GlanceFilePcmkManage is true.
38     type: string
39
40 resources:
41
42   GlanceApiBase:
43     type: ../glance-api.yaml
44     properties:
45       EndpointMap: {get_param: EndpointMap}
46       MysqlVirtualIPUri: {get_param: MysqlVirtualIPUri}
47
48 outputs:
49   role_data:
50     description: Role data for the Glance role.
51     value:
52       config_settings:
53         map_merge:
54           - get_attr: [GlanceApiBase, role_data, config_settings]
55           - glance_file_pcmk_device: {get_param: GlanceFilePcmkDevice}
56             glance_file_pcmk_fstype: {get_param: GlanceFilePcmkFstype}
57             glance_file_pcmk_manage: {get_param: GlanceFilePcmkManage}
58             glance_file_pcmk_options: {get_param: GlanceFilePcmkOptions}
59             glance::api::manage_service: false
60             glance::api::enabled: false
61       step_config: |
62         include ::tripleo::profile::pacemaker::glance