summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/glance/templates/glance-registry.conf
blob: 8453b966b72d19c4b91b71645cffc66447b159a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

@media only all and (prefers-color-scheme: dark) {
.highlight .hll { background-color: #49483e }
.highlight .c { color: #75715e } /* Comment */
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
.highlight .k { color: #66d9ef } /* Keyword */
.highlight .l { color: #ae81ff } /* Literal */
.highlight .n { color: #f8f8f2 } /* Name */
.highlight .o { color: #f92672 } /* Operator */
.highlight .p { color: #f8f8f2 } /* Punctuation */
.highlight .ch { color: #75715e } /* Comment.Hashbang */
.highlight .cm
{% set workers = ansible_processor_vcpus // 2 %}
{% set workers = workers if workers else 1 %}
{% set memcached_servers = [] %}
{% set rabbitmq_servers = [] %}
{% for host in haproxy_hosts.values() %}
{% set _ = memcached_servers.append('%s:11211'% host) %}
{% set _ = rabbitmq_servers.append('%s:5672'% host) %}
{% endfor %}
{% set memcached_servers = memcached_servers|join(',') %}
{% set rabbitmq_servers = rabbitmq_servers|join(',') %}

[DEFAULT]
verbose = {{ VERBOSE }}
debug = {{ DEBUG }}
log_file = /var/log/glance/api.log
bind_host = {{ image_host }}
bind_port = 9191
backlog = 4096
workers = {{ workers }}

notification_driver = messagingv2
rpc_backend = rabbit

[database]
backend = sqlalchemy
connection = mysql://glance:{{ GLANCE_DBPASS }}@{{ db_host }}/glance?charset=utf8
idle_timeout = 30

[profiler]
enabled = True

[keystone_authtoken]
auth_uri = http://{{ internal_vip.ip }}:5000/v2.0
identity_uri = http://{{ internal_vip.ip }}:35357
admin_tenant_name = service
admin_user = glance
admin_password = {{ GLANCE_PASS }}
memcached_servers = {{ memcached_servers }}
token_cache_time = 300
revocation_cache_time = 60

[paste_deploy]
flavor= keystone

[oslo_messaging_amqp]
idle_timeout = 7200

[oslo_messaging_rabbit]
rabbit_hosts = {{ rabbitmq_servers }}
rabbit_use_ssl = false
rabbit_userid = {{ RABBIT_USER }}
rabbit_password = {{ RABBIT_PASS }}
rabbit_virtual_host = /
rabbit_notification_exchange = glance
rabbit_notification_topic = notifications
rabbit_durable_queues = False
pan>: default: '' description: IP address/subnet on the storage mgmt network type: string TenantIpSubnet: default: '' description: IP address/subnet on the tenant network type: string ManagementIpSubnet: default: '' description: IP address/subnet on the management network type: string resources: OsNetConfigImpl: type: OS::Heat::SoftwareConfig properties: group: script config: str_replace: template: get_file: network/scripts/run-os-net-config.sh params: $network_config: network_config: - type: ovs_bridge name: bridge_name use_dhcp: true members: - type: ovs_bond name: bond1 use_dhcp: true ovs_options: get_param: BondInterfaceOvsOptions members: - type: interface name: nic1 - type: interface name: nic2 outputs: OS::stack_id: description: The OsNetConfigImpl resource. value: get_resource: OsNetConfigImpl