ceph-ansible/roles/ceph-rgw/tasks/docker/start_docker_rgw.yml

14 lines
548 B
YAML
Raw Normal View History

---
- name: pull ceph daemon image
shell: "docker pull {{ ceph_rgw_docker_username }}/{{ ceph_rgw_docker_imagename }}"
- name: run the rados gateway docker image
2015-10-19 11:19:31 +08:00
docker:
image: "{{ ceph_rgw_docker_username }}/{{ ceph_rgw_docker_imagename }}"
name: ceph-{{ ansible_hostname }}-rgw
expose: "{{ ceph_rgw_civetweb_port }}"
2015-10-19 11:19:31 +08:00
ports: "{{ ceph_rgw_civetweb_port }}:{{ ceph_rgw_civetweb_port }}"
state: running
env: "CEPH_DAEMON=RGW,{{ ceph_rgw_docker_extra_env }}"
2015-10-19 11:19:31 +08:00
volumes: "/var/lib/ceph:/var/lib/ceph,/etc/ceph:/etc/ceph"