I was generating a report from Foreman using the Hammer CLI to list my 
hosts for management on my Dev box. I started noticing that I wasn't seeing 
any IP addresses for SUSE 11 SP3. Thinking it was a OS specific issue, I 
checked my PROD environment that has a large number of SUSE 11 SP1 - SP4 
being managed. All of the SUSE 11 SP1 and SP2 hosts all had IPs. 

Parsing out only the SUSE 11 SP3 and SP4 hosts I noticed that some had IPs, 
others did not. When I ran the /etc/puppetlabs/puppet/node.rb <host> I was 
getting IPv4 and IPv6 for the servers showing an IP in the Hammer CLI 
report. 

In the output below, servera is the test box and serverb is the production 
box.  

Both are configured exactly the same, have the same OS patches and are 
using puppet-agent-1.8.0-1.sles11.  The only difference is that the PROD 
server doesn't have IPv6 enabled. 

*Is this a bug or by design? *I don't want go trying to modify the node.rb 
to make this work correctly with Foreman if this happens to be a bug. 

Thanks! 

*-----------------------------------------------------------------------------------------*

*Working Host:*
----|--------------------------------|-----------------------|------------------------------------|-----------------|------------------
ID  | NAME                           | OPERATING SYSTEM      | HOST GROUP  
                       | IP              | MAC
----|--------------------------------|-----------------------|------------------------------------|-----------------|------------------
15  | servera                        | SLES 11 SP3           | 
Linux_Default                      | 10.118.84.22    | 00:50:56:a6:77:9a

  foreman_interfaces:
  - ip: 10.118.84.22
    ip6: fe80::250:56ff:fea6:779a
    mac: 00:50:56:a6:77:9a
    name: servera
    attrs:
      mtu: 1500
      netmask6: 'ffff:ffff:ffff:ffff::'
      netmask: 255.255.255.0
      network6: 'fe80::'
      network: 10.118.84.0
    virtual: false
    link: true
    identifier: eth0

# facter networking.interfaces.eth0
{
  bindings => [
    {
      address => "10.118.84.22",
      netmask => "255.255.255.0",
      network => "10.118.84.0"
    }
  ],
  bindings6 => [
    {
      address => "fe80::250:56ff:fea6:779a",
      netmask => "ffff:ffff:ffff:ffff::",
      network => "fe80::"
    }
  ],
  ip => "10.118.84.22",
  ip6 => "fe80::250:56ff:fea6:779a",
  mac => "00:50:56:a6:77:9a",
  mtu => 1500,
  netmask => "255.255.255.0",
  netmask6 => "ffff:ffff:ffff:ffff::",
  network => "10.118.84.0",
  network6 => "fe80::"
}



*Non-working Host:*

----|--------------------------------|-----------------------|------------------------------------|-----------------|------------------
ID  | NAME                           | OPERATING SYSTEM      | HOST GROUP  
                       | IP              | MAC
----|--------------------------------|-----------------------|------------------------------------|-----------------|------------------
103 | serverb                       | SLES 11 SP3           | 
Linux_Default                      |                 | 00:50:56:a6:50:da

  foreman_interfaces:
  - ip:
    ip6: ''
    mac: 00:50:56:a6:50:da
    name: serverb
    attrs: {}
    virtual: false
    link: true
    identifier: eth0


D facter networking.interfaces.eth0
{
  bindings => [
    {
      address => "10.118.66.67",
      netmask => "255.255.255.0",
      network => "10.118.66.0"
    }
  ],
  bindings6 => [
    {
      address => "10.118.66.67"
    }
  ],
  ip => "10.118.66.67",
  ip6 => "10.118.66.67",
  mac => "00:50:56:a6:50:da",
  mtu => 1500,
  netmask => "255.255.255.0",
  network => "10.118.66.0"
}


-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/5d6a69f2-86a0-4e33-9906-74b17200a509%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to