Merge "Increase RabbitMQ maximum file descriptors."
[apex-tripleo-heat-templates.git] / puppet / services / glance-api.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Glance API service 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   Debug:
13     default: ''
14     description: Set to True to enable debugging on all services.
15     type: string
16   GlanceNotifierStrategy:
17     description: Strategy to use for Glance notification queue
18     type: string
19     default: noop
20   GlanceLogFile:
21     description: The filepath of the file to use for logging messages from Glance.
22     type: string
23     default: ''
24   GlancePassword:
25     description: The password for the glance service and db account, used by the glance services.
26     type: string
27     hidden: true
28   GlanceBackend:
29     default: swift
30     description: The short name of the Glance backend to use. Should be one
31       of swift, rbd, or file
32     type: string
33     constraints:
34     - allowed_values: ['swift', 'file', 'rbd']
35   GlanceWorkers:
36     default: 0
37     description: Number of workers for Glance service.
38     type: number
39   RabbitPassword:
40     description: The password for RabbitMQ
41     type: string
42     hidden: true
43   RabbitUserName:
44     default: guest
45     description: The username for RabbitMQ
46     type: string
47   RabbitClientPort:
48     default: 5672
49     description: Set rabbit subscriber port, change this if using SSL
50     type: number
51   RabbitClientUseSSL:
52     default: false
53     description: >
54         Rabbit client subscriber parameter to specify
55         an SSL connection to the RabbitMQ host.
56     type: string
57
58 outputs:
59   role_data:
60     description: Role data for the Glance API role.
61     value:
62       config_settings:
63         glance::api::database_connection:
64           list_join:
65             - ''
66             - - {get_param: [EndpointMap, MysqlInternal, protocol]}
67               - '://glance:'
68               - {get_param: GlancePassword}
69               - '@'
70               - {get_param: [EndpointMap, MysqlInternal, host]}
71               - '/glance'
72         glance::api::bind_port: {get_param: [EndpointMap, GlanceInternal, port]}
73         glance::api::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri] }
74         glance::api::identity_uri: { get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix] }
75         glance::api::registry_host:
76           str_replace:
77             template: "'REGISTRY_HOST'"
78             params:
79               REGISTRY_HOST: {get_param: [EndpointMap, GlanceRegistryInternal, host]}
80         glance::api::keystone_password: {get_param: GlancePassword}
81         glance::api::debug: {get_param: Debug}
82         glance::api::workers: {get_param: GlanceWorkers}
83         glance_notifier_strategy: {get_param: GlanceNotifierStrategy}
84         glance_log_file: {get_param: GlanceLogFile}
85         glance::backend::swift::swift_store_auth_address: {get_param: [EndpointMap, KeystoneInternal, uri] }
86         glance::backend::swift::swift_store_user: service:glance
87         glance::backend::swift::swift_store_key: {get_param: GlancePassword}
88         glance_backend: {get_param: GlanceBackend}
89         glance::db::mysql::password: {get_param: GlancePassword}
90         glance::notify::rabbitmq::rabbit_userid: {get_param: RabbitUserName}
91         glance::notify::rabbitmq::rabbit_port: {get_param: RabbitClientPort}
92         glance::notify::rabbitmq::rabbit_password: {get_param: RabbitPassword}
93         glance::notify::rabbitmq::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
94         glance::keystone::auth::public_url: {get_param: [EndpointMap, GlancePublic, uri]}
95         glance::keystone::auth::internal_url: {get_param: [EndpointMap, GlanceInternal, uri]}
96         glance::keystone::auth::admin_url: {get_param: [EndpointMap, GlanceAdmin, uri]}
97         glance::keystone::auth::password: {get_param: GlancePassword }
98       step_config: |
99         include ::tripleo::profile::base::glance::api