hosts info config in container 47/35047/3
authorMatthewLi <matthew.lijun@huawei.com>
Fri, 19 May 2017 09:22:34 +0000 (05:22 -0400)
committerMatthewLi <matthew.lijun@huawei.com>
Fri, 19 May 2017 09:46:11 +0000 (05:46 -0400)
commit84e7b3b030018fd3f464bfa9c47c1df9d07ce675
treea222bc84a7c3929c8cdc7ba3e2f2c1bda6917e43
parent90cbc0764d68369a0a6ce0fe09112e73fef2e760
hosts info config in container

JIRA: DOVETAIL-435

in some SUT, there's a need to config hosts <domain name>:<ip> info
in container /etc/hosts, ortherwise, SUT service will not be used.

usage:

1,for dovetail directly running, cd ${DOVETAIL_HOME}/userconfig
  vim hosts.yaml
  sth like
  hosts_info:
    - domain_nameA:192.168.33.101
    - domain_nameB:<some IP>
2,for dovetail container running, first get inside the container,
  cd /home/opnfv/dovetail/userconfig
  vim hosts.yaml
  same as 1.

Change-Id: Ic5d87df3d78c0fa1d08c4e972c0fc97e61b906e9
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
dovetail/container.py
userconfig/hosts.yaml [new file with mode: 0644]