3 export PATH
=/root
/bin
:$PATH
5 {% if ceph_dev_folder is defined
%}
6 cp /mnt
/{{ ceph_dev_folder
}}/src
/cephadm
/cephadm
/root
/bin
/cephadm
9 curl
--silent --remote-name --location https
://raw.githubusercontent.com
/ceph
/ceph
/master
/src
/cephadm
/cephadm
11 chmod +x
/root
/bin
/cephadm
13 mon_ip
=$
(ifconfig eth0 |
grep 'inet ' |
awk '{ print $2}')
14 {% if ceph_dev_folder is defined
%}
15 cephadm bootstrap
--mon-ip $mon_ip --initial-dashboard-password {{ admin_password
}} --allow-fqdn-hostname --dashboard-password-noupdate --shared_ceph_folder /mnt
/{{ ceph_dev_folder
}}
17 cephadm bootstrap
--mon-ip $mon_ip --initial-dashboard-password {{ admin_password
}} --allow-fqdn-hostname --dashboard-password-noupdate
19 fsid
=$
(cat /etc
/ceph
/ceph.conf |
grep fsid |
awk '{ print $3}')
20 {% for number
in range
(1, nodes
) %}
21 ssh-copy-id
-f -i /etc
/ceph
/ceph.pub
-o StrictHostKeyChecking
=no root@
{{ prefix
}}-node-0{{ number
}}.
{{ domain
}}