Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Openstack Senlin role deployment
This commit adds experimental deployment of Senlin role. Change-Id: I1e116518ec437c1634ea9d40172e424c73da56d5
- Loading branch information
Dmitriy Rabotyagov
authored and
Jonathan Rosser
committed
Sep 9, 2020
1 parent
72a39d6
commit 3214d6f
Showing
16 changed files
with
175 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# The controller host that the senlin control plane will be run on | ||
senlin-infra_hosts: | ||
aio1: | ||
ip: 172.29.236.100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# The infra nodes that will be running the senlin services | ||
senlin-infra_hosts: | ||
infra1: | ||
ip: 172.20.236.111 | ||
infra2: | ||
ip: 172.20.236.112 | ||
infra3: | ||
ip: 172.20.236.113 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
component_skel: | ||
senlin_api: | ||
belongs_to: | ||
- senlin_all | ||
senlin_engine: | ||
belongs_to: | ||
- senlin_all | ||
senlin_conductor: | ||
belongs_to: | ||
- senlin_all | ||
senlin_health_manager: | ||
belongs_to: | ||
- senlin_all | ||
|
||
container_skel: | ||
senlin_container: | ||
belongs_to: | ||
- senlin-infra_containers | ||
contains: | ||
- senlin_api | ||
- senlin_engine | ||
- senlin_conductor | ||
- senlin_health_manager | ||
|
||
physical_skel: | ||
senlin-infra_containers: | ||
belongs_to: | ||
- all_containers | ||
senlin-infra_hosts: | ||
belongs_to: | ||
- hosts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
--- | ||
# Copyright 2020, City Network International AB | ||
# | ||
# 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: Gather senlin facts | ||
hosts: senlin_all | ||
gather_facts: "{{ osa_gather_facts | default(True) }}" | ||
tags: | ||
- always | ||
|
||
- name: Install senlin services | ||
hosts: senlin_all | ||
gather_facts: false | ||
user: root | ||
environment: "{{ deployment_environment_variables | default({}) }}" | ||
vars_files: | ||
- "defaults/repo_packages/openstack_services.yml" | ||
- "defaults/{{ install_method }}_install.yml" | ||
tags: | ||
- senlin | ||
pre_tasks: | ||
# In order to ensure that any container, software or | ||
# config file changes which causes a container/service | ||
# restart do not cause an unexpected outage, we drain | ||
# the load balancer back end for this container. | ||
- include_tasks: common-tasks/haproxy-endpoint-manage.yml | ||
vars: | ||
haproxy_backend: senlin_api-back | ||
haproxy_state: disabled | ||
when: | ||
- "'senlin_api' in group_names" | ||
- "groups['senlin_api'] | length > 1" | ||
|
||
- include_tasks: common-tasks/unbound-clients.yml | ||
when: | ||
- hostvars['localhost']['resolvconf_enabled'] | bool | ||
|
||
roles: | ||
- role: "os_senlin" | ||
|
||
post_tasks: | ||
# Now that container changes are done, we can set | ||
# the load balancer back end for this container | ||
# to available again. | ||
- include_tasks: common-tasks/haproxy-endpoint-manage.yml | ||
vars: | ||
haproxy_backend: senlin_api-back | ||
haproxy_state: enabled | ||
when: | ||
- "'senlin_api' in group_names" | ||
- "groups['senlin_api'] | length > 1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
features: | ||
- | | ||
Experimental support has been added to allow the deployment of the | ||
OpenStack Senlin service when hosts are present in the host group | ||
``senlin-infra_hosts``. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters