Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Concat Issue #242

Open
sakibsys opened this issue Oct 27, 2017 · 5 comments
Open

Concat Issue #242

sakibsys opened this issue Oct 27, 2017 · 5 comments

Comments

@sakibsys
Copy link

sakibsys commented Oct 27, 2017

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.

@ghost
Copy link

ghost commented Oct 29, 2017

Which version of the module are you using?

@ghost
Copy link

ghost commented Oct 29, 2017

also - can you paste in the call to dns::server:config and the surrounding code?

@sakibsys
Copy link
Author

Concat Version : mod 'puppetlabs-concat', '4.0.0'

dns::server:config :

== Class dns::server

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

}

@ghost
Copy link

ghost commented Oct 31, 2017

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.

@witchbutter
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants