OPTION(log_sym_dir, 0, OPT_STR, 0),
OPTION(log_to_stdout, 0, OPT_BOOL, true),
OPTION(pid_file, 0, OPT_STR, "/var/run/ceph/$type.$id.pid"),
- OPTION(conf, 'c', OPT_STR, "/etc/ceph/ceph.conf, ~/ceph/config, ceph.conf"),
+ OPTION(conf, 'c', OPT_STR, "/etc/ceph/ceph.conf, ~/.ceph/config, ceph.conf"),
OPTION(chdir, 0, OPT_STR, "/"),
OPTION(fake_clock, 0, OPT_BOOL, false),
OPTION(fakemessenger_serialize, 0, OPT_BOOL, true),
OPTION(debug_paxos, 0, OPT_INT, 0),
OPTION(debug_tp, 0, OPT_INT, 0),
OPTION(debug_auth, 0, OPT_INT, 1),
- OPTION(keys_file, 'k', OPT_STR, "~/.ceph/keyring.bin, /etc/ceph/keyring.bin, .ceph_keyring"),
+ OPTION(keyring, 'k', OPT_STR, "~/.ceph/keyring.bin, /etc/ceph/keyring.bin, .ceph_keyring"),
OPTION(supported_auth, 0, OPT_STR, "none"),
OPTION(clock_lock, 0, OPT_BOOL, false),
OPTION(clock_tare, 0, OPT_BOOL, false),
void AuthMonitor::create_initial(bufferlist& bl)
{
dout(0) << "create_initial -- creating initial map" << dendl;
- if (g_conf.keys_file) {
+ if (g_conf.keyring) {
map<string, EntityAuth> keys_map;
- dout(0) << "reading initial keys file " << dendl;
+ dout(0) << "reading initial keyring " << dendl;
bufferlist bl;
- string k = g_conf.keys_file;
+ string k = g_conf.keyring;
list<string> ls;
get_str_list(k, ls);
int r = -1;
for (list<string>::iterator p = ls.begin(); p != ls.end(); p++)
- if ((r = bl.read_file(g_conf.keys_file)) >= 0)
+ if ((r = bl.read_file(g_conf.keyring)) >= 0)
break;
if (r >= 0) {
bool read_ok = false;
::decode(keys_map, iter);
read_ok = true;
} catch (buffer::error *err) {
- cerr << "error reading file " << g_conf.keys_file << std::endl;
+ cerr << "error reading file " << g_conf.keyring << std::endl;
}
if (read_ok) {
map<string, EntityAuth>::iterator iter = keys_map.begin();
for f in `seq 0 $((CEPH_NUM_MON-1))`
do
cmd="$CEPH_BIN/mkmonfs -c $conf --clobber --mon-data=dev/mon$f -i $f --monmap=$monmap_fn --osdmap=$osdmap_fn"
- [ "$cephx" -eq 1 ] && cmd="$cmd --keys-file=$keyring_fn"
+ [ "$cephx" -eq 1 ] && cmd="$cmd --keyring=$keyring_fn"
echo $cmd
$cmd
done
osd journal size = 100
EOF
[ "$cephx" -eq 1 ] && cat <<EOF >> $conf
- keys file = dev/osd$osd/osd$osd.keyring
+ keyring = dev/osd$osd/osd$osd.keyring
EOF
fi
echo mkfs osd$osd
fi
if [ "$cephx" -eq 1 ]; then
cat <<EOF >> $conf
- keys file = $key_fn
+ keyring = $key_fn
EOF
cat <<EOF > $mds_caps
; generated by vstart.sh on `date`