From d0297a8a7654f5b65a90a348a32967b3e7628610 Mon Sep 17 00:00:00 2001 From: Setola Date: Wed, 6 Nov 2013 10:24:47 +0100 Subject: [PATCH 1/2] Solved Error 400 on SERVER: Syntax error at 'inherits' at /etc/puppet/modules/dns/manifests/server/options.pp:18:29 --- manifests/server/options.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/server/options.pp b/manifests/server/options.pp index 77dd6ed5..1a582fd5 100644 --- a/manifests/server/options.pp +++ b/manifests/server/options.pp @@ -15,7 +15,7 @@ # 'forwarders' => [ '8.8.8.8', '8.8.4.4' ], # } # -define dns::server::options inherits dns::server::params ( +define dns::server::options ( $forwarders = [], ) { @@ -24,7 +24,7 @@ owner => $owner, group => $group, mode => '0644', - require => [File[${cfg_dir}], Class['dns::server::install']], + require => [File[$dns::server::params::cfg_dir], Class['dns::server::install']], content => template("${module_name}/named.conf.options.erb"), notify => Class['dns::server::service'], } From 65999bc260ee052a1c3bcf5b2f5f214a2b773589 Mon Sep 17 00:00:00 2001 From: Setola Date: Wed, 6 Nov 2013 10:36:48 +0100 Subject: [PATCH 2/2] Be sure to include dns::server::params --- manifests/server/options.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/server/options.pp b/manifests/server/options.pp index 1a582fd5..ea80937e 100644 --- a/manifests/server/options.pp +++ b/manifests/server/options.pp @@ -18,7 +18,7 @@ define dns::server::options ( $forwarders = [], ) { - + include dns::server::params file { $title: ensure => present, owner => $owner,