Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F33050067
Makefile
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
733 B
Referenced Files
None
Subscribers
None
Makefile
View Options
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:
terraform init
terraform plan
terraform 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:
$(RM) $(TERRAFORM_STATES)
File Metadata
Details
Attached
Mime Type
text/x-makefile
Expires
Tue, Jun 16, 13:50 (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3787505
Default Alt Text
Makefile (733 B)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment