Iterate resources in a puppet template

view full story

http://serverfault.com – I am trying to manage my /etc/hosts file with puppet, but I don't like the internal 'host' type, I'd like to use my own template if possible. I have therefore defined a 'host' resource: # Basic hosts configuration class hosts { # Host resource define host ( $address, $names ) { } Network::Hosts::Host { before => File['/etc/hosts'] } # Configure hosts file file { "/etc/hosts": ensure => present, checksum => md5, owner => root, group => root, mode =&g (HowTos)