Ian Fijolek
a8181a5f29
Unsure of the best way to setup bootstrapping the system. Do I run an ansible playbook to generate certificates offline and then bootstrap with that? Can I bring it online after and schedule with Nomad?
20 lines
413 B
Makefile
20 lines
413 B
Makefile
STEPPATH ?= ./step_path
|
|
|
|
.PHONY: bootstrap
|
|
bootstrap: $(STEPPATH)/config/ca.json
|
|
|
|
$(STEPPATH)/config/ca.json:
|
|
env STEPPATH=$(STEPPATH) \
|
|
step ca init \
|
|
--ssh \
|
|
--deployment-type standalone \
|
|
--name TheFij \
|
|
--dns ca.thefij.rocks \
|
|
--address 0.0.0.0:9443 \
|
|
--provisioner ian@iamthefij.com
|
|
|
|
.PHONY: run
|
|
run: $(STEPPATH)/config/ca.json
|
|
env STEPPATH=$(STEPPATH) \
|
|
step-ca $(STEPPATH)/config/ca.json
|