2014-02-24 19:37:23 +00:00
|
|
|
all: non_destructive destructive check_mode test_hash
|
2014-02-20 18:00:05 +00:00
|
|
|
|
|
|
|
non_destructive:
|
|
|
|
ansible-playbook non_destructive.yml -i inventory -e @integration_config.yml -v $(TEST_FLAGS)
|
2014-02-20 18:05:03 +00:00
|
|
|
|
2014-02-20 18:25:19 +00:00
|
|
|
destructive:
|
2014-02-20 18:05:03 +00:00
|
|
|
ansible-playbook destructive.yml -i inventory -e @integration_config.yml -v $(TEST_FLAGS)
|
2014-02-20 18:25:19 +00:00
|
|
|
|
2014-02-20 21:10:44 +00:00
|
|
|
check_mode:
|
|
|
|
ansible-playbook check_mode.yml -i inventory -e @integration_config.yml -v --check $(TEST_FLAGS)
|
|
|
|
|
2014-02-20 20:23:51 +00:00
|
|
|
test_hash:
|
|
|
|
ANSIBLE_HASH_BEHAVIOUR=replace ansible-playbook test_hash.yml -i inventory -v -e '{"test_hash":{"extra_args":"this is an extra arg"}}'
|
|
|
|
ANSIBLE_HASH_BEHAVIOUR=merge ansible-playbook test_hash.yml -i inventory -v -e '{"test_hash":{"extra_args":"this is an extra arg"}}'
|
2014-02-24 19:37:23 +00:00
|
|
|
|
|
|
|
cloud: amazon rackspace
|
|
|
|
|
|
|
|
credentials.yml:
|
|
|
|
@echo "No credentials.yml file found. A file named 'credentials.yml' is needed to provide credentials needed to run cloud tests."
|
|
|
|
@exit 1
|
|
|
|
|
|
|
|
amazon: credentials.yml
|
|
|
|
ansible-playbook amazon.yml -i inventory -e @integration_config.yml -e @credentials.yml -v $(TEST_FLAGS)
|
|
|
|
@# FIXME - Cleanup won't run if the previous tests fail
|
|
|
|
python cleanup_ec2.py -y
|
|
|
|
|
|
|
|
rackspace: credentials.yml
|
|
|
|
ansible-playbook rackspace.yml -i inventory -e @integration_config.yml -e @credentials.yml -v $(TEST_FLAGS)
|