Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / test / cli / ceph-conf / manpage.t
1 # setup
2   $ cat >foo.conf <<'EOF'
3   > ; ---------------------
4   > [group cephnet]
5   >     addr = 10.3.14.0/24
6   > 
7   > [global]
8   >     pid file = /home/sage/ceph/src/out/$name.pid
9   > 
10   > [osd]
11   >     osd data = /mnt/osd$id
12   > [osd.3]
13   >     host = cosd3
14   > EOF
15
16 To extract the value of the "osd data" option for the osd0 daemon,
17
18   $ ceph-conf -c foo.conf "osd data" --name osd.0
19   /mnt/osd0
20
21 This is equivalent to doing specifying sections [osd0], [osd.0],
22 [osd], or [global], in that order of preference:
23
24 # TODO the "admin" here seems like an actual bug
25
26   $ ceph-conf -c foo.conf "osd data" -s osd0 -s osd.0 -s osd -s global
27   /mnt/osdadmin
28
29 To list all sections that begin with osd:
30
31   $ ceph-conf -c foo.conf -l osd
32   osd
33   osd.3