[Puppet Users] using host resource with hiera data source

2011-08-14 Thread Alex L. Demidov
I'm trying to implement /etc/hosts handling using hiera as data source, but my current implementation requires data duplication because I could pass only array of strings as $name to host resource. Is there any way to avoid such data duplication? Or maybe it is possible to use templates but keep ab

Re: [Puppet Users] using host resource with hiera data source

2011-08-16 Thread Alex L. Demidov
On Mon, Aug 15, 2011 at 10:47:05AM -0700, Nan Liu wrote: > On Sun, Aug 14, 2011 at 10:18 AM, Alex L. Demidov > wrote: > > I'm trying to implement /etc/hosts handling using hiera as data > > source, but my current implementation requires data duplication > > becau

[Puppet Users] facter fails to detect network interfaces with long names

2011-09-20 Thread Alex L. Demidov
. Also it fails to retrieve individual interface information with following message for each interface with name "myinterface": Device "myinterfa" does not exist. myinterfa: error fetching interface information: Device not found [1]: https://bugs.gentoo.org/show_bug.cgi?id=179920

Re: [Puppet Users] facter fails to detect network interfaces with long names

2011-09-20 Thread Alex L. Demidov
On Tue, Sep 20, 2011 at 06:24:40PM +0100, Ken Barber wrote: > Hi Alex, > > What happens when you run 'ip addr list' instead? It shows interface names properly and not truncated. > > ken. > > On Tue, Sep 20, 2011 at 6:20 PM, Alex L. Demidov > wrote: > &g

Re: [Puppet Users] facter fails to detect network interfaces with long names

2011-09-20 Thread Alex L. Demidov
longnamefoo' to create a named interface - and > that seems to exist for both ifconfig and ip addr when reading the > interfaces. So I'm guessing 15 chars is the kernel limit or perhaps > brctl limit :-). Luckily all my interface names under 15 chars length. > > ken. >