]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cookbooks.git/commitdiff
Adds the fsid to ceph-osd hosts 139/head
authorWalter Huf <walter.huf@corvisa.com>
Wed, 23 Jul 2014 14:09:20 +0000 (09:09 -0500)
committerWalter Huf <walter.huf@corvisa.com>
Wed, 23 Jul 2014 14:10:56 +0000 (09:10 -0500)
templates/default/ceph.conf.erb

index 6d6e4d2bb8dc5494dac44f9f9ea48ce84cb44b84..1a1015cbed7ffa2ee7c524ba60e1466178dcb995 100644 (file)
@@ -1,7 +1,9 @@
 [global]
+<% unless node['ceph']['config']['fsid'].nil? -%>
+  fsid = <%= node['ceph']['config']['fsid'] %>
+<% end -%>
 <% if node['ceph']['is_mon'] -%>
-  fsid = <%= node["ceph"]["config"]["fsid"] %>
-  mon initial members = <%= node["ceph"]["config"]["mon_initial_members"] %>
+  mon initial members = <%= node['ceph']['config']['mon_initial_members'] %>
 <% end -%>
   mon host = <%= @mon_addresses.sort.join(', ') %>
 <% if (! node['ceph']['config']['global'].nil?) -%>