Issue #4995 has been updated by Jonas Genannt.

> My take on this: 
> [lxc.rb](https://raw.github.com/kwilczynski/facter-facts/master/lxc.rb); in 
> the repository: [facter-facts](https://github.com/kwilczynski/facter-facts).
> 
> I tested it using multiple versions of LXC and "liblxc", plus few different 
> versions of "libvirt" (why do they change so much between releases?!) and I 
> do hope that everything works as it says on the tin :-)
> 
> What needs doing: consolidating it under the "virtual" fact which was also 
> done and I need to give it just a little bit more attention, and as usual I 
> need to write tests for it ... :)

great. I had to add require 'thread' at the top, to get it working.

The fact reports host on my lxc master system - that correct.

On my lxc container with Debian Squeeze 2.6.32-5-amd64 with lxc 0.7.3-1 the 
fact does not work.

The output of "cat /proc/1/environ" returns "_=./lxc"

There is no "container="


----------------------------------------
Feature #4995: LXC Container support
https://projects.puppetlabs.com/issues/4995

Author: Jonas Genannt
Status: Investigating
Priority: Low
Assignee: Krzysztof Wilczynski
Category: library
Target version: 
Keywords: virtual,lxc
Branch: 
Affected Facter version: 


The virtual fact for facter should support lxc containers.

For more information about lxc: http://lxc.sourceforge.net/

We can detect an running lxc master system, if /cgroup is mounted on the system.




-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to