Skip to content

Commit

Permalink
examples: add a simple example
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
  • Loading branch information
MrFreezeex committed Jun 24, 2022
1 parent 0fa9dea commit 6065bf9
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions examples/simple/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
terraform {
required_version = ">= 0.14.0"
required_providers {
ceph = {
source = "cernops/ceph"
version = "~> 0.1.0"
}
}
}

provider "ceph" {
entity = "client.admin"
}

resource "ceph_wait_online" "wait" {
cluster_name = "my-super-cluster"
}

resource "ceph_auth" "test" {
entity = "client.test"
caps = {
"mon": "allow *",
"osd": "allow rw",
"mds": "allow rw"
}
depends_on = [
ceph_wait_online.test
]
}

0 comments on commit 6065bf9

Please sign in to comment.