mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
demo: apply hclfmt to ceph files
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# processes in a single task and doesn't will not persist data after a restart
|
||||
|
||||
variable "cluster_id" {
|
||||
type = string
|
||||
type = string
|
||||
# generated from uuid5(dns) with ceph.example.com as the seed
|
||||
default = "e9ba69fa-67ff-5920-b374-84d5801edd19"
|
||||
description = "cluster ID for the Ceph monitor"
|
||||
@@ -40,10 +40,10 @@ job "ceph" {
|
||||
port = 5000
|
||||
|
||||
check {
|
||||
type = "http"
|
||||
interval = "5s"
|
||||
timeout = "1s"
|
||||
path = "/"
|
||||
type = "http"
|
||||
interval = "5s"
|
||||
timeout = "1s"
|
||||
path = "/"
|
||||
initial_status = "warning"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
variable "cluster_id" {
|
||||
type = string
|
||||
type = string
|
||||
# generated from uuid5(dns) with ceph.example.com as the seed
|
||||
default = "e9ba69fa-67ff-5920-b374-84d5801edd19"
|
||||
description = "cluster ID for the Ceph monitor"
|
||||
@@ -54,7 +54,7 @@ job "plugin-cephrbd-controller" {
|
||||
]
|
||||
|
||||
network_mode = "host"
|
||||
ports = ["prometheus"]
|
||||
ports = ["prometheus"]
|
||||
|
||||
# we need to be able to write key material to disk in this location
|
||||
mount {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
variable "cluster_id" {
|
||||
type = string
|
||||
type = string
|
||||
# generated from uuid5(dns) with ceph.example.com as the seed
|
||||
default = "e9ba69fa-67ff-5920-b374-84d5801edd19"
|
||||
description = "cluster ID for the Ceph monitor"
|
||||
@@ -77,7 +77,7 @@ EOT
|
||||
# ceph configuration file
|
||||
template {
|
||||
|
||||
data = <<EOF
|
||||
data = <<EOF
|
||||
[{
|
||||
"clusterID": "${var.cluster_id}",
|
||||
"monitors": [
|
||||
|
||||
@@ -35,7 +35,7 @@ secrets {
|
||||
|
||||
parameters {
|
||||
# seeded from uuid5(ceph.example.com)
|
||||
clusterID = "e9ba69fa-67ff-5920-b374-84d5801edd19"
|
||||
clusterID = "e9ba69fa-67ff-5920-b374-84d5801edd19"
|
||||
pool = "rbd"
|
||||
imageFeatures = "layering"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user