Merge "Add role for provisioning default variables for install methods"
This commit is contained in:
commit
8dff9b4851
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
# Copyright 2024, Cleura 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: Include vars for install method {{ install_method }}
|
||||
include_vars: "{{ install_method }}.yml"
|
|
@ -0,0 +1,37 @@
|
|||
---
|
||||
# Copyright 2018, SUSE LINUX GmbH.
|
||||
#
|
||||
# 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.
|
||||
|
||||
#
|
||||
# Use $role_install_method=distro so we can test the combined
|
||||
# result. We add all the os_* roles here even though some of them
|
||||
# may not have been converted to support the dual installation method.
|
||||
#
|
||||
# NOTE(hwoarang): We need to define the various $role_bin variables because
|
||||
# some playbooks in this repository are explicitly using them to perform
|
||||
# post deployment actions such as the playbooks/os-{cinder,keystone,nova}-install.yml
|
||||
# playbooks.
|
||||
#
|
||||
|
||||
keystone_bin: /usr/bin
|
||||
cinder_bin: /usr/bin
|
||||
nova_bin: /usr/bin
|
||||
neutron_bin: /usr/bin
|
||||
|
||||
## Delegate all database setup tasks to the utility host, and use the utility venv python interpreter
|
||||
openstack_db_setup_host: "{{ groups['utility_all'][0] }}"
|
||||
openstack_db_setup_python_interpreter: "{{ ansible_facts['python']['executable'] }}"
|
||||
|
||||
openstack_service_setup_host: "{{ groups['utility_all'][0] }}"
|
||||
openstack_service_setup_host_python_interpreter: "/usr/bin/python3"
|
|
@ -0,0 +1,38 @@
|
|||
---
|
||||
# Copyright 2018, SUSE LINUX GmbH.
|
||||
#
|
||||
# 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.
|
||||
|
||||
cinder_bin: "/openstack/venvs/cinder-{{ venv_tag }}/bin"
|
||||
keystone_bin: "/openstack/venvs/keystone-{{ venv_tag }}/bin"
|
||||
nova_bin: "/openstack/venvs/nova-{{ venv_tag }}/bin"
|
||||
neutron_bin: "/openstack/venvs/neutron-{{ venv_tag }}/bin"
|
||||
|
||||
# URL for the frozen internal openstack repo.
|
||||
repo_release_path: "{{ openstack_repo_url }}/os-releases/{{ openstack_release }}/{{ os_distro_version }}"
|
||||
|
||||
## OpenStack source options
|
||||
openstack_repo_protocol: "{{ openstack_service_internaluri_proto }}"
|
||||
openstack_repo_url: "{{ openstack_repo_protocol }}://{{ internal_lb_vip_address }}:{{ repo_server_port }}"
|
||||
openstack_repo_git_url: "git://{{ internal_lb_vip_address }}"
|
||||
|
||||
## Delegate all service setup tasks to the utility host, and use the utility venv python interpreter
|
||||
openstack_service_setup_host: "{{ groups['utility_all'][0] }}"
|
||||
openstack_service_setup_host_python_interpreter: "/openstack/venvs/utility-{{ openstack_release }}/bin/python"
|
||||
|
||||
## Delegate all database setup tasks to the utility host, and use the utility venv python interpreter
|
||||
openstack_db_setup_host: "{{ openstack_service_setup_host }}"
|
||||
openstack_db_setup_python_interpreter: "{{ openstack_service_setup_host_python_interpreter }}"
|
||||
|
||||
# Locally cached copy on the repo server for the OpenStack upper-constraints.txt
|
||||
requirements_git_url: "{{ openstack_repo_url }}/constraints/upper_constraints_cached.txt"
|
Loading…
Reference in New Issue