kolla-ansible/ansible/roles/storm/defaults/main.yml
Mark Goddard 146b00efa7 Mount /etc/timezone based on host OS
Previously we mounted /etc/timezone if the kolla_base_distro is debian
or ubuntu. This would fail prechecks if debian or ubuntu images were
deployed on CentOS. While this is not a supported combination, for
correctness we should fix the condition to reference the host OS rather
than the container OS, since that is where the /etc/timezone file is
located.

Change-Id: Ifc252ae793e6974356fcdca810b373f362d24ba5
Closes-Bug: #1882553
2020-08-10 10:14:18 +01:00

59 lines
2.2 KiB
YAML

---
project_name: "storm"
storm_services:
storm-worker:
container_name: storm_worker
group: storm-worker
enabled: true
image: "{{ storm_image_full }}"
environment:
STORM_LOG_DIR: /var/log/kolla/storm
STORM_LOG4J_PROP: "{{ storm_log_settings }}"
volumes: "{{ storm_worker_default_volumes + storm_nimbus_extra_volumes }}"
dimensions: "{{ storm_worker_dimensions }}"
storm-nimbus:
container_name: storm_nimbus
group: storm-nimbus
enabled: true
image: "{{ storm_image_full }}"
environment:
STORM_LOG_DIR: /var/log/kolla/storm
STORM_LOG4J_PROP: "{{ storm_log_settings }}"
volumes: "{{ storm_nimbus_default_volumes + storm_nimbus_extra_volumes }}"
dimensions: "{{ storm_nimbus_dimensions }}"
####################
# Storm
####################
storm_log_settings: 'INFO,ROLLINGFILE'
storm_nimbus_servers: "{% for host in groups['storm-nimbus'] %}'{{ 'api' | kolla_address(host) }}'{% if not loop.last %},{% endif %}{% endfor %}"
####################
# Docker
####################
storm_install_type: "{{ kolla_install_type }}"
storm_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ storm_install_type }}-storm"
storm_tag: "{{ openstack_tag }}"
storm_image_full: "{{ storm_image }}:{{ storm_tag }}"
storm_worker_dimensions: "{{ default_container_dimensions }}"
storm_nimbus_dimensions: "{{ default_container_dimensions }}"
storm_worker_default_volumes:
- "{{ node_config_directory }}/storm-worker/:{{ container_config_directory }}/"
- "/etc/localtime:/etc/localtime:ro"
- "{{ '/etc/timezone:/etc/timezone:ro' if ansible_os_family == 'Debian' else '' }}"
- "storm:/var/lib/storm/data"
- "kolla_logs:/var/log/kolla/"
storm_nimbus_default_volumes:
- "{{ node_config_directory }}/storm-nimbus/:{{ container_config_directory }}/"
- "/etc/localtime:/etc/localtime:ro"
- "{{ '/etc/timezone:/etc/timezone:ro' if ansible_os_family == 'Debian' else '' }}"
- "storm:/var/lib/storm/data"
- "kolla_logs:/var/log/kolla/"
storm_extra_volumes: "{{ default_extra_volumes }}"
storm_worker_extra_volumes: "{{ storm_extra_volumes }}"
storm_nimbus_extra_volumes: "{{ storm_extra_volumes }}"