Cheatsheet for setting up a new ceph client
From any autheticated ceph host/client.
root@ceph:~$ ceph auth get-or-create client.fs
[client.fs]
key = lexugt/DKGcqH5xDJT11QTNglh01UEYiQy5QarEuHng=
root@ceph:~$ ceph config generate-minimal-conf
# minimal ceph.conf for 6f64798f-d20c-42f1-b9ae-5c5c99c1d549
[global]
fsid = 6f64798f-d20c-42f1-b9ae-5c5c99c1d549
mon_host = [v2:192.168.1.5:3300/0,v1:192.168.1.5:6789/0]
Set on the new ceph client
tee -a /etc/ceph/client.keyring <<EOF
[client.fs]
key = lexugt/DKGcqH5xDJT11QTNglh01UEYiQy5QarEuHng=
EOF
tee -a /etc/ceph/ceph.conf <<EOF
# minimal ceph.conf for 6f64798f-d20c-42f1-b9ae-5c5c99c1d549
[global]
fsid = 6f64798f-d20c-42f1-b9ae-5c5c99c1d549
mon_host = [v2:192.168.1.5:3300/0,v1:192.168.1.5:6789/0]
EOF