runningman/puppet-network — Issue #1: Error configuring static interface
Author: mhuffnagle
Created: 2012-01-18 17:29:17+00:00
State: open

The following interface configuration causes an error in Puppet v2.7.9:

network::if::static { "eth1":
ipaddress => "192.168.56.12",
netmask => "255.255.255.0",
macaddress => $macaddress_eth1,
ensure => "up"
}

Error

Classes, definitions, and nodes may only appear at toplevel or inside other classes; expected '%s' at /var/puppet/modules/network/manifests/init.pp:41 on node myhost.example.com