kolla-ansible/roles/cephadm/templates/commands.sh.j2
Michal Nasiadka c922d458df CI: cephadm: Add osds/pools/users in one run
Change-Id: If9b40079d42cdabfd14d27603357dd0aa027a49b
2022-06-20 09:49:55 +00:00

24 lines
414 B
Django/Jinja

# Status
ceph orch status --detail
# Apply cluster spec
ceph orch apply -i /var/run/ceph/cluster.yml
# OSDs
{% for osd in cephadm_ceph_osd_devices %}
ceph orch daemon add osd {{ osd }}
{% endfor %}
# Pools
{% for pool in cephadm_ceph_pools %}
ceph osd pool create {{ pool }}
{% endfor %}
# Users
{% for user in cephadm_ceph_users %}
ceph auth get-or-create {{ user }}
{% endfor %}
# Health
ceph health detail