From 6065bf9216e8f4b676bc834253f713a8bf4e6f6e Mon Sep 17 00:00:00 2001 From: Arthur Outhenin-Chalandre Date: Fri, 24 Jun 2022 15:51:08 +0200 Subject: [PATCH] examples: add a simple example Signed-off-by: Arthur Outhenin-Chalandre --- examples/simple/main.tf | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 examples/simple/main.tf diff --git a/examples/simple/main.tf b/examples/simple/main.tf new file mode 100644 index 0000000..927756e --- /dev/null +++ b/examples/simple/main.tf @@ -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 + ] +}