title: Using a Puppet Definition in Site.pp
body: <p>I am using the following Puppet definition to disable IPV6 in windows:</p>
  
  <pre><code>#IPv6 Management
  define winconfig::ipv6 (
    $ensure,
    $state = UNDEF,
  ) {
    include winconfig::params
    case $ensure {
      'present','enabled': {
        case $state {
          UNDEF,'all': { $ipv6_data = '0' }
          'preferred': { $ipv6_data = '0x20' }
          'nontunnel': { $ipv6_data = '0x10' }
          'tunnel': { $ipv6_data = '0x01' }
          default: { $ipv6_data = '0' }
        }
      }
      'absent','disabled': { $ipv6_data = '0xffffffff' }
      default: { fail('You must specify ensure status...') }
    }
    registry::value{'ipv6':
      key    =&gt; 'hklm\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters',
      value  =&gt; 'DisabledComponents',
      type   =&gt; 'dword',
      data   =&gt; $ipv6_data,
    }
    reboot {'ipv6':
      subscribe =&gt; Registry::Value['ipv6'],
    }
  }
  </code></pre>
  
  <p>In Site.pp on the master I am using the follwing to call it from a node:</p>
  
  
  
  <pre><code>node 'BMSGITSS1' { 
  # Disable IPV6
    winconfig::ipv6 {
      ensure =&gt; 'disabled',
    }
  }
  </code></pre>
  
  <p>I get the following error when running puppet agent -t </p>
  
  <pre><code>Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could
   not parse for environment production: All resource specifications require names
  ; expected '%s' at /etc/puppetlabs/puppet/manifests/site.pp:55 on node bmsgitss1 
  Warning: Not using cache on failed catalog
  Error: Could not retrieve catalog; skipping run
  </code></pre>