From 796a256bba5d86935e15b9c000902f30a4c6625d Mon Sep 17 00:00:00 2001 From: Tim Kuhlman Date: Thu, 30 Jul 2015 17:03:25 -0600 Subject: [PATCH] Make host_alive checks match the expected host names Change-Id: I53d52c2d4a882da6275a58b479787e74aa31c1e6 --- devstack.yml | 4 +++- mini-mon.yml | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/devstack.yml b/devstack.yml index 77d47c7..20348ca 100644 --- a/devstack.yml +++ b/devstack.yml @@ -9,7 +9,7 @@ ping_timeout: 1 instances: - name: mini-mon - host_name: 192.168.10.4 + host_name: mini-mon alive_test: ssh pre_tasks: - name: apt-get update @@ -24,6 +24,8 @@ - libvirt-python - mysql-python - python-novaclient + - name: Add mini-mon to hosts file + lineinfile: dest=/etc/hosts regexp="^{{ mini_mon }}" line="{{ mini_mon }} mini-mon" state=present tasks: - name: Setup the monasca cli credentials in the default environment copy: src=env.sh dest=/etc/profile.d/monasca_cli.sh owner=root group=root mode=0644 diff --git a/mini-mon.yml b/mini-mon.yml index c284593..8bc9901 100644 --- a/mini-mon.yml +++ b/mini-mon.yml @@ -42,8 +42,11 @@ ping_timeout: 1 instances: - name: devstack - host_name: 192.168.10.5 + host_name: devstack alive_test: ssh + pre_tasks: + - name: Add devstack to hosts file + lineinfile: dest=/etc/hosts regexp="^{{ devstack }}" line="{{ devstack }} devstack" state=present tasks: - name: Setup the monasca cli credentials in the default environment copy: src=env.sh dest=/etc/profile.d/monasca_cli.sh owner=root group=root mode=0644