Invalid Parameter on node puppet
Posted
by
chandank
on Server Fault
See other posts from Server Fault
or by chandank
Published on 2012-10-24T20:49:50Z
Indexed on
2012/10/24
23:03 UTC
Read the original article
Hit count: 422
I am getting an error of err: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid parameter port at /etc/puppet/manifests/nodes/node.pp:652 on node test-puppet
My puppet class: (The Line 652 at node.pp)
node 'test-puppet' {
class { 'syslog_ng':
host => "newhost",
ip => "192.168.1.10",
port => "1999",
logfile => "/var/log/test.log",
}
}
On the module side
class syslog_ng::config (
$host ,
$ip ,
$port,
$logfile){
file {'/etc/syslog-ng/syslog-ng.conf':
ensure => present,
owner => 'root',
group => 'root',
content => template('syslog-ng/syslog-ng.conf.erb'),
notify => Service['syslog-ng'],
require => Class['syslog_ng::install'],
}
file {"/etc/syslog-ng/conf/${host}.conf":
ensure => present,
owner => 'root',
group => 'root',
notify => Service['syslog-ng'],
content => template("syslog-ng/${host}.conf.erb"),
require => Class['syslog_ng::install'],
}
}
I think I am doing it as per the puppet documentation.
© Server Fault or respective owner