Merge remote-tracking branch 'upstream/master' into merge-branch

Conflicts:
	metadata/service/support.yml

Change-Id: Icc8a1c0085cac1209b333cfad40917d57edafcf9
This commit is contained in:
Simon Pasquier 2016-11-18 11:46:45 +01:00
commit d6d5154a39
7 changed files with 118 additions and 14 deletions

View File

@ -921,3 +921,15 @@ api_server={{ client.api.host }}
api_port={{ client.api.port }}
{%- endif %}
{%- if pillar.get('salt', {}).get('client', {}).get('enabled', False) %}
{%- set client = pillar.get('salt', {}).get('client', {}) %}
[clients_salt]
user={{ client.user }}
password={{ client.password }}
host={{ client.host }}
{%- endif %}

View File

@ -180,6 +180,7 @@ notification_driver = oslo.messaging.notifier.Notifier
# Seconds to wait for a response from a call. (integer value)
#rpc_response_timeout = 60
rpc_response_timeout = 600
# A URL representing the messaging driver to use and its full configuration. If
# not set, we fall back to the rpc_backend option and driver specific
@ -195,6 +196,10 @@ rpc_backend = rabbit
# exchange name specified in the transport_url option. (string value)
#control_exchange = openstack
max_resources_per_stack=20000
max_json_body_size=10880000
max_template_size=5440000
[heat_api]
#
@ -203,7 +208,7 @@ rpc_backend = rabbit
# Address to bind the server. Useful when selecting a
# particular network interface. (string value)
#bind_host = {{ server.bind.api.address }}
bind_host = {{ server.bind.api.address }}
# The port on which the server will listen. (integer value)
#bind_port=8004
@ -238,7 +243,7 @@ rpc_backend = rabbit
# Address to bind the server. Useful when selecting a
# particular network interface. (string value)
#bind_host = {{ server.bind.api_cfn.address }}
bind_host = {{ server.bind.api_cfn.address }}
# The port on which the server will listen. (integer value)
#bind_port=8000
@ -273,7 +278,7 @@ rpc_backend = rabbit
# Address to bind the server. Useful when selecting a
# particular network interface. (string value)
#bind_host = {{ server.bind.api_cloudwatch.address }}
bind_host = {{ server.bind.api_cloudwatch.address }}
# The port on which the server will listen. (integer value)
#bind_port=8003
@ -403,15 +408,27 @@ connection = {{ server.database.engine }}://{{ server.database.user }}:{{ server
[keystone_authtoken]
auth_type = password
auth_uri=http://{{ server.identity.host }}:5000/v3
auth_url=http://{{ server.identity.host }}:35357/v3
username = {{ server.identity.user }}
password = {{ server.identity.password }}
project_name = {{ server.identity.tenant }}
project_domain_name = default
user_domain_name = default
#auth_type = password
auth_uri=http://{{ server.identity.host }}:5000/v2.0
identity_uri=http://{{ server.identity.host }}:35357
admin_user={{ server.identity.user }}
admin_password={{ server.identity.password }}
admin_tenant_name={{ server.identity.tenant }}
# Commented based on Fuel 9.0 reference configs
#auth_url=http://{{ server.identity.host }}:35357/v3
#username = {{ server.identity.user }}
#password = {{ server.identity.password }}
#project_name = {{ server.identity.tenant }}
#project_domain_name = default
#user_domain_name = default
{%- if server.cache is defined %}
#memcached_servers={%- for member in server.cache.members %}{{ member.host }}:11211{% if not loop.last %},{% endif %}{%- endfor %}
{%- endif %}
{%- if server.cache is defined %}
[cache]
enabled=True
backend=oslo_cache.memcache_pool
memcached_servers={%- for member in server.cache.members %}{{ member.host }}:11211{% if not loop.last %},{% endif %}{%- endfor %}
{%- endif %}
@ -421,6 +438,8 @@ auth_url = http://{{ server.identity.host }}:35357
username = {{ server.identity.user }}
password = {{ server.identity.password }}
user_domain_name = default
project_domain_id=Default
user_domain_id=Default
[matchmaker_redis]
@ -716,6 +735,9 @@ auth_uri=http://{{ server.identity.host }}:5000/v2.0
keystone_ec2_uri=http://{{ server.identity.host }}:5000/v2.0/ec2tokens
[clients_keystone]
auth_uri=http://{{ server.identity.host }}:35357
{%- if pillar.get('opencontrail', {}).get('client', {}).get('enabled', False) %}
{%- from "opencontrail/map.jinja" import client with context %}
@ -729,4 +751,4 @@ auth_host_ip={{ client.identity.host }}
api_server={{ client.api.host }}
api_port={{ client.api.port }}
{%- endif %}
{%- endif %}

View File

@ -10,7 +10,7 @@
'services': ['openstack-heat-api', 'openstack-heat-api-cfn', 'openstack-heat-api-cloudwatch', 'openstack-heat-engine'],
'notification': False
},
}, merge=salt['pillar.get']('heat:server')) %}
}, merge=pillar.heat.get('server', {})) %}
{% set client = salt['grains.filter_by']({
'Debian': {
@ -19,4 +19,4 @@
'RedHat': {
'pkgs': ['python-heatclient'],
},
}, merge=salt['pillar.get']('heat:client')) %}
}, merge=pillar.heat.get('client', {})) %}

10
heat/meta/config.yml Normal file
View File

@ -0,0 +1,10 @@
config:
{%- if pillar.heat.server is defined %}
{%- from "heat/map.jinja" import server with context %}
heat.conf:
source: "salt://heat/files/{{ server.version }}/heat.conf.{{ grains.os_family|default('Debian') }}"
template: jinja
api-paste.ini:
source: "salt://heat/files/{{ server.version }}/api-paste.ini"
template: jinja
{%- endif %}

View File

@ -39,6 +39,8 @@ keystonercv3:
{%- if not grains.get('virtual_subtype', None) == "Docker" %}
{%- if not salt['pillar.get']('linux:system:repo:mirantis_openstack', False) %}
heat_client_roles:
keystone.role_present:
- names:
@ -51,6 +53,8 @@ heat_client_roles:
- require:
- pkg: heat_server_packages
{%- endif %}
{%- if server.version != 'juno' %}
heat_keystone_setup:

View File

@ -0,0 +1,54 @@
parameters:
kubernetes:
control:
configmap:
heat-server:
grains:
os_family: Debian
pillar:
heat:
server:
stack_domain_admin:
name: heat_domain_admin
password: ${_param:heat_domain_admin_password}
domain: heat
enabled: true
region: RegionOne
version: ${_param:heat_version}
bind:
api_cfn:
address: 0.0.0.0
api_cloudwatch:
address: 0.0.0.0
api:
address: 0.0.0.0
database:
engine: mysql
host: ${_param:mysql_service_host}
port: 3306
name: heat
user: heat
password: ${_param:mysql_heat_password}
metadata:
host: 0.0.0.0
port: 8000
waitcondition:
host: 0.0.0.0
port: 8000
watch:
host: 0.0.0.0
port: 8003
identity:
engine: keystone
host: ${_param:keystone_service_host}
port: 35357
tenant: service
user: heat
password: ${_param:keystone_heat_password}
message_queue:
engine: rabbitmq
host: ${_param:rabbitmq_service_host}
port: 5672
user: openstack
password: ${_param:rabbitmq_openstack_password}
virtual_host: '/openstack'

View File

@ -9,5 +9,7 @@ parameters:
enabled: true
sphinx:
enabled: true
config:
enabled: true
grafana:
enabled: true