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:
Mark Hamzy 2017-03-15 10:15:02 -05:00
parent 05d1246137
commit bb7c06768a
8 changed files with 112 additions and 1 deletions

View File

@ -189,4 +189,8 @@
- name: os_octavia
scm: git
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

View File

@ -0,0 +1,4 @@
---
molteniron-server_hosts:
aio1:
ip: 172.29.236.100

View File

@ -152,3 +152,6 @@ barbican_service_password:
designate_galera_password:
designate_rabbitmq_password:
designate_service_password:
## Molteniron Options:
molteniron_container_mysql_password:

View File

@ -202,3 +202,8 @@ trove_dashboard_git_project_group: horizon_all
octavia_git_repo: https://git.openstack.org/openstack/octavia
octavia_git_install_branch: f7426dcf96874b6e3ce15009d251866f6de01116 # HEAD of "master" as of `28.2.2017
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

View 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

View 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

View File

@ -37,6 +37,7 @@
- include: os-magnum-install.yml
- include: os-trove-install.yml
- include: os-sahara-install.yml
- include: os-molteniron-install.yml
- include: os-tempest-install.yml
when: (tempest_install | default(False)) | bool or (tempest_run | default(False)) | bool

View File

@ -293,6 +293,12 @@ class TestAnsibleInventoryFormatConstraints(unittest.TestCase):
'metrics_all',
'metrics_containers',
'metrics_hosts',
'molteniron',
'molteniron-server_all',
'molteniron-server_containers',
'molteniron-server_container',
'molteniron-server_hosts',
'molteniron_all',
'mq_containers',
'mq_hosts',
'network_all',