32 lines
780 B
Makefile
32 lines
780 B
Makefile
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
|
|
|