Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F56331077
Makefile
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
829 B
Referenced Files
None
Subscribers
None
Makefile
View Options
TERRAFORM_STATES_DIR=/opt/terraform/encrypted/tf-states/openbao/
TERRAFORM_STATES=terraform.tfstate terraform.tfstate.backup
SALT=sudo -u salt salt
RM=rm -f
AUDIT_DATE != date -u +%Y-%m-%dT%H:%M:%SZ
AUDIT_LOG=/var/log/deploy.log
.PHONY: all rotate provision deploy clean
all:
@echo "There is no default target. Use 'make rotate' to rotate all secrets."
rotate: provision deploy clean
@echo "[$(AUDIT_DATE)] <$(USER)> Terraform :: Vault :: Full secrets rotation" >> $(AUDIT_LOG)
provision:
tf init
tf plan
tf apply -auto-approve
deploy:
$(SALT) windriver state.sls_id /usr/local/etc/secrets/rhyne-wyse.yaml roles/reports/rhyne-wyse/config
$(SALT) windriver state.sls_id /srv/viperserv/.credentials roles/viperserv/eggdrop/config
clean:
tf mount
cd $(TERRAFORM_STATES_DIR) && $(RM) $(TERRAFORM_STATES)
tf unmount
File Metadata
Details
Attached
Mime Type
text/x-makefile
Expires
Sat, Nov 7, 03:04 (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4207945
Default Alt Text
Makefile (829 B)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment