Juniper / contrail-ansible-internal

Apache License 2.0
2 stars 5 forks source link

Write hosts file within container with host:ip dictionary #421

Closed hkumarmk closed 7 years ago

hkumarmk commented 7 years ago

External orchestrator can either write appropriate /etc/hosts entries within the host before launching the container, in which case container will take those entries. Alternatively it can just pass a dict of {host: ip} of all hosts to the container so that container will write them to the hosts file. In any case, container will make sure its own hostname has an entry in /etc/hosts file which is required by certain services like cassandra, kafka.

This expects a new configuration "hosts_entries" within GLOBAL section of contrailctl configruation file.

This PR need https://github.com/Juniper/contrail-docker/pull/161 merged.