1 2 3 4 5 6 7 8
class profiles::common { file_line { 'hosts ourself': ensure => present, line => "::1\t${facts['name']}\t${::fqdn}", path => '/etc/hosts', } }