From 2fd51d50eb3ab2233a92c6a0aaef834c705371f6 Mon Sep 17 00:00:00 2001 From: zleyyij <75810274+zleyyij@users.noreply.github.com> Date: Mon, 7 Oct 2024 14:48:40 -0600 Subject: [PATCH] vault backup: 2024-10-07 14:48:40 --- IT/Hashicorp Nomad.md | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/IT/Hashicorp Nomad.md b/IT/Hashicorp Nomad.md index 465b3b1..b304d31 100644 --- a/IT/Hashicorp Nomad.md +++ b/IT/Hashicorp Nomad.md @@ -30,6 +30,27 @@ Running a task is generally done by: ## Installing the CLI https://developer.hashicorp.com/nomad/tutorials/get-started/gs-install#install-the-nomad-cli +## Creating a single node cluster + + +Create a config file with in `/etc/nomad.d` named `config.hcl`: +```hcl +# https://developer.hashicorp.com/nomad/docs/configuration +# The client block configures the Nomad agent to accept jobs as assigned +# by the server. +# https://developer.hashicorp.com/nomad/docs/configuration/client +client { + enabled = true +} +server { + enabled = true + bootstrap_expect = 1 +} +# The local directory where agent state is stored. +data_dir = "/opt/nomad" +name = "YOUR_NOMAD_NAME_HERE" +``` # Resources -- https://developer.hashicorp.com/nomad/tutorials/get-started/gs-overview -- https://developer.hashicorp.com/nomad/docs/drivers \ No newline at end of file +- +- +- https://developer.hashicorp.com/nomad/docs/configuration \ No newline at end of file