[Puppet-dev] Puppet provider - xml parsing - help needed

2015-02-25 Thread Martin Alfke
Hi, I am stuck at a puppet provider where I need to read data from xml. Data which needs to get parsed: AR AR_ID![CDATA[8]]/AR_ID IP![CDATA[172.16.100.208]]/IP MAC![CDATA[02:00:ac:10:64:d0]]/MAC SIZE![CDATA[1]]/SIZE TYPE![CDATA[IP4]]/TYPE

[Puppet-dev] Puppet PR triage for puppet/facter/hiera starting soon

2015-02-25 Thread Scott Garman
Hello Puppet Peeps, It's that time again...we're about to start the pull request triage meeting for puppet/facter/hiera shortly. You can join our G+ Hangout here: http://links.puppetlabs.com/pr-triage Regards, Scott -- You received this message because you are subscribed to the Google Groups

Re: [Puppet-dev] Re: Puppet provider - xml parsing - help needed

2015-02-25 Thread Thomas Hallgren
I would take a look at nokogiri. It's an XML/HTML parser for Ruby. Some helpful hints here: http://stackoverflow.com/questions/11198239/parsing-xml-with-ruby - thomas On 2015-02-25 19:43, Henrik Lindberg wrote: On 2015-25-02 18:17, Martin Alfke wrote: Hi, I am stuck at a puppet provider

[Puppet-dev] Re: Puppet provider - xml parsing - help needed

2015-02-25 Thread Henrik Lindberg
On 2015-25-02 18:17, Martin Alfke wrote: Hi, I am stuck at a puppet provider where I need to read data from xml. Data which needs to get parsed: AR AR_ID![CDATA[8]]/AR_ID IP![CDATA[172.16.100.208]]/IP MAC![CDATA[02:00:ac:10:64:d0]]/MAC SIZE![CDATA[1]]/SIZE

Solved Re: [Puppet-dev] Re: Puppet provider - xml parsing - help needed

2015-02-25 Thread Martin Alfke
Many thanks for the feedback. Structure and Data can vary (depending on functionality - in this case ipv4 vs. ipv6). I was only doing one thing wrong in my code (one level of indirection too much) The following solution works: :addressrange= Hash[vnet.xpath('./AR_POOL/AR/AR_ID').collect {

[Puppet-dev] Autorequiring parent directories to the home directory in user resources

2015-02-25 Thread Raphaël Pinson
Hello, As per Kylo's comment in PR for PUP-4036 https://github.com/puppetlabs/puppet/pull/3645#issuecomment-76032829, I'd like to discuss the possibility and implications of autorequiring parent directories of the home directory for user resources. As stated in the PR, the idea came from

Re: [Puppet-dev] Autorequiring parent directories to the home directory in user resources

2015-02-25 Thread Trevor Vaughan
I think I filed a bug about this a while back. +1 for autorequiring targets Trevor On Wed, Feb 25, 2015 at 6:41 PM, Raphaël Pinson raphael.pin...@camptocamp.com wrote: Hello, As per Kylo's comment in PR for PUP-4036 https://github.com/puppetlabs/puppet/pull/3645#issuecomment-76032829,

[Puppet-dev] Re: Puppet provider - xml parsing - help needed

2015-02-25 Thread Raphaël Pinson
Hi Martin, Have you considered using an Augeas provider here, using the Xml lens? Cheers, Raphaël On Wednesday, February 25, 2015 at 6:18:02 PM UTC+1, Martin Alfke wrote: Hi, I am stuck at a puppet provider where I need to read data from xml. Data which needs to get parsed: