Add support to deploy mistral
In additin to adding mistral role we also include os-mistral-install.yml to deploy mistral to the appropriate hosts. Change-Id: I9c93e82ec655459c45baf91ed6e6130f2735f61f
This commit is contained in:
parent
c62d61c16f
commit
5b9b6d4b76
@ -110,6 +110,10 @@
|
||||
scm: git
|
||||
src: https://git.openstack.org/openstack/openstack-ansible-os_magnum
|
||||
version: master
|
||||
- name: os_mistral
|
||||
scm: git
|
||||
src: https://git.openstack.org/openstack/openstack-ansible-os_mistral
|
||||
version: master
|
||||
- name: os_neutron
|
||||
scm: git
|
||||
src: https://git.openstack.org/openstack/openstack-ansible-os_neutron
|
||||
|
3
etc/openstack_deploy/conf.d/mistral.yml.aio
Normal file
3
etc/openstack_deploy/conf.d/mistral.yml.aio
Normal file
@ -0,0 +1,3 @@
|
||||
mistral-infra_hosts:
|
||||
aio1:
|
||||
ip: 172.29.236.100
|
8
etc/openstack_deploy/conf.d/mistral.yml.example
Normal file
8
etc/openstack_deploy/conf.d/mistral.yml.example
Normal file
@ -0,0 +1,8 @@
|
||||
# The infra nodes that will be running the mistal services
|
||||
mistral-infra_hosts:
|
||||
infra1:
|
||||
ip: 172.20.236.111
|
||||
infra2:
|
||||
ip: 172.20.236.112
|
||||
infra3:
|
||||
ip: 172.20.236.113
|
@ -192,6 +192,11 @@ magnum_oslomsg_rpc_password:
|
||||
#magnum_oslomsg_notify_password:
|
||||
magnum_trustee_password:
|
||||
|
||||
# Mistral Options
|
||||
mistral_service_password:
|
||||
mistral_galera_password:
|
||||
mistral_oslomsg_rpc_password:
|
||||
|
||||
## Rally Options:
|
||||
rally_galera_password:
|
||||
|
||||
|
46
inventory/env.d/mistral.yml
Normal file
46
inventory/env.d/mistral.yml
Normal file
@ -0,0 +1,46 @@
|
||||
---
|
||||
# Copyright 2019, VEXXHOST, Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
component_skel:
|
||||
mistral_api:
|
||||
belongs_to:
|
||||
- mistral_all
|
||||
mistral_engine:
|
||||
belongs_to:
|
||||
- mistral_all
|
||||
mistral_executor:
|
||||
belongs_to:
|
||||
- mistral_all
|
||||
mistral_notifier:
|
||||
belongs_to:
|
||||
- mistral_all
|
||||
|
||||
container_skel:
|
||||
mistral_container:
|
||||
belongs_to:
|
||||
- mistral-infra_containers
|
||||
contains:
|
||||
- mistral_api
|
||||
- mistral_engine
|
||||
- mistral_executor
|
||||
- mistral_notifier
|
||||
|
||||
physical_skel:
|
||||
mistral-infra_containers:
|
||||
belongs_to:
|
||||
- all_containers
|
||||
mistral-infra_hosts:
|
||||
belongs_to:
|
||||
- hosts
|
@ -266,6 +266,15 @@ haproxy_default_services:
|
||||
haproxy_backend_options:
|
||||
- "httpchk GET / HTTP/1.0\\r\\nUser-agent:\\ osa-haproxy-healthcheck"
|
||||
haproxy_service_enabled: "{{ groups['magnum_all'] is defined and groups['magnum_all'] | length > 0 }}"
|
||||
- service:
|
||||
haproxy_service_name: mistral
|
||||
haproxy_backend_nodes: "{{ groups['mistral_all'] | default([]) }}"
|
||||
haproxy_ssl: "{{ haproxy_ssl }}"
|
||||
haproxy_port: 8989
|
||||
haproxy_balance_type: http
|
||||
haproxy_backend_options:
|
||||
- "httpchk GET / HTTP/1.0\\r\\nUser-agent:\\ osa-haproxy-healthcheck"
|
||||
haproxy_service_enabled: "{{ groups['mistral_all'] is defined and groups['mistral_all'] | length > 0 }}"
|
||||
- service:
|
||||
haproxy_service_name: trove
|
||||
haproxy_backend_nodes: "{{ groups['trove_api'] | default([]) }}"
|
||||
|
25
inventory/group_vars/mistral_all.yml
Normal file
25
inventory/group_vars/mistral_all.yml
Normal file
@ -0,0 +1,25 @@
|
||||
---
|
||||
# Copyright 2019, VEXXHOST, Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
|
||||
mistral_bind_port: 8989
|
||||
mistral_service_proto: http
|
||||
mistral_service_publicuri_proto: "{{ openstack_service_publicuri_proto | default(mistral_service_proto) }}"
|
||||
mistral_service_publicurl: "{{ mistral_service_publicuri_proto }}://{{ external_lb_vip_address }}:{{ mistral_bind_port }}"
|
||||
mistral_service_internaluri_proto: "{{ openstack_service_internaluri_proto | default(mistral_service_proto) }}"
|
||||
mistral_service_internalurl: "{{ mistral_service_internaluri_proto }}://{{ internal_lb_vip_address }}:{{ mistral_bind_port }}"
|
||||
mistral_service_adminuri_proto: "{{ openstack_service_adminuri_proto | default(mistral_service_proto) }}"
|
||||
mistral_service_adminurl: "{{ mistral_service_adminuri_proto }}://{{ internal_lb_vip_address }}:{{ mistral_bind_port }}"
|
||||
mistral_service_region: "{{ service_region }}"
|
@ -133,6 +133,12 @@ ironic_server
|
||||
|
||||
[magnum_all]
|
||||
|
||||
[mistral_all:children]
|
||||
mistral_api
|
||||
mistral_engine
|
||||
mistral_executor
|
||||
mistral_notifier
|
||||
|
||||
[neutron_all:children]
|
||||
neutron_agent
|
||||
neutron_bgp_dragent
|
||||
|
@ -256,6 +256,11 @@ magnum_git_install_branch: 1cca9cc809eb81e666cd332f7275e3bbb34c553b # HEAD as of
|
||||
magnum_git_project_group: magnum_all
|
||||
magnum_git_track_branch: master
|
||||
|
||||
## Mistral service
|
||||
mistral_git_repo: https://git.openstack.org/openstack/mistral
|
||||
mistral_git_install_branch: 608367f28d10decb0e22a8fe7a58b5c38782a1e9 # HEAD as of 26.02.2019
|
||||
mistral_git_project_group: mistral_all
|
||||
mistral_git_track_branch: master
|
||||
|
||||
## Trove service
|
||||
trove_git_repo: https://git.openstack.org/openstack/trove
|
||||
|
55
playbooks/os-mistral-install.yml
Normal file
55
playbooks/os-mistral-install.yml
Normal file
@ -0,0 +1,55 @@
|
||||
---
|
||||
# Copyright 2019, VEXXHOST, Inc
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
- name: Install mistral components
|
||||
hosts: mistral_all
|
||||
gather_facts: "{{ osa_gather_facts | default(True) }}"
|
||||
environment: "{{ deployment_environment_variables | default({}) }}"
|
||||
user: root
|
||||
vars_files:
|
||||
- "defaults/{{ install_method }}_install.yml"
|
||||
tags:
|
||||
- mistral
|
||||
pre_tasks:
|
||||
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
||||
when: not is_metal
|
||||
|
||||
- name: Configure log directories (on metal)
|
||||
include_tasks: common-tasks/os-log-dir-setup.yml
|
||||
vars:
|
||||
log_dirs:
|
||||
- src: "/openstack/log/{{ inventory_hostname }}-mistral"
|
||||
dest: "/var/log/mistral"
|
||||
|
||||
- include_tasks: common-tasks/unbound-clients.yml
|
||||
when:
|
||||
- hostvars['localhost']['resolvconf_enabled'] | bool
|
||||
|
||||
- name: Configure package proxy cache
|
||||
include_tasks: common-tasks/package-cache-proxy.yml
|
||||
when: install_method == "source"
|
||||
|
||||
roles:
|
||||
- role: "os_mistral"
|
||||
- role: "system_crontab_coordination"
|
||||
tags:
|
||||
- crontab
|
||||
|
||||
post_tasks:
|
||||
- include_tasks: "common-tasks/rsyslog-client.yml"
|
||||
vars:
|
||||
rsyslog_client_log_rotate_file: mistral_log_rotate
|
||||
rsyslog_client_log_dir: "/var/log/mistral"
|
||||
rsyslog_client_config_name: "99-mistral-rsyslog-client.conf"
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
features:
|
||||
- Adding support for Mistral to be built as part of the repo build process.
|
||||
- Adding the ``os-mistral-install.yml`` file to deploy mistral to hosts tagged
|
||||
with hostgroup ``mistral_all``
|
@ -275,6 +275,15 @@ class TestAnsibleInventoryFormatConstraints(unittest.TestCase):
|
||||
'magnum-infra_hosts',
|
||||
'magnum_all',
|
||||
'magnum_container',
|
||||
'mistral-infra_all',
|
||||
'mistral-infra_containers',
|
||||
'mistral-infra_hosts',
|
||||
'mistral_all',
|
||||
'mistral_container',
|
||||
'mistral_api',
|
||||
'mistral_engine',
|
||||
'mistral_executor',
|
||||
'mistral_notifier',
|
||||
'mano_all',
|
||||
'mano_containers',
|
||||
'mano_hosts',
|
||||
|
Loading…
Reference in New Issue
Block a user