Bump template version for all templates to "ocata"
[apex-tripleo-heat-templates.git] / puppet / services / glance-base.yaml
1 heat_template_version: ocata
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   GlanceNfsEnabled:
48     default: false
49     description: >
50       When using GlanceBackend 'file', mount NFS share for image storage.
51     type: boolean
52   GlanceNfsShare:
53     default: ''
54     description: >
55       NFS share to mount for image storage (when GlanceNfsEnabled is true)
56     type: string
57   GlanceNfsOptions:
58     default: 'intr,context=system_u:object_r:glance_var_lib_t:s0'
59     description: >
60       NFS mount options for image storage (when GlanceNfsEnabled is true)
61     type: string
62   GlanceRbdPoolName:
63     default: images
64     type: string
65   RabbitPassword:
66     description: The password for RabbitMQ
67     type: string
68     hidden: true
69   RabbitUserName:
70     default: guest
71     description: The username for RabbitMQ
72     type: string
73   RabbitClientPort:
74     default: 5672
75     description: Set rabbit subscriber port, change this if using SSL
76     type: number
77   RabbitClientUseSSL:
78     default: false
79     description: >
80         Rabbit client subscriber parameter to specify
81         an SSL connection to the RabbitMQ host.
82     type: string
83   KeystoneRegion:
84     type: string
85     default: 'regionOne'
86     description: Keystone region for endpoint
87
88 outputs:
89   role_data:
90     description: Role data for the Glance common role.
91     value:
92       service_name: glance_base
93       config_settings:
94         glance_notifier_strategy: {get_param: GlanceNotifierStrategy}
95         glance_log_file: {get_param: GlanceLogFile}
96         glance::backend::swift::swift_store_auth_address: {get_param: [EndpointMap, KeystoneInternal, uri] }
97         glance::backend::swift::swift_store_user: service:glance
98         glance::backend::swift::swift_store_key: {get_param: GlancePassword}
99         glance::backend::swift::swift_store_create_container_on_put: true
100         glance::backend::rbd::rbd_store_pool: {get_param: GlanceRbdPoolName}
101         glance::backend::rbd::rbd_store_user: {get_param: CephClientUserName}
102         glance_backend: {get_param: GlanceBackend}
103         glance::notify::rabbitmq::rabbit_userid: {get_param: RabbitUserName}
104         glance::notify::rabbitmq::rabbit_port: {get_param: RabbitClientPort}
105         glance::notify::rabbitmq::rabbit_password: {get_param: RabbitPassword}
106         glance::notify::rabbitmq::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
107         glance::notify::rabbitmq::notification_driver: messagingv2
108         glance::registry::db::database_db_max_retries: -1
109         glance::registry::db::database_max_retries: -1
110         tripleo::profile::base::glance::api::glance_nfs_enabled: {get_param: GlanceNfsEnabled}
111         tripleo::glance::nfs_mount::share: {get_param: GlanceNfsShare}
112         tripleo::glance::nfs_mount::options: {get_param: GlanceNfsOptions}
113       service_config_settings:
114         keystone:
115           glance::keystone::auth::public_url: {get_param: [EndpointMap, GlancePublic, uri]}
116           glance::keystone::auth::internal_url: {get_param: [EndpointMap, GlanceInternal, uri]}
117           glance::keystone::auth::admin_url: {get_param: [EndpointMap, GlanceAdmin, uri]}
118           glance::keystone::auth::password: {get_param: GlancePassword }
119           glance::keystone::auth::region: {get_param: KeystoneRegion}
120           glance::keystone::auth::tenant: 'service'
121         mysql:
122           glance::db::mysql::password: {get_param: GlancePassword}
123           glance::db::mysql::user: glance
124           glance::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
125           glance::db::mysql::dbname: glance
126           glance::db::mysql::allowed_hosts:
127             - '%'
128             - "%{hiera('mysql_bind_host')}"