From 9e9a98a441d70b4b964f1c0db78132186c000c3a Mon Sep 17 00:00:00 2001 From: Serge Logvinov Date: Sun, 11 Feb 2024 23:06:55 +0200 Subject: [PATCH] clean --- azure/Makefile | 3 ++- azure/images/Makefile | 3 +++ azure/init/Makefile | 3 +++ azure/prepare/Makefile | 3 +++ azure/services/Makefile | 3 +++ digitalocean/Makefile | 3 +++ openstack/Makefile | 5 +++++ scaleway/Makefile | 5 +++++ vultr/Makefile | 3 +++ 9 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 azure/images/Makefile create mode 100644 azure/init/Makefile create mode 100644 azure/prepare/Makefile create mode 100644 azure/services/Makefile create mode 100644 digitalocean/Makefile create mode 100644 vultr/Makefile diff --git a/azure/Makefile b/azure/Makefile index 320d28a..d8b067e 100644 --- a/azure/Makefile +++ b/azure/Makefile @@ -12,8 +12,9 @@ help: @awk 'BEGIN {FS = ":.*?## "} /^[0-9a-zA-Z_-]+:.*?## / {sub("\\\\n",sprintf("\n%22c"," "), $$2);printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) clean: - rm -rf _cfgs/ + rm -rf _cfgs/ terraform.tfvars.json rm -f kubeconfig talosctl + rm -rf .terraform.lock.hcl .terraform/ terraform.tfstate terraform.tfstate.backup create-config: ## Genereate talos configs talosctl gen config --output-dir _cfgs --with-docs=false --with-examples=false ${CLUSTERNAME} https://${ENDPOINT}:6443 diff --git a/azure/images/Makefile b/azure/images/Makefile new file mode 100644 index 0000000..0e039f1 --- /dev/null +++ b/azure/images/Makefile @@ -0,0 +1,3 @@ + +clean: + rm -rf .terraform.lock.hcl .terraform/ terraform.tfstate terraform.tfstate.backup diff --git a/azure/init/Makefile b/azure/init/Makefile new file mode 100644 index 0000000..0e039f1 --- /dev/null +++ b/azure/init/Makefile @@ -0,0 +1,3 @@ + +clean: + rm -rf .terraform.lock.hcl .terraform/ terraform.tfstate terraform.tfstate.backup diff --git a/azure/prepare/Makefile b/azure/prepare/Makefile new file mode 100644 index 0000000..0e039f1 --- /dev/null +++ b/azure/prepare/Makefile @@ -0,0 +1,3 @@ + +clean: + rm -rf .terraform.lock.hcl .terraform/ terraform.tfstate terraform.tfstate.backup diff --git a/azure/services/Makefile b/azure/services/Makefile new file mode 100644 index 0000000..0e039f1 --- /dev/null +++ b/azure/services/Makefile @@ -0,0 +1,3 @@ + +clean: + rm -rf .terraform.lock.hcl .terraform/ terraform.tfstate terraform.tfstate.backup diff --git a/digitalocean/Makefile b/digitalocean/Makefile new file mode 100644 index 0000000..0e039f1 --- /dev/null +++ b/digitalocean/Makefile @@ -0,0 +1,3 @@ + +clean: + rm -rf .terraform.lock.hcl .terraform/ terraform.tfstate terraform.tfstate.backup diff --git a/openstack/Makefile b/openstack/Makefile index d79a91b..98e1c21 100644 --- a/openstack/Makefile +++ b/openstack/Makefile @@ -9,6 +9,11 @@ endif help: @awk 'BEGIN {FS = ":.*?## "} /^[0-9a-zA-Z_-]+:.*?## / {sub("\\\\n",sprintf("\n%22c"," "), $$2);printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) +clean: + rm -rf _cfgs/ terraform.tfvars.json + rm -f kubeconfig talosctl + rm -rf .terraform.lock.hcl .terraform/ terraform.tfstate terraform.tfstate.backup + create-lb: ## Create load balancer terraform init terraform apply -target=output.controlplane_endpoint_public --refresh -auto-approve diff --git a/scaleway/Makefile b/scaleway/Makefile index b26dd54..4d840dc 100644 --- a/scaleway/Makefile +++ b/scaleway/Makefile @@ -7,6 +7,11 @@ endif help: @awk 'BEGIN {FS = ":.*?## "} /^[0-9a-zA-Z_-]+:.*?## / {sub("\\\\n",sprintf("\n%22c"," "), $$2);printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) +clean: + rm -rf _cfgs/ terraform.tfvars.json + rm -f kubeconfig talosctl + rm -rf .terraform.lock.hcl .terraform/ terraform.tfstate terraform.tfstate.backup + create-lb: ## Create load balancer terraform init terraform apply -auto-approve -target=output.controlplane_endpoint diff --git a/vultr/Makefile b/vultr/Makefile new file mode 100644 index 0000000..0e039f1 --- /dev/null +++ b/vultr/Makefile @@ -0,0 +1,3 @@ + +clean: + rm -rf .terraform.lock.hcl .terraform/ terraform.tfstate terraform.tfstate.backup