ceph-installer/terraform/init.tf

43 lines
754 B
Terraform
Raw Permalink Normal View History

2024-01-27 23:26:11 +03:00
terraform {
required_providers {
lxd = {
source = "terraform-lxd/lxd"
}
}
}
resource "lxd_project" "cephproject" {
name = "ceph"
description = "Terraform provider example project"
config = {
"features.storage.volumes" = false
"features.images" = false
"features.profiles" = false
"features.storage.buckets" = false
"features.networks" = true
}
}
resource "lxd_profile" "cephprofile" {
name = "cephprofile"
device {
name = "eth0"
type = "nic"
properties = {
nictype = "bridged"
parent = "${lxd_network.cephnet.name}"
}
}
device {
type = "disk"
name = "root"
properties = {
pool = "default"
path = "/"
}
}
}