]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/ci/cephadm/bootstrap-cluster.sh
import ceph 15.2.14
[ceph.git] / ceph / src / pybind / mgr / dashboard / ci / cephadm / bootstrap-cluster.sh
1 #!/usr/bin/env bash
2
3 export PATH=/root/bin:$PATH
4 mkdir /root/bin
5
6 cp /mnt/{{ ceph_dev_folder }}/src/cephadm/cephadm /root/bin/cephadm
7 chmod +x /root/bin/cephadm
8 mkdir -p /etc/ceph
9 mon_ip=$(ifconfig eth0 | grep 'inet ' | awk '{ print $2}')
10
11 cephadm bootstrap --mon-ip $mon_ip --initial-dashboard-password {{ admin_password }} --allow-fqdn-hostname --dashboard-password-noupdate --shared_ceph_folder /mnt/{{ ceph_dev_folder }}
12
13 {% for number in range(1, nodes) %}
14 ssh-copy-id -f -i /etc/ceph/ceph.pub -o StrictHostKeyChecking=no root@{{ prefix }}-node-0{{ number }}.{{ domain }}
15 {% endfor %}