Project

General

Profile

Actions

Feature #1790

closed

rbd: have a way of establishing configured mappings at boot time

Added by Anonymous over 12 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Spent time:
Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

We need to be careful about the config format, to make automatic editing easy (think Chef).

First draft:

/etc/ceph/rbd.d/NAME.conf is used as ceph.conf to map image called NAME.
You can drop in multiple .conf files in that directory.

Two major use cases:

1)
ln -s /etc/ceph/ceph.conf /etc/ceph/rbd.d/foo.conf
maps image "foo" at boot time with the main ceph.conf settings, with the keyrings configured there

2)
install -m0600 appropriate-keyring /etc/ceph/rbd.d/bar.keyring
cat >>/etc/ceph/rbd.d/bar.conf <<EOF
[global]
...
keyring = bar.keyring
EOF

Actions

Also available in: Atom PDF