4038c8226b
For several roles (cadvisor, inspection-store, docker-registry, etc.), we use an 'action' variable, in a similar manner to kolla-ansible, to determine the current action being performed (deploy, reconfigure, upgrade). It is likely this information will be useful for custom playbooks, so we should expose it. The 'action' keyword is reserved, and its use triggers a warning, so we change its name to kayobe_action before advertising it to users. Change-Id: I5ffbb8b014a31e27141bfc8bf780297d81c840be Story: 2001663 Task: 12604
35 lines
932 B
YAML
35 lines
932 B
YAML
---
|
|
# Roughly follows kolla-ansible's service deployment patterns.
|
|
|
|
# Action to perform. One of 'deploy', 'destroy', 'pull', 'reconfigure',
|
|
# 'upgrade'.
|
|
opensm_action: deploy
|
|
|
|
# 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:
|