Move playbooks/config files into role examples
As we're removing this role from the integrated build in https://review.openstack.org/587586 we should keep the playbook and example configs in the role as we do for other roles not integrated. Change-Id: I937e429ef6ed673e750dd889d8d2034fd6ce463d
This commit is contained in:
parent
249edd9812
commit
f912c482c0
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
molteniron-server_hosts:
|
||||||
|
aio1:
|
||||||
|
ip: 172.29.236.100
|
|
@ -0,0 +1,35 @@
|
||||||
|
---
|
||||||
|
# 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
|
||||||
|
|
||||||
|
physical_skel:
|
||||||
|
molteniron-server_containers:
|
||||||
|
belongs_to:
|
||||||
|
- all_containers
|
||||||
|
molteniron-server_hosts:
|
||||||
|
belongs_to:
|
||||||
|
- hosts
|
|
@ -0,0 +1,56 @@
|
||||||
|
---
|
||||||
|
# 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: "{{ osa_gather_facts | default(True) }}"
|
||||||
|
user: root
|
||||||
|
vars_files:
|
||||||
|
- "defaults/{{ install_method }}_install.yml"
|
||||||
|
pre_tasks:
|
||||||
|
- include: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
||||||
|
vars:
|
||||||
|
extra_container_config_no_restart:
|
||||||
|
- "lxc.start.order=39"
|
||||||
|
static: no
|
||||||
|
when: not is_metal
|
||||||
|
|
||||||
|
- include: common-tasks/os-log-dir-setup.yml
|
||||||
|
vars:
|
||||||
|
log_dirs:
|
||||||
|
- src: "/openstack/log/{{ inventory_hostname }}-molteniron"
|
||||||
|
dest: "/var/log/molteniron"
|
||||||
|
- include: common-tasks/unbound-clients.yml
|
||||||
|
static: no
|
||||||
|
when:
|
||||||
|
- hostvars['localhost']['resolvconf_enabled'] | bool
|
||||||
|
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: "system_crontab_coordination"
|
||||||
|
tags:
|
||||||
|
- crontab
|
||||||
|
|
||||||
|
post_tasks:
|
||||||
|
- include_tasks: "common-tasks/rsyslog-client.yml"
|
||||||
|
vars:
|
||||||
|
rsyslog_client_log_rotate_file: ironic_log_rotate
|
||||||
|
rsyslog_client_log_dir: "/var/log/ironic"
|
||||||
|
rsyslog_client_config_name: "99-ironic-rsyslog-client.conf"
|
||||||
|
|
||||||
|
environment: "{{ deployment_environment_variables | default({}) }}"
|
||||||
|
tags:
|
||||||
|
- molteniron
|
|
@ -0,0 +1 @@
|
||||||
|
molteniron_container_mysql_password:
|
Loading…
Reference in New Issue