Skip to content

Commit e20ecbd

Browse files
committed
Add task to create initial Ceph cluster
1 parent 82869ba commit e20ecbd

6 files changed

Lines changed: 621 additions & 0 deletions

File tree

incus-osd/api/task_ceph.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package api
2+
3+
// TaskCephCluster defines the information required to deploy and configure a default Ceph cluster.
4+
type TaskCephCluster struct {
5+
Hosts []*TaskCephClusterHost `json:"hosts" yaml:"hosts"`
6+
Network string `json:"network,omitempty" yaml:"network,omitempty"`
7+
Project string `json:"project,omitempty" yaml:"project,omitempty"`
8+
}
9+
10+
// TaskCephClusterHost defines an Incus host and raw device mapping.
11+
type TaskCephClusterHost struct {
12+
IncusServerName string `json:"incus_server_name" yaml:"incus_server_name"`
13+
RawDeviceID string `json:"raw_device_id" yaml:"raw_device_id"`
14+
}

0 commit comments

Comments
 (0)