This commit is contained in:
Hrankin, Aleksandr (contracted)
2026-02-19 11:34:13 +00:00
commit f243f440c3
191 changed files with 6183 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
SHELL := /bin/bash
.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c
MAKEFILE_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
ANSIBLE_DIR := $(abspath $(MAKEFILE_DIR)/../ansible)
.PHONY: all \
download_vm_iso push_packer_dir run_packer shutdown_lxc_container
all: shutdown_lxc_container
download_vm_iso:
cd "$(ANSIBLE_DIR)"
ansible-playbook playbooks/proxmox/vm/download_iso.yml -i inventory.ini
push_packer_dir: download_vm_iso
cd "$(ANSIBLE_DIR)" && \
ansible-playbook playbooks/node/push_dir.yml -i inventory.ini \
-l "dev-kyiv01-lxc-packer-main-01" \
-e "resource_dir=/workspaces/infrastructure/packer/proxmox/debian13 target_dir=/opt/packer/proxmox/"
run_packer: push_packer_dir
cd "$(ANSIBLE_DIR)"
ansible-playbook playbooks/packer/run.yml -i inventory.ini
shutdown_lxc_container: run_packer
cd "$(ANSIBLE_DIR)" && \
ansible-playbook playbooks/node/execute_command.yml -i inventory.ini \
-l "dev-kyiv01-psy-proxmox-main-01" \
-e '{"command":"pct shutdown 200"}'
# make -f 01_create_vm_golden_template.mk