Use registered variables for locust commands

Since we already have the load balancer vip available, we can use
that instead of hardcoding locust to use localhost.

Change-Id: I916b14bce56aac94d2810bf96ba15436d6bb2cae
This commit is contained in:
Lance Bragstad 2017-02-10 18:17:01 +00:00
parent 9c39427577
commit d9220c2d0d
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@
- { src: "auth.json" , dest: "/opt/auth.json" }
- { src: "locustfile.py" , dest: "/opt/locustfile.py" }
- name: Run locust
command: locust -f /opt/locustfile.py --no-web --clients=1 --only-summary --host=http://localhost --port=5000 --logfile=/var/log/locust.log
command: locust -f /opt/locustfile.py --no-web --clients=1 --only-summary --host={{ keystone_service_publicuri }} --logfile=/var/log/locust.log
async: 1000
poll: 0
register: locust_benchmark