diff options
Diffstat (limited to 'fuel-build/f_l23network/puppet/modules/l23network/manifests/hosts_file.pp.orig')
-rw-r--r-- | fuel-build/f_l23network/puppet/modules/l23network/manifests/hosts_file.pp.orig | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/fuel-build/f_l23network/puppet/modules/l23network/manifests/hosts_file.pp.orig b/fuel-build/f_l23network/puppet/modules/l23network/manifests/hosts_file.pp.orig new file mode 100644 index 0000000..2295e3f --- /dev/null +++ b/fuel-build/f_l23network/puppet/modules/l23network/manifests/hosts_file.pp.orig @@ -0,0 +1,16 @@ +class l23network::hosts_file ( + $nodes, + $hosts_file = "/etc/hosts" +) { + + #Move original hosts file + + $host_resources = nodes_to_hosts($nodes) + + Host { + ensure => present, + target => $hosts_file + } + + create_resources(host, $host_resources) +} |