2015-07-28 23:57:58 +08:00
|
|
|
---
|
|
|
|
- name: run the ceph rest api docker image
|
2018-07-09 21:50:52 +08:00
|
|
|
docker_container:
|
2017-02-09 22:16:39 +08:00
|
|
|
image: "{{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }}"
|
2017-02-20 17:03:49 +08:00
|
|
|
name: "ceph-restapi-{{ ansible_hostname }}"
|
2018-07-09 21:50:52 +08:00
|
|
|
network: host
|
2015-10-19 11:28:48 +08:00
|
|
|
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"
|