Displaying 8 results from an estimated 8 matches for "macaddress_eth0".
2012 Jun 14
1
facter --yaml leaves some fields blank
...ct values for
a shell script. However we recently discovered that when we have a
Linux box who''s primary NIC is "br123" (a bridge device) that the
macaddress fact shows up as "all zeros" like above. (I consider this a
bug but... that''s not the point). Luckily macaddress_eth0 shows the
real MAC address no matter what. Therefore, we made the simple code
change to use the macaddress_eth0 fact instead. However now facter
goes silent on most of the values:
# facter --yaml fqdn macaddress_eth0 lsbdistcodename
---
fqdn: my.host.name.example.com
macaddress_eth0:
lsbdistcode...
2012 Aug 14
4
Error 400 on SERVER: Could not parse for environment production: Syntax error at '{'; expected '}'
...uction: Syntax
error at ''{''; expected ''}''
Here''s the node.pp
node "ccc.unix.ccc.ccc.edu" {
class {
"web_server":
net_static => {
"eth0" => {
"macaddress" => $macaddress_eth0,
"ipaddress" => "192.168.185.228",
"netmask" => "2255.255.255.128",
"gateway" => "192.168.185.129",
}
},
environment => "production",
unattended_up...
2011 May 23
2
Variable interpolation challenge
...''ve allowed for passing the
mac address into my define() but if it''s not provided I want to look it up
via facter.
if "$macaddress_${name}" {
$final_hwaddr = "$macaddress_${name}"
}
I want Puppet to look up the value of macaddress_eth0 or whatever, but
instead it returns the value of $name. How can I get the appropriate value?
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this g...
2009 Dec 24
7
nested variables
Hi all!
I have quation: how i may use nested variables/facts? For example, I
have variable $iface. It''s variable declared in node brakets, and, use
with defenition. iface may be eth0, eth1(Linux), em0, ...
<freebsd>, ...
is fact:
facter | grep eth0 | grep mac
macaddress_eth0 => 54:52:00:3D:CB:40
We don''nt know name of $iface in our module (to generate network
settings), how we may use nested variables/facts? Syntax:
$mac = ${$macaddress_${iface}}
Does''nt work.
In documentation i did''nt find answer for my quation...
--
You received th...
2009 Dec 09
3
facter 1.5.7 all lsb* items missing
...hardwaremodel => i686
hostname => broken
id => root
interfaces => eth0,sit0
ipaddress => 1.2.1.5
ipaddress_eth0 => 1.2.1.5
is_virtual => true
kernel => Linux
kernelmajversion => 2.6
kernelrelease => 2.6.18-164.6.1.el5
kernelversion => 2.6.18
macaddress => 00xxxx
macaddress_eth0 => 00xxxx
manufacturer => VMware, Inc.
memoryfree => 811.50 MB
memorysize => 1.98 GB
netmask => 255.255.255.240
netmask_eth0 => 255.255.255.240
network_eth0 => 1xxxxx
operatingsystem => RedHat
operatingsystemrelease => 5.4
path =>
/usr/kerberos/sbin:/usr/kerberos/bin:/...
2012 May 17
1
Puppet facter 1.6.8 and inet6 addresses
...80::250:56ff:fe99:7335/64* scope link
valid_lft forever preferred_lft forever
But with facter run as root I don''t get any inet6 adress
facter | grep addr
ipaddress => 10.66.112.71
ipaddress_eth0 => 10.66.112.71
ipaddress_lo => 127.0.0.1
macaddress => 00:50:56:99:73:35
macaddress_eth0 => 00:50:56:99:73:35
I''m using facter v1.6.8
Could you please tell me how to get the IPv6 adresse using facter ?
Thanks in advance
Best regards,
Christophe
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this disc...
2011 Mar 02
4
networkinterface type proposal
Hi - I''ve searched around and haven''t found anyone who''s implemented a type+provider for configuring network interfaces in puppet. Does anyone have such a thing already running that''s just not on forge / github? I found some prior art (aside from the old ''interface'' type which was deleted in 0.24) but most people seem to use definitions +
2013 Apr 18
4
fact_stomp_server
Does anyone have any insight into this error message?
err: Could not retrieve catalog from remote server: Error 400 on SERVER:
The fact named fact_stomp_server does not appear to be a valid hostname.
The value of '''' does not match ''^[a-zA-Z0-9.-]+$''. A common cause of this
problem is running puppet agent as a normal user instead of root, or the
fact is