Merge "Prefill Sensu client custom config"
[apex-tripleo-heat-templates.git] / puppet / services / glance-base.yaml
1 heat_template_version: 2016-10-14
2
3 description: >
4   OpenStack Glance Common settings 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   CephClientUserName:
22     default: openstack
23     type: string
24   Debug:
25     default: ''
26     description: Set to True to enable debugging on all services.
27     type: string
28   GlanceNotifierStrategy:
29     description: Strategy to use for Glance notification queue
30     type: string
31     default: noop
32   GlanceLogFile:
33     description: The filepath of the file to use for logging messages from Glance.
34     type: string
35     default: ''
36   GlancePassword:
37     description: The password for the glance service and db account, used by the glance services.
38     type: string
39     hidden: true
40   GlanceBackend:
41     default: swift
42     description: The short name of the Glance backend to use. Should be one
43       of swift, rbd, or file
44     type: string
45     constraints:
46     - allowed_values: ['swift', 'file', 'rbd']
47   GlanceRbdPoolName:
48     default: images
49     type: string
50   RabbitPassword:
51     description: The password for RabbitMQ
52     type: string
53     hidden: true
54   RabbitUserName:
55     default: guest
56     description: The username for RabbitMQ
57     type: string
58   RabbitClientPort:
59     default: 5672
60     description: Set rabbit subscriber port, change this if using SSL
61     type: number
62   RabbitClientUseSSL:
63     default: false
64     description: >
65         Rabbit client subscriber parameter to specify
66         an SSL connection to the RabbitMQ host.
67     type: string
68   KeystoneRegion:
69     type: string
70     default: 'regionOne'
71     description: Keystone region for endpoint
72
73 outputs:
74   role_data:
75     description: Role data for the Glance common role.
76     value:
77       service_name: glance_base
78       config_settings:
79         glance_notifier_strategy: {get_param: GlanceNotifierStrategy}
80         glance_log_file: {get_param: GlanceLogFile}
81         glance::backend::swift::swift_store_auth_address: {get_param: [EndpointMap, KeystoneInternal, uri] }
82         glance::backend::swift::swift_store_user: service:glance
83         glance::backend::swift::swift_store_key: {get_param: GlancePassword}
84         glance::backend::swift::swift_store_create_container_on_put: true
85         glance::backend::rbd::rbd_store_pool: {get_param: GlanceRbdPoolName}
86         glance::backend::rbd::rbd_store_user: {get_param: CephClientUserName}
87         glance_backend: {get_param: GlanceBackend}
88         glance::notify::rabbitmq::rabbit_userid: {get_param: RabbitUserName}
89         glance::notify::rabbitmq::rabbit_port: {get_param: RabbitClientPort}
90         glance::notify::rabbitmq::rabbit_password: {get_param: RabbitPassword}
91         glance::notify::rabbitmq::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
92         glance::notify::rabbitmq::notification_driver: messagingv2
93         glance::registry::db::database_db_max_retries: -1
94         glance::registry::db::database_max_retries: -1
95       service_config_settings:
96         keystone:
97           glance::keystone::auth::public_url: {get_param: [EndpointMap, GlancePublic, uri]}
98           glance::keystone::auth::internal_url: {get_param: [EndpointMap, GlanceInternal, uri]}
99           glance::keystone::auth::admin_url: {get_param: [EndpointMap, GlanceAdmin, uri]}
100           glance::keystone::auth::password: {get_param: GlancePassword }
101           glance::keystone::auth::region: {get_param: KeystoneRegion}
102           glance::keystone::auth::tenant: 'service'
103         mysql:
104           glance::db::mysql::password: {get_param: GlancePassword}
105           glance::db::mysql::user: glance
106           glance::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
107           glance::db::mysql::dbname: glance
108           glance::db::mysql::allowed_hosts:
109             - '%'
110             - "%{hiera('mysql_bind_host')}"