e73a2f507b568c946fccb688e68bcbb84c793b30
[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   ServiceNetMap:
8     default: {}
9     description: Mapping of service_name -> network name. Typically set
10                  via parameter_defaults in the resource registry.  This
11                  mapping overrides those in ServiceNetMapDefaults.
12     type: json
13   EndpointMap:
14     default: {}
15     description: Mapping of service endpoint -> protocol. Typically set
16                  via parameter_defaults in the resource registry.
17     type: json
18   GlanceFilePcmkDevice:
19     default: ''
20     description: >
21       An exported storage device that should be mounted by Pacemaker
22       as Glance storage. Effective when GlanceFilePcmkManage is true.
23     type: string
24   GlanceFilePcmkFstype:
25     default: 'nfs'
26     description: >
27       Filesystem type for Pacemaker mount used as Glance storage.
28       Effective when GlanceFilePcmkManage is true.
29     type: string
30   GlanceFilePcmkManage:
31     default: false
32     description: >
33       Whether to make Glance file backend a mount managed by Pacemaker.
34       Effective when GlanceBackend is 'file'.
35     type: boolean
36   GlanceFilePcmkOptions:
37     default: ''
38     description: >
39       Mount options for Pacemaker mount used as Glance storage.
40       Effective when GlanceFilePcmkManage is true.
41     type: string
42
43 resources:
44
45   GlanceApiBase:
46     type: ../glance-api.yaml
47     properties:
48       ServiceNetMap: {get_param: ServiceNetMap}
49       EndpointMap: {get_param: EndpointMap}
50
51 outputs:
52   role_data:
53     description: Role data for the Glance role.
54     value:
55       service_name: glance_api
56       config_settings:
57         map_merge:
58           - get_attr: [GlanceApiBase, role_data, config_settings]
59           - glance_file_pcmk_device: {get_param: GlanceFilePcmkDevice}
60             glance_file_pcmk_fstype: {get_param: GlanceFilePcmkFstype}
61             glance_file_pcmk_manage: {get_param: GlanceFilePcmkManage}
62             glance_file_pcmk_options: {get_param: GlanceFilePcmkOptions}
63             glance_file_pcmk_directory: '/var/lib/glance/images'
64             glance::api::manage_service: false
65             glance::api::enabled: false
66       step_config: |
67         include ::tripleo::profile::pacemaker::glance