From 090dca27921efe22fdc39c8598356bfb74e5fe99 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Tue, 11 Dec 2012 13:10:30 -0500 Subject: setup /etc/hosts based on a template and the hiera value 'hosts' This will replace the existing /etc/hosts, so we will want to make this more smart later --- puppet/modules/site_config/manifests/hosts.pp | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 puppet/modules/site_config/manifests/hosts.pp (limited to 'puppet/modules/site_config/manifests/hosts.pp') diff --git a/puppet/modules/site_config/manifests/hosts.pp b/puppet/modules/site_config/manifests/hosts.pp new file mode 100644 index 00000000..08890a5d --- /dev/null +++ b/puppet/modules/site_config/manifests/hosts.pp @@ -0,0 +1,7 @@ +class site_config::hosts { + + file { '/etc/hosts': + content => template('site_config/hosts'), + mode => '0644', owner => root, group => root; + } +} -- cgit v1.2.3