kolla-ansible/ansible/roles/hacluster/defaults/main.yml
Pierre Riteau 56fc74f231 Move project_name and kolla_role_name to role vars
Role vars have a higher precedence than role defaults. This allows to
import default vars from another role via vars_files without overriding
project_name (see related bug for details).

Change-Id: I3d919736e53d6f3e1a70d1267cf42c8d2c0ad221
Related-Bug: #1951785
2021-12-31 09:26:25 +00:00

92 lines
3.9 KiB
YAML

---
hacluster_services:
hacluster-corosync:
container_name: "hacluster_corosync"
group: "hacluster"
enabled: true
image: "{{ hacluster_corosync_image_full }}"
volumes: "{{ hacluster_corosync_default_volumes + hacluster_corosync_extra_volumes }}"
ipc_mode: "host"
cap_add:
- SYS_NICE
- IPC_LOCK
- NET_ADMIN
dimensions: "{{ hacluster_corosync_dimensions }}"
hacluster-pacemaker:
container_name: "hacluster_pacemaker"
group: "hacluster"
enabled: true
image: "{{ hacluster_pacemaker_image_full }}"
environment:
PCMK_logfile: /var/log/kolla/hacluster/pacemaker.log
PCMK_debug: "{{ 'on' if openstack_logging_debug | bool else 'off' }}"
volumes: "{{ hacluster_pacemaker_default_volumes + hacluster_pacemaker_extra_volumes }}"
ipc_mode: "host"
dimensions: "{{ hacluster_pacemaker_dimensions }}"
hacluster-pacemaker-remote:
container_name: "hacluster_pacemaker_remote"
group: "hacluster-remote"
enabled: true
image: "{{ hacluster_pacemaker_remote_image_full }}"
volumes: "{{ hacluster_pacemaker_remote_default_volumes + hacluster_pacemaker_remote_extra_volumes }}"
ipc_mode: "host"
dimensions: "{{ hacluster_pacemaker_remote_dimensions }}"
####################
# HAProxy
####################
####################
# Docker
####################
hacluster_tag: "{{ openstack_tag }}"
hacluster_corosync_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ kolla_install_type }}-hacluster-corosync"
hacluster_corosync_tag: "{{ openstack_tag }}"
hacluster_corosync_image_full: "{{ hacluster_corosync_image }}:{{ hacluster_corosync_tag }}"
hacluster_pacemaker_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ kolla_install_type }}-hacluster-pacemaker"
hacluster_pacemaker_tag: "{{ openstack_tag }}"
hacluster_pacemaker_image_full: "{{ hacluster_pacemaker_image }}:{{ hacluster_pacemaker_tag }}"
hacluster_pacemaker_remote_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ kolla_install_type }}-hacluster-pacemaker-remote"
hacluster_pacemaker_remote_tag: "{{ openstack_tag }}"
hacluster_pacemaker_remote_image_full: "{{ hacluster_pacemaker_remote_image }}:{{ hacluster_pacemaker_remote_tag }}"
hacluster_corosync_dimensions: "{{ default_container_dimensions }}"
hacluster_pacemaker_dimensions: "{{ default_container_dimensions }}"
hacluster_pacemaker_remote_dimensions: "{{ default_container_dimensions }}"
hacluster_corosync_default_volumes:
- "{{ node_config_directory }}/hacluster-corosync/:{{ container_config_directory }}/:ro"
- "/etc/localtime:/etc/localtime:ro"
- "{{ '/etc/timezone:/etc/timezone:ro' if ansible_facts.os_family == 'Debian' else '' }}"
- "kolla_logs:/var/log/kolla/"
- "hacluster_corosync:/var/lib/corosync"
hacluster_pacemaker_default_volumes:
- "{{ node_config_directory }}/hacluster-pacemaker/:{{ container_config_directory }}/:ro"
- "/etc/localtime:/etc/localtime:ro"
- "{{ '/etc/timezone:/etc/timezone:ro' if ansible_facts.os_family == 'Debian' else '' }}"
- "kolla_logs:/var/log/kolla/"
- "hacluster_pacemaker:/var/lib/pacemaker"
hacluster_pacemaker_remote_default_volumes:
- "{{ node_config_directory }}/hacluster-pacemaker-remote/:{{ container_config_directory }}/:ro"
- "/etc/localtime:/etc/localtime:ro"
- "{{ '/etc/timezone:/etc/timezone:ro' if ansible_facts.os_family == 'Debian' else '' }}"
- "kolla_logs:/var/log/kolla/"
- "hacluster_pacemaker_remote:/var/lib/pacemaker"
hacluster_extra_volumes: "{{ default_extra_volumes }}"
hacluster_corosync_extra_volumes: "{{ hacluster_extra_volumes }}"
hacluster_pacemaker_extra_volumes: "{{ hacluster_extra_volumes }}"
hacluster_pacemaker_remote_extra_volumes: "{{ hacluster_extra_volumes }}"
####################
# Pacemaker options
####################
# this is TCP port
hacluster_pacemaker_remote_port: 3121