kayobe/ansible/roles/opensm/defaults/main.yml
Mark Goddard 1e08a1413d Add configuration of OpenSM Infiniband subnet manager in a Docker container
Follows kolla-ansible service configuration patterns. Uses jumanjiman.opensm
Docker image.
2017-06-12 10:15:46 +01:00

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