remove quotations
[mirror/dsa-puppet.git] / modules / geodns / manifests / init.pp
1 class geodns {
2
3     package { bind9: ensure => installed }
4
5     file {
6       "/etc/apt/sources.list.d/geoip.list":
7              source => "puppet:///files/etc/apt/sources.list.d/geoip.list",
8              notify  => Exec["apt-get update"],
9              ;
10     }
11     file { "/etc/bind/named.conf.local":
12         source  => [ "puppet:///geodns/per-host/$fqdn/named.conf.local",
13                      "puppet:///geodns/common/named.conf.local" ],
14         require => Package["bind9"],
15         notify  => Exec["bind9 restart"],
16         owner   => root,
17         group   => root,
18
19     }
20     file { "/etc/bind/named.conf.geo":
21         source  => [ "puppet:///geodns/per-host/$fqdn/named.conf.geo",
22                      "puppet:///geodns/common/named.conf.geo" ],
23         require => Package["bind9"],
24         notify  => Exec["bind9 restart"],
25         owner   => root,
26         group   => root,
27
28     }
29     file { "/etc/bind/named.conf.acl":
30         source  => [ "puppet:///geodns/per-host/$fqdn/named.conf.acl",
31                      "puppet:///geodns/common/named.conf.acl" ],
32         require => Package["bind9"],
33         notify  => Exec["bind9 restart"],
34         owner   => root,
35         group   => root,
36
37     }
38     file { "/etc/bind/named.conf.options":
39         source  => [ "puppet:///geodns/per-host/$fqdn/named.conf.options",
40                      "puppet:///geodns/common/named.conf.options" ],
41         require => Package["bind9"],
42         notify  => Exec["bind9 restart"],
43         owner   => root,
44         group   => root,
45
46     }
47
48     exec { "bind9 restart":
49         path        => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",
50         refreshonly => true,
51     }
52 }
53