mon: remove ceph aliases for containers

These aliases have led to several issues making believe that ceph
binaries are actually present on the host when running the command.
However it wasn't explicit that the commands were only ran inside a
container.
It has brought to much confusion so we decided to remove them.

Closes: https://github.com/ceph/ceph-ansible/issues/3445
Signed-off-by: Sébastien Han <seb@redhat.com>
pull/3424/head
Sébastien Han 2018-12-13 11:38:23 +01:00
parent ffd56177e7
commit d9e7835086
3 changed files with 1 additions and 31 deletions

View File

@ -1,8 +0,0 @@
---
- name: configure ceph profile.d aliases
template:
src: ceph-aliases.sh.j2
dest: "/etc/profile.d/ceph-aliases.sh"
mode: 0755
owner: root
group: root

View File

@ -27,9 +27,4 @@
- name: crush_rules.yml
include_tasks: crush_rules.yml
when:
- crush_rule_config
- name: include configure_ceph_command_aliases.yml
include_tasks: configure_ceph_command_aliases.yml
when:
- containerized_deployment
- crush_rule_config

View File

@ -1,17 +0,0 @@
#!/bin/bash
# Sets up handy aliases for ceph.
ceph() {
sudo {{ docker_exec_cmd }} ceph --cluster {{ cluster }} ${@}
}
radosgw-admin() {
sudo {{ docker_exec_cmd }} radosgw-admin --cluster {{ cluster }} ${@}
}
rados() {
sudo {{ docker_exec_cmd }} rados --cluster {{ cluster }} ${@}
}
rbd() {
sudo {{ docker_exec_cmd }} rbd --cluster {{ cluster }} ${@}
}