summaryrefslogtreecommitdiffstats
path: root/fuel/build/f_l23network/puppet/modules/l23network/manifests/hosts_file.pp
blob: 05cff8d6043022c23ade24c4c45a5e86bbdbd0d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class l23network::hosts_file (
  $nodes,
  $extras=[],
  $hosts_file = "/etc/hosts"
) {

  # OPNFV addition: Add additional lines in /etc/hosts through Astute additions

  $host_resources = nodes_to_hosts($nodes)
  $extras_host_resources = extras_to_hosts($extras)
  Host {
    ensure => present,
    target => $hosts_file
  }

  create_resources(host, $host_resources)
  create_resources(host, $extras_host_resources)
}