cephadm configuration in git
Hello ceph community, Currently we have deployed ceph clusters with ceph-ansible and whole configuration (number od daemons, osd configurations, rgw configurations, crush configuration, ...) of each cluster is stored in git and ansible variables and we can recreate clusters with ceph-ansible in case we need it. To change the configuration of a cluster we change appropriate Ansible variable, we test it on testing cluster and if new configuration works correctly we apply it on prod cluster. Is it possible to do it with cephadm? Is it possible to have some config files in git and then apply same cluster configuration on multiple clusters? Or is this approach not aligned with cephadm and we should do it different way? Kamil Madac
On 10/11/23 11:42, Kamil Madac wrote:
Is it possible to do it with cephadm? Is it possible to have some config files in git and then apply same cluster configuration on multiple clusters? Or is this approach not aligned with cephadm and we should do it different way?
You can export the service specifications with "ceph orch ls --export" and import the YAML file with "ceph orch apply -i …". This does not cover the hosts in the cluster. Regards -- Robert Sander Heinlein Consulting GmbH Schwedter Str. 8/9b, 10119 Berlin https://www.heinlein-support.de Tel: 030 / 405051-43 Fax: 030 / 405051-19 Amtsgericht Berlin-Charlottenburg - HRB 220009 B Geschäftsführer: Peer Heinlein - Sitz: Berlin
Hello Kamil, There is stackhpc.cephadm Ansible collection (https://galaxy.ansible.com/ui/repo/published/stackhpc/cephadm/) that would probably fit most of your needs - other option is to ceph orch ls —export and then store it in git for import purposes - but it won’t cover everything. Best regards, Michal
On 11 Oct 2023, at 11:42, Kamil Madac <kamil.madac@gmail.com> wrote:
Hello ceph community,
Currently we have deployed ceph clusters with ceph-ansible and whole configuration (number od daemons, osd configurations, rgw configurations, crush configuration, ...) of each cluster is stored in git and ansible variables and we can recreate clusters with ceph-ansible in case we need it. To change the configuration of a cluster we change appropriate Ansible variable, we test it on testing cluster and if new configuration works correctly we apply it on prod cluster.
Is it possible to do it with cephadm? Is it possible to have some config files in git and then apply same cluster configuration on multiple clusters? Or is this approach not aligned with cephadm and we should do it different way?
Kamil Madac _______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
participants (3)
-
Kamil Madac
-
Michał Nasiadka
-
Robert Sander