# vim: set noexpandtab: ANSIBLE = ansible-playbook SKIP_TAGS = --skip-tags "init,common" PROD_BOOK = main_prod.yml TEST_BOOK = main_test.yml status: nova list # Everything init: $(ANSIBLE) $(PROD_BOOK) test-init: $(ANSIBLE) $(TEST_BOOK) up: $(ANSIBLE) $(PROD_BOOK) $(SKIP_TAGS) test-up: $(ANSIBLE) $(TEST_BOOK) $(SKIP_TAGS) restart: $(ANSIBLE) restart.yml reboot: $(ANSIBLE) reboot.yml stop: $(ANSIBLE) stop.yml # Specific app: $(ANSIBLE) $(PROD_BOOK) --tags conf-app $(SKIP_TAGS) test-app: $(ANSIBLE) $(TEST_BOOK) --tags conf-app $(SKIP_TAGS) lbs: $(ANSIBLE) $(PROD_BOOK) --tags conf-lbs $(SKIP_TAGS) monit: $(ANSIBLE) $(PROD_BOOK) --tags conf-monit $(SKIP_TAGS) backup: $(ANSIBLE) $(PROD_BOOK) --tags conf-backup $(SKIP_TAGS) dbs: $(ANSIBLE) $(PROD_BOOK) --tags conf-dbs $(SKIP_TAGS) test-dbs: $(ANSIBLE) $(TEST_BOOK) --tags conf-dbs $(SKIP_TAGS) ci: $(ANSIBLE) $(PROD_BOOK) --tags jenkins $(SKIP_TAGS) ci-slave: $(ANSIBLE) $(PROD_BOOK) --tags conf-ci-slave $(SKIP_TAGS) shib: $(ANSIBLE) $(PROD_BOOK) --tags conf-shib $(SKIP_TAGS) gluster: $(ANSIBLE) $(PROD_BOOK) --tags gluster $(SKIP_TAGS) common: $(ANSIBLE) $(PROD_BOOK) --tags common --skip-tags init # Utils update-phab: $(ANSIBLE) update_phab.yml security: $(ANSIBLE) security-update.yml arbitrator: $(ANSIBLE) arbitrator.yml clean: $(ANSIBLE) cleanup.yml