Allows domain name to be configured
[genesis.git] / fuel / build / f_l23network / puppet / modules / l23network / manifests / hosts_file.pp
1 class l23network::hosts_file (
2   $nodes,
3   $extras=[],
4   $hosts_file = "/etc/hosts"
5 ) {
6
7   # OPNFV addition: Add additional lines in /etc/hosts through Astute additions
8
9   $host_resources = nodes_to_hosts($nodes)
10   $extras_host_resources = extras_to_hosts($extras)
11   Host {
12     ensure => present,
13     target => $hosts_file
14   }
15
16   create_resources(host, $host_resources)
17   create_resources(host, $extras_host_resources)
18 }