aboutsummaryrefslogtreecommitdiffstats
path: root/modules/bind
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2012-03-20 17:30:29 +0000
committerMichael Scherer <misc@mageia.org>2012-03-20 17:30:29 +0000
commit47ef89f1230721a4c47a55e5e3e881ab237ffd2a (patch)
tree5e6f97ac2789c932f154e9d966ce6d72fcc52cfc /modules/bind
parentc6e3ec6db825102b48bbac94dafb61fc5667502b (diff)
downloadpuppet-47ef89f1230721a4c47a55e5e3e881ab237ffd2a.tar
puppet-47ef89f1230721a4c47a55e5e3e881ab237ffd2a.tar.gz
puppet-47ef89f1230721a4c47a55e5e3e881ab237ffd2a.tar.bz2
puppet-47ef89f1230721a4c47a55e5e3e881ab237ffd2a.tar.xz
puppet-47ef89f1230721a4c47a55e5e3e881ab237ffd2a.zip
clean style of the file
Diffstat (limited to 'modules/bind')
-rw-r--r--modules/bind/manifests/init.pp46
1 files changed, 23 insertions, 23 deletions
diff --git a/modules/bind/manifests/init.pp b/modules/bind/manifests/init.pp
index 230c50d1..9664530b 100644
--- a/modules/bind/manifests/init.pp
+++ b/modules/bind/manifests/init.pp
@@ -1,26 +1,26 @@
class bind {
class bind_base {
- package { bind: }
+ package { 'bind': }
- service { named:
- restart => "service named restart",
- subscribe => Package["bind"],
+ service { 'named':
+ restart => 'service named restart',
+ subscribe => Package['bind'],
}
file { '/etc/named.conf':
- ensure => "/var/lib/named/etc/named.conf",
- require => Package[bind],
+ ensure => '/var/lib/named/etc/named.conf',
+ require => Package['bind'],
}
-
- exec { "named_reload":
- command => "service named reload",
+
+ exec { 'named_reload':
+ command => 'service named reload',
refreshonly => true,
}
file { '/var/lib/named/etc/named.conf':
- require => Package["bind"],
- content => "",
- notify => Service['named'],
+ require => Package['bind'],
+ content => '',
+ notify => Service['named'],
}
}
@@ -32,23 +32,23 @@ class bind {
}
file { "/var/lib/named/var/named/$zone_subdir/$name.zone":
content => $zone_content,
- require => Package[bind],
- notify => Exec[named_reload]
+ require => Package['bind'],
+ notify => Exec['named_reload']
}
}
define zone_master($content = false) {
- $zone_subdir = "master"
- zone_base { $name :
- content => $content
+ $zone_subdir = 'master'
+ zone_base { $name :
+ content => $content
}
}
define zone_reverse($content = false) {
- $zone_subdir = "reverse"
- zone_base { $name :
- content => $content
- }
+ $zone_subdir = 'reverse'
+ zone_base { $name :
+ content => $content
+ }
}
@@ -57,14 +57,14 @@ class bind {
$managed_tlds = list_exported_ressources('Tld_redirections::Domain')
File['/var/lib/named/etc/named.conf'] {
- content => template("bind/named_base.conf", "bind/named_master.conf"),
+ content => template('bind/named_base.conf', 'bind/named_master.conf'),
}
}
class bind_slave inherits bind_base {
$managed_tlds = list_exported_ressources('Tld_redirections::Domain')
File['/var/lib/named/etc/named.conf'] {
- content => template("bind/named_base.conf", "bind/named_slave.conf"),
+ content => template('bind/named_base.conf', 'bind/named_slave.conf'),
}
}
}