5 export PATH
=/root
/bin
:$PATH
8 cp /mnt
/{{ ceph_dev_folder
}}/src
/cephadm
/cephadm
/root
/bin
/cephadm
9 chmod +x
/root
/bin
/cephadm
11 mon_ip
=$
(ifconfig eth0 |
grep 'inet ' |
awk '{ print $2}')
13 bootstrap_extra_options
='--allow-fqdn-hostname --dashboard-password-noupdate'
14 bootstrap_extra_options_not_expanded
='--skip-monitoring-stack'
15 {% if expanded_cluster is not defined
%}
16 bootstrap_extra_options
+=" ${bootstrap_extra_options_not_expanded}"
19 cephadm bootstrap
--mon-ip $mon_ip --initial-dashboard-password {{ admin_password
}} --shared_ceph_folder /mnt
/{{ ceph_dev_folder
}} ${bootstrap_extra_options}
21 fsid
=$
(cat /etc
/ceph
/ceph.conf |
grep fsid |
awk '{ print $3}')
22 cephadm_shell
="cephadm shell --fsid ${fsid} -c /etc/ceph/ceph.conf -k /etc/ceph/ceph.client.admin.keyring"
24 {% for number
in range
(1, nodes
) %}
25 ssh-copy-id
-f -i /etc
/ceph
/ceph.pub
-o StrictHostKeyChecking
=no root@
{{ prefix
}}-node-0{{ number
}}
26 {% if expanded_cluster is defined
%}
27 ${cephadm_shell} ceph orch
host add
{{ prefix
}}-node-0{{ number
}}
31 {% if expanded_cluster is defined
%}
32 ${cephadm_shell} ceph orch apply osd
--all-available-devices