mirror of https://github.com/ceph/ceph-ansible.git
Adding support for non atomic and non CoreOS machines for deploying containerized mons with kv backend
parent
488491d911
commit
207387d5f9
|
@ -102,3 +102,17 @@
|
||||||
when:
|
when:
|
||||||
not is_atomic and
|
not is_atomic and
|
||||||
ansible_os_family != 'CoreOS'
|
ansible_os_family != 'CoreOS'
|
||||||
|
and not mon_containerized_deployment_with_kv
|
||||||
|
|
||||||
|
- name: run the ceph monitor docker image with kv
|
||||||
|
docker:
|
||||||
|
image: "{{ ceph_mon_docker_username }}/{{ ceph_mon_docker_imagename }}"
|
||||||
|
name: "{{ ansible_hostname }}"
|
||||||
|
net: "host"
|
||||||
|
state: "running"
|
||||||
|
privileged: "{{ mon_docker_privileged }}"
|
||||||
|
env: "KV_TYPE={{kv_type}},KV_IP={{kv_endpoint}},MON_IP={{ hostvars[inventory_hostname]['ansible_' + ceph_mon_docker_interface]['ipv4']['address'] }},CEPH_DAEMON=MON,CEPH_PUBLIC_NETWORK={{ ceph_mon_docker_subnet }},{{ ceph_mon_extra_envs }}"
|
||||||
|
when:
|
||||||
|
not is_atomic and
|
||||||
|
ansible_os_family != 'CoreOS'
|
||||||
|
and mon_containerized_deployment_with_kv
|
||||||
|
|
Loading…
Reference in New Issue