1e08a1413d
Follows kolla-ansible service configuration patterns. Uses jumanjiman.opensm Docker image.
31 lines
826 B
YAML
31 lines
826 B
YAML
---
|
|
# Roughly follows kolla-ansible's service deployment patterns.
|
|
|
|
# Whether OpenSM is enabled.
|
|
opensm_enabled: true
|
|
|
|
# Service deployment definition.
|
|
opensm_services:
|
|
opensm:
|
|
container_name: opensm
|
|
enabled: "{{ opensm_enabled }}"
|
|
image: "{{ opensm_image_full }}"
|
|
privileged: True
|
|
read_only: True
|
|
volumes:
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "/lib/modules:/lib/modules:ro"
|
|
- "opensm_cache:/var/cache/opensm"
|
|
- "opensm_logs:/var/log"
|
|
|
|
####################
|
|
# Docker
|
|
####################
|
|
opensm_namespace: "jumanjiman"
|
|
opensm_image: "{{ docker_registry ~ '/' if docker_registry | default else '' }}{{ opensm_namespace }}/opensm"
|
|
opensm_tag: "latest"
|
|
opensm_image_full: "{{ opensm_image }}:{{ opensm_tag }}"
|
|
|
|
opensm_restart_policy: "unless-stopped"
|
|
opensm_restart_retries: 10
|