2015-07-28 23:57:58 +08:00
|
|
|
---
|
|
|
|
- name: run the ceph rest api docker image
|
2015-10-19 11:28:48 +08:00
|
|
|
docker:
|
2017-01-17 01:17:41 +08:00
|
|
|
image: "{{ ceph_docker_registry }}/{{ ceph_restapi_docker_username }}/{{ ceph_restapi_docker_imagename }}:{{ ceph_restapi_docker_image_tag }}"
|
2015-10-19 11:28:48 +08:00
|
|
|
name: "{{ ansible_hostname }}-ceph-restapi"
|
|
|
|
net: host
|
|
|
|
expose: "{{ ceph_restapi_port }}"
|
|
|
|
state: running
|
|
|
|
env: "RESTAPI_IP={{ hostvars[inventory_hostname]['ansible_' + ceph_restapi_docker_interface]['ipv4']['address'] }},CEPH_DAEMON=RESTAPI,{{ ceph_restapi_docker_extra_env }}"
|
2016-07-28 22:42:19 +08:00
|
|
|
volumes: "/etc/ceph:/etc/ceph,/etc/localtime:/etc/localtime:ro"
|