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