Skip to content

Instantly share code, notes, and snippets.

@khouse
Created March 18, 2013 15:21
Show Gist options
  • Save khouse/5187931 to your computer and use it in GitHub Desktop.
Save khouse/5187931 to your computer and use it in GitHub Desktop.
Hiera mac address debugging
[root@puppet1 khouse]# hiera -d -c /etc/puppet/hiera.yaml -h 00:50:56:1A:B7:12 environment=testing
DEBUG: Mon Mar 18 14:43:42 +0000 2013: Hiera YAML backend starting
DEBUG: Mon Mar 18 14:43:42 +0000 2013: Looking up 00:50:56:1A:B7:12 in YAML backend
DEBUG: Mon Mar 18 14:43:42 +0000 2013: Looking for data source common
DEBUG: Mon Mar 18 14:43:42 +0000 2013: Looking for data source hostdb
DEBUG: Mon Mar 18 14:43:42 +0000 2013: Found 00:50:56:1A:B7:12 in hostdb
"interfaces"=>{"eth1"=>{"mac"=>"00:50:56:1a:b7:12"}
You have new mail in /var/mail/root
[root@puppet1 khouse]# hiera -d -c /etc/puppet/hiera.yaml -h 00:50:56:20:19:09 environment=testing
DEBUG: Mon Mar 18 14:43:52 +0000 2013: Hiera YAML backend starting
DEBUG: Mon Mar 18 14:43:52 +0000 2013: Looking up 00:50:56:20:19:09 in YAML backend
DEBUG: Mon Mar 18 14:43:52 +0000 2013: Looking for data source common
DEBUG: Mon Mar 18 14:43:52 +0000 2013: Looking for data source hostdb
nil
00:50:56:20:19:09:
gw: 10.49.240.1
hwguest: ''
id: 65780
interfaces:
eth1:
interface: eth1
ip: 10.49.241.53
mac: 00:50:56:20:19:09
name: relay2
netmask: 255.255.252.0
ipv6_gw: ''
mangw: ''
model: vm
node: relay2
00:50:56:1A:B7:12:
gw: 10.49.240.1
hwguest: ''
id: 65779
interfaces:
eth1:
interface: eth1
ip: 10.49.241.52
mac: 00:50:56:1a:b7:12
name: relay1
netmask: 255.255.252.0
ipv6_gw: ''
mangw: ''
model: vm
node: relay1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment