init
This commit is contained in:
31
makefiles/06_setup_ceph.mk
Normal file
31
makefiles/06_setup_ceph.mk
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user