Skip to content

Commit

Permalink
Also apply the manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
mickenordin committed Dec 11, 2024
1 parent 8f50e45 commit 92e9024
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions templates/ceph/cluster-bootstrap.erb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ssh -4 -i /root/.ssh/id_ed25519_adm "<%= @firstmon %>" /opt/ceph/bootstrap.sh #
scp -4 -i /root/.ssh/id_ed25519_adm "<%= @firstmon %>:/etc/ceph/*" /etc/ceph/ # Copy over config <% monitors = [] %><% osd = [] %><% @nodes.each do |node| %><% hostname = node['hostname'] %>
${ceph} orch host add "<%= hostname %>" "<%= node['addr'] %>" # Add <%= node['hostname'] %><% node['labels'].each do |label| %><% if label == 'mon' %><% monitors.append(node['hostname']) %><% elsif label == 'osd' %><% osd.append(node['hostname']) %><% end %>
${ceph} orch host label add "<%= hostname %>" "<%= label %>" # <% end %><% end %>
${ceph} orch apply -i /rootfs/opt/ceph/nordunet-cephcluster.yaml

adm_keyring="$(cat /etc/ceph/ceph.client.admin.keyring)"
echo "Now run:"
Expand Down

0 comments on commit 92e9024

Please sign in to comment.