Open sakibsys opened 7 years ago
Which version of the module are you using?
also - can you paste in the call to dns::server:config
and the surrounding code?
Concat Version : mod 'puppetlabs-concat', '4.0.0'
dns::server:config :
# class dns::server::config ( $cfg_dir = $dns::server::params::cfg_dir, $cfg_file = $dns::server::params::cfg_file, $data_dir = $dns::server::params::data_dir, $owner = $dns::server::params::owner, $group = $dns::server::params::group, $zone_name= $dns::server::params::zone_name, ) inherits dns::server::params {
file { $cfg_dir: ensure => directory, owner => $owner, group => $group, mode => '0755', }
file { $data_dir: ensure => directory, owner => $owner, group => $group, mode => '0755', }
file { "${cfg_dir}/bind.keys.d/": ensure => directory, owner => $owner, group => $group, mode => '0755', }
file { $cfg_file: ensure => present, owner => $owner, group => $group, mode => '0644', content => template("${module_name}/named.conf.erb"), require => [ File[$cfg_dir], Class['dns::server::install'] ], notify => Class['dns::server::service'], }
concat::fragment{'named.${zone_name}.conf.header': target => "${cfg_dir}/named.${zone_name}.conf", order => 1, content => "// File managed by Puppet.\n" }
include dns::server::default
}
You misunderstood - I wanted to see the code where you are invoking dns::server::config
. I want to see what parameters you're passing, etc.
This is because the module install installs version 2.2.1 of puppetlabs/concat but the current version is 4.1.1 and does not work
Concat is driving me crazy. It perfectly works on my vagrant box but doesn't work in prod box. Any suggestion?
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Expected parameter 'path' of 'Concat[/etc/named/named.example.conf]' to have type Stdlib::Absolutepath, got String at /etc/puppetlabs/code/environments/production/modules/dns/manifests/server/config.pp:48 on node node1.example.pvt
N.B. We're using github and puppet version 4.