Skip to content

Instantly share code, notes, and snippets.

@huynp1999
Created November 9, 2022 04:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save huynp1999/379b65fb2058c30e1ba3684e4e52d56e to your computer and use it in GitHub Desktop.
Save huynp1999/379b65fb2058c30e1ba3684e4e52d56e to your computer and use it in GitHub Desktop.
Cephadm spec file
service_type: host
hostname: ceph-mon-01
addr: 192.168.1.1
labels:
- _admin
- mon
- mgr
---
service_type: host
hostname: ceph-mon-02
addr: 192.168.1.2
labels:
- _admin
- mon
- mgr
---
service_type: host
hostname: ceph-mon-03
addr: 192.168.1.3
labels:
- _admin
- mon
- mgr
---
service_type: host
hostname: ceph-data-01
addr: 192.168.1.4
labels:
- _admin
- osd
---
service_type: host
hostname: ceph-data-02
addr: 192.168.1.5
labels:
- _admin
- osd
---
service_type: host
hostname: ceph-data-03
addr: 192.168.1.6
labels:
- _admin
- osd
---
service_type: mgr
service_name: mgr
placement:
hosts:
- ceph-mon-01
- ceph-mon-02
- ceph-mon-03
---
service_type: mon
service_name: mon
placement:
hosts:
- ceph-mon-01
- ceph-mon-02
- ceph-mon-03
---
service_type: osd
service_name: osd
placement:
hosts:
- ceph-data-01
- ceph-data-02
- ceph-data-03
spec:
crush_device_class: hdd
data_devices:
all: true
objectstore: bluestore
@huynp1999
Copy link
Author

cephadm bootstrap --mon-ip 192.168.1.1 --ssh-private-key /root/.ssh/id_rsa --ssh-public-key /root/.ssh/id_rsa.pub --ssh-user root --skip-dashboard --apply-spec cluster.yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment