Report abuse

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class common::location {
   $address      = extlookup("address")
   $aptproxy     = extlookup("aptproxy")
   $citystate    = extlookup("citystate")
   $nameservers  = extlookup("nameservers")

   file { 
      "/etc/resolv.conf":
         content => template("common/resolv.conf.erb"),
         ensure  => "present";
   }

   host { 
      "aptproxy.$domain":
         alias  => "aptproxy",
         ensure => "present",
         ip     => "$aptproxy";
   }
}