aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/kuryr/tasks/start.yml
blob: fe93383bf3af2b76c84faf5b4d2dd221385c5379 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---
# NOTE(huikang, apuimedo): when you request a driver in a docker operation, such
# as docker network create, docker searches /usr/lib/docker or /etc/docker
# subdirs for network/storage plugin specs or json definitions. so it's either
# have ansible place the file there, or volume mount it and let the container
# place the file there
- name: Starting kuryr container
  kolla_docker:
    action: "start_container"
    common_options: "{{ docker_common_options }}"
    image: "{{ kuryr_image_full }}"
    name: "kuryr"
    privileged: True
    volumes:
      - "{{ node_config_directory }}/kuryr/:{{ container_config_directory }}/:ro"
      - "/etc/localtime:/etc/localtime:ro"
      - "/run:/run:shared"
      - "/usr/lib/docker:/usr/lib/docker"
  when: inventory_hostname in groups['compute']