Adding an integration test for the ec2_elb module

This commit is contained in:
James Cammarata
2014-04-28 20:37:08 -05:00
parent 1576e8d611
commit c9df855d38
13 changed files with 286 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
- hosts: testhost
- hosts: amazon
gather_facts: true
roles:
- { role: test_ec2_key, tags: test_ec2_key }
@@ -9,6 +9,24 @@
#- { role: test_ec2_facts, tags: test_ec2_facts }
- { role: test_ec2_elb_lb, tags: test_ec2_elb_lb }
#- { role: test_ec2_eip, tags: test_ec2_eip }
#- { role: test_ec2_elb, tags: test_ec2_elb }
#- { role: test_ec2_ami, tags: test_ec2_ami }
#- { role: test_ec2, tags: test_ec2 }
# complex test for ec2_elb, split up over multiple plays
# since there is a setup component as well as the test which
# runs on a different set of hosts (ec2 instances)
- hosts: amazon
roles:
- { role: ec2_provision_instances, tags: test_ec2_elb, count: 5 }
- hosts: ec2
gather_facts: no
remote_user: ec2-user
sudo: true
roles:
- { role: ec2_elb_instance_setup, tags: test_ec2_elb }
- hosts: amazon
roles:
- { role: test_ec2_elb, tags: test_ec2_elb }