diff --git a/roles/ceph-mon/templates/ceph-aliases.sh.j2 b/roles/ceph-mon/templates/ceph-aliases.sh.j2 index 4873233af..c6dd69fde 100644 --- a/roles/ceph-mon/templates/ceph-aliases.sh.j2 +++ b/roles/ceph-mon/templates/ceph-aliases.sh.j2 @@ -1,17 +1,17 @@ #!/bin/bash # Sets up handy aliases for ceph. ceph() { - sudo {{ docker_exec_cmd }} ceph --cluster {{ cluster }} ${@} + sudo docker exec -it ceph-mon-{{ ansible_hostname }} ceph --cluster {{ cluster }} ${@} } radosgw-admin() { - sudo {{ docker_exec_cmd }} radosgw-admin --cluster {{ cluster }} ${@} + sudo docker exec -it ceph-mon-{{ ansible_hostname }} radosgw-admin --cluster {{ cluster }} ${@} } rados() { - sudo {{ docker_exec_cmd }} rados --cluster {{ cluster }} ${@} + sudo docker exec -it ceph-mon-{{ ansible_hostname }} rados --cluster {{ cluster }} ${@} } rbd() { - sudo {{ docker_exec_cmd }} rbd --cluster {{ cluster }} ${@} + sudo docker exec -it ceph-mon-{{ ansible_hostname }} rbd --cluster {{ cluster }} ${@} }