Add support to install a molteniron server
Molteniron is now an Ironic project which allows devstack testing on bare metal nodes. Change-Id: Ib30da201e0a170d15a2de342482c48ba98f89c5b
This commit is contained in:
parent
05d1246137
commit
bb7c06768a
@ -190,3 +190,7 @@
|
|||||||
scm: git
|
scm: git
|
||||||
src: https://git.openstack.org/openstack/openstack-ansible-os_octavia
|
src: https://git.openstack.org/openstack/openstack-ansible-os_octavia
|
||||||
version: master
|
version: master
|
||||||
|
- name: os_molteniron
|
||||||
|
scm: git
|
||||||
|
src: https://git.openstack.org/openstack/openstack-ansible-os_molteniron
|
||||||
|
version: master
|
||||||
|
4
etc/openstack_deploy/conf.d/molteniron.yml.aio
Normal file
4
etc/openstack_deploy/conf.d/molteniron.yml.aio
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
molteniron-server_hosts:
|
||||||
|
aio1:
|
||||||
|
ip: 172.29.236.100
|
@ -152,3 +152,6 @@ barbican_service_password:
|
|||||||
designate_galera_password:
|
designate_galera_password:
|
||||||
designate_rabbitmq_password:
|
designate_rabbitmq_password:
|
||||||
designate_service_password:
|
designate_service_password:
|
||||||
|
|
||||||
|
## Molteniron Options:
|
||||||
|
molteniron_container_mysql_password:
|
||||||
|
@ -202,3 +202,8 @@ trove_dashboard_git_project_group: horizon_all
|
|||||||
octavia_git_repo: https://git.openstack.org/openstack/octavia
|
octavia_git_repo: https://git.openstack.org/openstack/octavia
|
||||||
octavia_git_install_branch: f7426dcf96874b6e3ce15009d251866f6de01116 # HEAD of "master" as of `28.2.2017
|
octavia_git_install_branch: f7426dcf96874b6e3ce15009d251866f6de01116 # HEAD of "master" as of `28.2.2017
|
||||||
octavia_git_project_group: octavia_all
|
octavia_git_project_group: octavia_all
|
||||||
|
|
||||||
|
## Molteniron service
|
||||||
|
molteniron_git_repo: https://git.openstack.org/openstack/molteniron
|
||||||
|
molteniron_git_install_branch: 7402de62eb4497e53d633e0dff9a1150b7acf175
|
||||||
|
molteniron_git_project_group: molteniron_all
|
||||||
|
37
playbooks/inventory/env.d/molteniron.yml
Normal file
37
playbooks/inventory/env.d/molteniron.yml
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
---
|
||||||
|
# Copyright (c) 2017 IBM Corporation.
|
||||||
|
#
|
||||||
|
# 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:
|
||||||
|
molteniron:
|
||||||
|
belongs_to:
|
||||||
|
- molteniron_all
|
||||||
|
|
||||||
|
container_skel:
|
||||||
|
molteniron-server_container:
|
||||||
|
belongs_to:
|
||||||
|
- molteniron-server_containers
|
||||||
|
contains:
|
||||||
|
- molteniron
|
||||||
|
properties:
|
||||||
|
service_name: molteniron
|
||||||
|
|
||||||
|
physical_skel:
|
||||||
|
molteniron-server_containers:
|
||||||
|
belongs_to:
|
||||||
|
- all_containers
|
||||||
|
molteniron-server_hosts:
|
||||||
|
belongs_to:
|
||||||
|
- hosts
|
51
playbooks/os-molteniron-install.yml
Normal file
51
playbooks/os-molteniron-install.yml
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
---
|
||||||
|
# Copyright (c) 2017 IBM Corporation.
|
||||||
|
#
|
||||||
|
# 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: Installation and setup of molteniron
|
||||||
|
hosts: molteniron_all
|
||||||
|
gather_facts: "{{ gather_facts | default(True) }}"
|
||||||
|
user: root
|
||||||
|
pre_tasks:
|
||||||
|
- include: common-tasks/os-lxc-container-setup.yml
|
||||||
|
vars:
|
||||||
|
extra_container_config_no_restart:
|
||||||
|
- "lxc.start.order=79"
|
||||||
|
- include: common-tasks/os-log-dir-setup.yml
|
||||||
|
vars:
|
||||||
|
log_dirs:
|
||||||
|
- src: "/openstack/log/{{ inventory_hostname }}-molteniron"
|
||||||
|
dest: "/var/log/molteniron"
|
||||||
|
owner: "syslog"
|
||||||
|
group: "syslog"
|
||||||
|
roles:
|
||||||
|
- role: "os_molteniron"
|
||||||
|
molteniron_venv_tag: "{{ openstack_release }}"
|
||||||
|
molteniron_venv_download_url: "{{ openstack_repo_url }}/venvs/{{ openstack_release }}/{{ ansible_distribution | lower }}/molteniron-{{ openstack_release }}-{{ ansible_architecture | lower }}.tgz"
|
||||||
|
- role: "openstack_openrc"
|
||||||
|
tags:
|
||||||
|
- openrc
|
||||||
|
- role: "rsyslog_client"
|
||||||
|
rsyslog_client_log_rotate_file: ironic_log_rotate
|
||||||
|
rsyslog_client_log_dir: "/var/log/ironic"
|
||||||
|
rsyslog_client_config_name: "99-ironic-rsyslog-client.conf"
|
||||||
|
tags:
|
||||||
|
- rsyslog
|
||||||
|
- role: "system_crontab_coordination"
|
||||||
|
tags:
|
||||||
|
- crontab
|
||||||
|
vars:
|
||||||
|
is_metal: "{{ properties.is_metal|default(false) }}"
|
||||||
|
tags:
|
||||||
|
- molteniron
|
@ -37,6 +37,7 @@
|
|||||||
- include: os-magnum-install.yml
|
- include: os-magnum-install.yml
|
||||||
- include: os-trove-install.yml
|
- include: os-trove-install.yml
|
||||||
- include: os-sahara-install.yml
|
- include: os-sahara-install.yml
|
||||||
|
- include: os-molteniron-install.yml
|
||||||
- include: os-tempest-install.yml
|
- include: os-tempest-install.yml
|
||||||
when: (tempest_install | default(False)) | bool or (tempest_run | default(False)) | bool
|
when: (tempest_install | default(False)) | bool or (tempest_run | default(False)) | bool
|
||||||
|
|
||||||
|
@ -293,6 +293,12 @@ class TestAnsibleInventoryFormatConstraints(unittest.TestCase):
|
|||||||
'metrics_all',
|
'metrics_all',
|
||||||
'metrics_containers',
|
'metrics_containers',
|
||||||
'metrics_hosts',
|
'metrics_hosts',
|
||||||
|
'molteniron',
|
||||||
|
'molteniron-server_all',
|
||||||
|
'molteniron-server_containers',
|
||||||
|
'molteniron-server_container',
|
||||||
|
'molteniron-server_hosts',
|
||||||
|
'molteniron_all',
|
||||||
'mq_containers',
|
'mq_containers',
|
||||||
'mq_hosts',
|
'mq_hosts',
|
||||||
'network_all',
|
'network_all',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user