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,31 @@
SHELL := /bin/bash
.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c
MAKEFILE_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
ANSIBLE_DIR := $(abspath $(MAKEFILE_DIR)/../ansible)
.PHONY: all \
install_ceph bootstrap_ceph share_ceph_pubkey setup_cluster
all: setup_cluster
install_ceph:
cd "$(ANSIBLE_DIR)"
ansible-playbook playbooks/ceph/00_install.yml -i inventory.ini
bootstrap_ceph: install_ceph
cd "$(ANSIBLE_DIR)"
ansible-playbook playbooks/ceph/01_bootstrap.yml -i inventory.ini
share_ceph_pubkey: bootstrap_ceph
cd "$(ANSIBLE_DIR)"
ansible-playbook playbooks/ceph/02_share_pubkey.yml -i inventory.ini
setup_cluster: share_ceph_pubkey
cd "$(ANSIBLE_DIR)"
ansible-playbook playbooks/ceph/03_setup_cluster.yml -i inventory.ini
# make -f 06_setup_ceph.mk