]> git.proxmox.com Git - ceph.git/blame - ceph/src/pybind/mgr/dashboard/ci/cephadm/bootstrap-cluster.sh
bump version to 16.2.6-pve2
[ceph.git] / ceph / src / pybind / mgr / dashboard / ci / cephadm / bootstrap-cluster.sh
CommitLineData
b3b6e05e
TL
1#!/usr/bin/env bash
2
3export PATH=/root/bin:$PATH
4mkdir /root/bin
522d829b
TL
5
6cp /mnt/{{ ceph_dev_folder }}/src/cephadm/cephadm /root/bin/cephadm
b3b6e05e
TL
7chmod +x /root/bin/cephadm
8mkdir -p /etc/ceph
9mon_ip=$(ifconfig eth0 | grep 'inet ' | awk '{ print $2}')
522d829b
TL
10
11cephadm bootstrap --mon-ip $mon_ip --initial-dashboard-password {{ admin_password }} --allow-fqdn-hostname --dashboard-password-noupdate --shared_ceph_folder /mnt/{{ ceph_dev_folder }}
12
b3b6e05e 13fsid=$(cat /etc/ceph/ceph.conf | grep fsid | awk '{ print $3}')
522d829b 14
b3b6e05e
TL
15{% for number in range(1, nodes) %}
16 ssh-copy-id -f -i /etc/ceph/ceph.pub -o StrictHostKeyChecking=no root@{{ prefix }}-node-0{{ number }}.{{ domain }}
522d829b
TL
17 {% if expanded_cluster is defined %}
18 cephadm shell --fsid $fsid -c /etc/ceph/ceph.conf -k /etc/ceph/ceph.client.admin.keyring ceph orch host add {{ prefix }}-node-0{{ number }}.{{ domain }}
19 {% endif %}
b3b6e05e 20{% endfor %}
522d829b
TL
21
22{% if expanded_cluster is defined %}
23 cephadm shell --fsid $fsid -c /etc/ceph/ceph.conf -k /etc/ceph/ceph.client.admin.keyring ceph orch apply osd --all-available-devices
24{% endif %}