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