2016-03-23 20:14:54 -04:00
|
|
|
heat_template_version: 2016-04-08
|
|
|
|
|
|
|
|
description: >
|
|
|
|
OpenStack Glance API service configured with Puppet
|
|
|
|
|
|
|
|
parameters:
|
2016-08-11 23:07:46 +02:00
|
|
|
ServiceNetMap:
|
|
|
|
default: {}
|
|
|
|
description: Mapping of service_name -> network name. Typically set
|
|
|
|
via parameter_defaults in the resource registry. This
|
|
|
|
mapping overrides those in ServiceNetMapDefaults.
|
|
|
|
type: json
|
2016-08-17 09:26:05 -04:00
|
|
|
DefaultPasswords:
|
|
|
|
default: {}
|
|
|
|
type: json
|
2016-03-23 20:14:54 -04:00
|
|
|
EndpointMap:
|
|
|
|
default: {}
|
|
|
|
description: Mapping of service endpoint -> protocol. Typically set
|
|
|
|
via parameter_defaults in the resource registry.
|
|
|
|
type: json
|
2016-06-02 02:55:08 +02:00
|
|
|
CephClientUserName:
|
|
|
|
default: openstack
|
|
|
|
type: string
|
2016-03-23 20:14:54 -04:00
|
|
|
Debug:
|
|
|
|
default: ''
|
|
|
|
description: Set to True to enable debugging on all services.
|
|
|
|
type: string
|
|
|
|
GlanceNotifierStrategy:
|
|
|
|
description: Strategy to use for Glance notification queue
|
|
|
|
type: string
|
|
|
|
default: noop
|
|
|
|
GlanceLogFile:
|
|
|
|
description: The filepath of the file to use for logging messages from Glance.
|
|
|
|
type: string
|
|
|
|
default: ''
|
|
|
|
GlancePassword:
|
|
|
|
description: The password for the glance service and db account, used by the glance services.
|
|
|
|
type: string
|
|
|
|
hidden: true
|
|
|
|
GlanceBackend:
|
|
|
|
default: swift
|
|
|
|
description: The short name of the Glance backend to use. Should be one
|
|
|
|
of swift, rbd, or file
|
|
|
|
type: string
|
|
|
|
constraints:
|
|
|
|
- allowed_values: ['swift', 'file', 'rbd']
|
|
|
|
GlanceWorkers:
|
|
|
|
default: 0
|
|
|
|
description: Number of workers for Glance service.
|
|
|
|
type: number
|
2016-06-02 02:55:08 +02:00
|
|
|
GlanceRbdPoolName:
|
|
|
|
default: images
|
|
|
|
type: string
|
2016-03-23 20:14:54 -04:00
|
|
|
RabbitPassword:
|
|
|
|
description: The password for RabbitMQ
|
|
|
|
type: string
|
|
|
|
hidden: true
|
|
|
|
RabbitUserName:
|
|
|
|
default: guest
|
|
|
|
description: The username for RabbitMQ
|
|
|
|
type: string
|
2016-04-28 11:17:57 -05:00
|
|
|
RabbitClientPort:
|
|
|
|
default: 5672
|
|
|
|
description: Set rabbit subscriber port, change this if using SSL
|
|
|
|
type: number
|
2016-03-23 20:14:54 -04:00
|
|
|
RabbitClientUseSSL:
|
|
|
|
default: false
|
|
|
|
description: >
|
|
|
|
Rabbit client subscriber parameter to specify
|
|
|
|
an SSL connection to the RabbitMQ host.
|
|
|
|
type: string
|
2016-08-08 13:34:15 +03:00
|
|
|
KeystoneRegion:
|
|
|
|
type: string
|
|
|
|
default: 'regionOne'
|
|
|
|
description: Keystone region for endpoint
|
2016-06-09 15:39:22 +02:00
|
|
|
MonitoringSubscriptionGlanceApi:
|
|
|
|
default: 'overcloud-glance-api'
|
|
|
|
type: string
|
2016-03-23 20:14:54 -04:00
|
|
|
|
|
|
|
outputs:
|
|
|
|
role_data:
|
|
|
|
description: Role data for the Glance API role.
|
|
|
|
value:
|
2016-07-28 10:30:10 +01:00
|
|
|
service_name: glance_api
|
2016-06-09 15:39:22 +02:00
|
|
|
monitoring_subscription: {get_param: MonitoringSubscriptionGlanceApi}
|
2016-03-23 20:14:54 -04:00
|
|
|
config_settings:
|
2016-05-19 00:13:11 +02:00
|
|
|
glance::api::database_connection:
|
2016-03-23 20:14:54 -04:00
|
|
|
list_join:
|
|
|
|
- ''
|
2016-05-19 00:13:11 +02:00
|
|
|
- - {get_param: [EndpointMap, MysqlInternal, protocol]}
|
|
|
|
- '://glance:'
|
2016-03-23 20:14:54 -04:00
|
|
|
- {get_param: GlancePassword}
|
|
|
|
- '@'
|
2016-05-19 00:13:11 +02:00
|
|
|
- {get_param: [EndpointMap, MysqlInternal, host]}
|
2016-03-23 20:14:54 -04:00
|
|
|
- '/glance'
|
|
|
|
glance::api::bind_port: {get_param: [EndpointMap, GlanceInternal, port]}
|
2016-08-30 16:04:31 -04:00
|
|
|
glance::api::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri] }
|
|
|
|
glance::api::authtoken::auth_url: { get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix] }
|
2016-03-23 20:14:54 -04:00
|
|
|
glance::api::registry_host:
|
|
|
|
str_replace:
|
|
|
|
template: "'REGISTRY_HOST'"
|
|
|
|
params:
|
|
|
|
REGISTRY_HOST: {get_param: [EndpointMap, GlanceRegistryInternal, host]}
|
2016-09-14 13:50:08 +03:00
|
|
|
glance::api::registry_client_protocol: {get_param: [EndpointMap, GlanceRegistryInternal, protocol] }
|
2016-08-30 16:04:31 -04:00
|
|
|
glance::api::authtoken::password: {get_param: GlancePassword}
|
2016-07-13 11:48:04 +03:00
|
|
|
glance::api::enable_proxy_headers_parsing: true
|
2016-03-23 20:14:54 -04:00
|
|
|
glance::api::debug: {get_param: Debug}
|
|
|
|
glance::api::workers: {get_param: GlanceWorkers}
|
|
|
|
glance_notifier_strategy: {get_param: GlanceNotifierStrategy}
|
|
|
|
glance_log_file: {get_param: GlanceLogFile}
|
|
|
|
glance::backend::swift::swift_store_auth_address: {get_param: [EndpointMap, KeystoneInternal, uri] }
|
|
|
|
glance::backend::swift::swift_store_user: service:glance
|
|
|
|
glance::backend::swift::swift_store_key: {get_param: GlancePassword}
|
2016-07-13 11:29:43 -04:00
|
|
|
glance::backend::swift::swift_store_create_container_on_put: true
|
2016-06-02 02:55:08 +02:00
|
|
|
glance::backend::rbd::rbd_store_pool: {get_param: GlanceRbdPoolName}
|
|
|
|
glance::backend::rbd::rbd_store_user: {get_param: CephClientUserName}
|
2016-03-23 20:14:54 -04:00
|
|
|
glance_backend: {get_param: GlanceBackend}
|
|
|
|
glance::db::mysql::password: {get_param: GlancePassword}
|
|
|
|
glance::notify::rabbitmq::rabbit_userid: {get_param: RabbitUserName}
|
2016-04-28 11:17:57 -05:00
|
|
|
glance::notify::rabbitmq::rabbit_port: {get_param: RabbitClientPort}
|
2016-03-23 20:14:54 -04:00
|
|
|
glance::notify::rabbitmq::rabbit_password: {get_param: RabbitPassword}
|
|
|
|
glance::notify::rabbitmq::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
|
2015-11-11 15:32:47 +00:00
|
|
|
glance::keystone::auth::public_url: {get_param: [EndpointMap, GlancePublic, uri]}
|
|
|
|
glance::keystone::auth::internal_url: {get_param: [EndpointMap, GlanceInternal, uri]}
|
|
|
|
glance::keystone::auth::admin_url: {get_param: [EndpointMap, GlanceAdmin, uri]}
|
|
|
|
glance::keystone::auth::password: {get_param: GlancePassword }
|
2016-08-08 13:34:15 +03:00
|
|
|
glance::keystone::auth::region: {get_param: KeystoneRegion}
|
2016-07-29 11:46:40 +02:00
|
|
|
glance::registry::db::database_db_max_retries: -1
|
|
|
|
glance::registry::db::database_max_retries: -1
|
2016-07-20 10:48:23 -04:00
|
|
|
tripleo.glance_api.firewall_rules:
|
|
|
|
'112 glance_api':
|
|
|
|
dport:
|
|
|
|
- 9292
|
|
|
|
- 13292
|
2016-07-13 11:29:43 -04:00
|
|
|
glance::keystone::auth::tenant: 'service'
|
2016-08-30 16:04:31 -04:00
|
|
|
glance::api::authtoken::project_name: 'service'
|
2016-07-13 11:29:43 -04:00
|
|
|
glance::api::pipeline: 'keystone'
|
|
|
|
glance::api::show_image_direct_url: true
|
2016-08-24 14:02:13 -04:00
|
|
|
# NOTE: bind IP is found in Heat replacing the network name with the
|
|
|
|
# local node IP for the given network; replacement examples
|
|
|
|
# (eg. for internal_api):
|
|
|
|
# internal_api -> IP
|
|
|
|
# internal_api_uri -> [IP]
|
|
|
|
# internal_api_subnet - > IP/CIDR
|
|
|
|
glance::api::bind_host: {get_param: [ServiceNetMap, GlanceApiNetwork]}
|
2016-03-23 20:14:54 -04:00
|
|
|
step_config: |
|
|
|
|
include ::tripleo::profile::base::glance::api
|