title: Puppet syntax error
body: <p>Receiving the following error <code>Error: Could not parse for environment production: Syntax error at 'conf'; expected '}' at haproxy/manifests/init.pp:4</code> while trying to <code>puppet parser validate</code> the following <code>init.pp</code></p>
  
  <p>I've looked through my class and it seems all my commas and colons are in order, so I'm not positive what is throwing this. As for my Vagrantfile</p>
  
  <pre><code>class haproxy {
  
    class { 'haproxy::install':
      $conf = '/etc/sysconfig/network'
      $seed = '11.111.111'              ## IP Seed
      $interfaces = {                   ## Generate IPConfigs based on Generic IP Variable
        'eth0'   =&gt; "${seed}.140",
        'eth0:0' =&gt; "${seed}.141",
        'eth0:1' =&gt; "${seed}.142",
      }
  
      ini_setting { 'networking':
        ensure  =&gt; present,
        section =&gt; '',
        setting =&gt; 'NETWORKING',
        value   =&gt; 'yes',
        path    =&gt; $conf,
      } -&gt;
  
      ini_setting { 'hostname':
        ensure  =&gt; present,
        section =&gt; '',
        setting =&gt; 'HOSTNAME',
        value   =&gt; $::fqdn,
        path    =&gt; $conf,
      } -&gt;
  
      ini_setting { 'gateway':
        ensure  =&gt; present,
        section =&gt; '',
        setting =&gt; 'GATEWAY',
        value   =&gt; "${seed}.1",
        path    =&gt; $conf,
      } -&gt;
  
      ## Clone to ifcfg-eth0:0 and ifcfg-eth0:1
      file { '/etc/sysconfig/network-scripts/ifcfg-eth0':
        ensure =&gt; present,
        source =&gt; '/etc/sysconfig/network-scripts/ifcfg-eth0:{0,1}',
      }
  
      ## Puppet Lambda's
      ## REF: http://goo.gl/qFj611
      ## TRY:
      ## REQ: the puppet apply --parser=future flag
      each($interfaces) |$device, $ipaddress| {
        file { 'interfaces':
          ensure  =&gt; link,
          target  =&gt; "/etc/sysconfig/network-scripts/ifcfg-${device}",
          content =&gt; template('interfaces.erb'),
        }
      }
    }
  }
  </code></pre>
  
  <p>Vagrantfile if anyone cares</p>
  
  <pre><code>    # -*- mode: ruby -*-
      # vi: set ft=ruby :
      Vagrant.configure(2) do |config|
        config.vm.box       = 'Oracle-6.6_Puppet-slave'
        config.vm.box_url   = 'boxes/Oracle-6.6_Puppet-slave.box'
  
        config.vm.provision :puppet do |puppet|
          puppet.options        = '--parser future'                                ## Future parser required for iteration
          puppet.options        = '--hiera_config /vagrant/generic/hiera.yaml'     ## Silence...
  
          puppet.manifests_path = 'manifests'
          puppet.manifest_file  = 'default.pp'
          puppet.module_path    = 'modules'
        end
      end
  </code></pre>