config 800 B

123456789101112131415161718192021222324252627282930
  1. %templates = (
  2. 'hostname' => '/etc/hostname',
  3. 'mailname' => '/etc/mailname',
  4. 'hosts' => '/etc/hosts',
  5. 'interfaces' => '/etc/network/interfaces',
  6. 'resolv.conf' => '/etc/resolv.conf',
  7. 'main.cf' => '/etc/postfix/main.cf',
  8. 'maps.cf' => '/etc/postfix/maps.cf',
  9. );
  10. %data = (
  11. hostname => 'template-squeeze',
  12. domain => 'srv.alt.tf',
  13. relayhost => 'smtp.alt.tf',
  14. resolv => {
  15. nameservers => ['192.168.248.153', 'fd00:6b64:f3b0:153::1'],
  16. search => 'alt.tf'
  17. },
  18. interfaces => [
  19. {
  20. name => 'eth0',
  21. ip => '192.168.42.7',
  22. netmask => '255.255.255.224',
  23. gateway => '192.168.42.1',
  24. ip6 => '2001:bc8:3283:2000::7',
  25. netmask6 => '64',
  26. gateway6 => '2001:bc8:3283:2000:ff::'
  27. }
  28. ]
  29. )