From b13e31d9f8772ba5b979c891b631df1fa728ec99 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Sat, 26 Aug 2023 15:58:57 -0700 Subject: [PATCH] Move scripts to subdir --- .pre-commit-config.yaml | 2 +- Makefile | 2 +- nomad_vars.py => scripts/nomad_vars.py | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename nomad_vars.py => scripts/nomad_vars.py (100%) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0da157d..1a8feaa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -30,5 +30,5 @@ repos: - id: variable-sample name: generate variable sample file language: system - entry: bash -c 'venv/bin/python nomad_vars.py print > ./ansible_playbooks/vars/nomad_vars.sample.yml' + entry: bash -c 'venv/bin/python scripts/nomad_vars.py print > ./ansible_playbooks/vars/nomad_vars.sample.yml' types: [file] diff --git a/Makefile b/Makefile index 58122e8..f7ff008 100644 --- a/Makefile +++ b/Makefile @@ -62,7 +62,7 @@ ansible-cluster: $(VENV) ansible_galaxy bootstrap-values: $(VENV) env NOMAD_ADDR=http://192.168.2.101:4646 \ NOMAD_TOKEN=$(shell jq -r .SecretID nomad_bootstrap.json) \ - $(VENV)/bin/python ./nomad_vars.py + $(VENV)/bin/python ./scripts/nomad_vars.py .PHONY: recover-nomad recover-nomad: $(VENV) diff --git a/nomad_vars.py b/scripts/nomad_vars.py similarity index 100% rename from nomad_vars.py rename to scripts/nomad_vars.py