I'm at whits end now, can someone please help me to understand what it is I'm doing wrong here:
my nodes.pp (nothing else in this file except this definition)
node test {
net::addr { 'routing':
routes = {
route1 => {
address => '192.168.23.14',
netmask => '255.255.255.0',
gateway => '192.168.23.1',
dev => 'eth0',
},
route2 => {
address => '192.168.1.3',
netmask => '255.255.255.0',
gateway => '192.168.1.1',
dev => 'eth2',
},
}
}
}
No matter what I change I keep getting this on every run on the test server, the run just terminates straight away:
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not parse for environment production: Syntax error at '='; expected '}' at /etc/puppet/manifests/nodes/nodes.pp:3 on node test
On line 3 this is what I have from the above:
net::addr { 'routing':
What am I missing here? Please help as its driving me to despair!
Thanks Dan
routes =>
?net::addr
type, because without that the question is not complete.