Skip to content

Instantly share code, notes, and snippets.

@rodjek
Created December 31, 2011 07:42
Show Gist options
  • Select an option

  • Save rodjek/1543276 to your computer and use it in GitHub Desktop.

Select an option

Save rodjek/1543276 to your computer and use it in GitHub Desktop.
modules/bind/manifests/server.pp
node 'test.example.com' {
bind::server { $::fqdn:
config_file => 'puppet:///path/to/your/custom/config/file.conf',
}
}
define bind::server($config_file='puppet:///modules/bind/etc/bind/named.conf') {
package { 'bind9': }
service { 'named':
require => File['/etc/bind/named.conf'],
ensure => running,
enable => true,
}
file { '/etc/bind/named.conf',
ensure => file,
owner => 'root',
group => 'root',
mode => '0444',
source => $config_file,
require => Package['bind9'],
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment