Re: [Puppet Users] Access to one element from a yaml

2015-02-27 Thread Henrik Lindberg
On 2015-25-02 15:42, Fran Rodríguez wrote: Hi there, Some information is missing, sorry for that, this is the correct yaml: | nodes: host1: ip:xxx.xxx.xxx cdir:bbb.bbb.bbb interface:aaa host2: ip:yyy.yyy.yyy cdir:bbb.bbb.bbb interface:aaa | This yaml is

Re: [Puppet Users] Quick question about types/providers

2015-02-27 Thread Trevor Vaughan
Hi Peter, This might help: http://www.slideshare.net/PuppetLabs/puppet-type-and-provider-execution-presentation Thanks, Trevor On Fri, Feb 27, 2015 at 11:13 AM, Peter Berghold salty.cowd...@gmail.com wrote: that's exactly what I was after. Since this is my first type/provider pair I'm

[Puppet Users] Re: Dallas Fort-Worth Puppet User Group

2015-02-27 Thread Byron Miller
If you need any help/tips/advice hit me up, we've had great luck with out Austin pug! On Friday, February 27, 2015 at 2:33:16 AM UTC-6, Brad Christian wrote: Hi, I've started the DFWPUG. Please go to http://www.meetup.com/Dallas-Fort-Worth-Puppet-User-Group

Re: [Puppet Users] search facts by regex

2015-02-27 Thread Henrik Lindberg
On 2015-27-02 8:59, Alex Bogatu wrote: Hello! I spent the last couple of days trying to find a good way to search facts specific to some node based on ragex. For example, in my puppet manifest i need a way to check if there are facts whose names (not values) match a specific regex. Is there

[Puppet Users] Re: No puppet for Juniper SRX series?

2015-02-27 Thread Tony Thayer
One possibility is that SRX-series routers use a weird MIPS port of FreeBSD (https://wiki.freebsd.org/FreeBSD/mips/Octeon) that may not have a Ruby port. The only references I could find were for OpenBSD. Not sure why a router would need ruby-qt, but it's there if you need it! On Thursday,

Re: [Puppet Users] Quick question about types/providers

2015-02-27 Thread Felix Frank
On 02/27/2015 05:02 PM, Peter Berghold wrote: can I guess that the first def mod is what is referred to as a getter and second is a setter?Can I stretch that inference to say that if the value being passed to the setter is the same as what the getter is seeing it won't be set again?

Re: [Puppet Users] Quick question about types/providers

2015-02-27 Thread Peter Berghold
that's exactly what I was after. Since this is my first type/provider pair I'm proceeding cautiously. On Fri, Feb 27, 2015 at 11:09 AM Felix Frank felix.fr...@alumni.tu-berlin.de wrote: On 02/27/2015 05:02 PM, Peter Berghold wrote: can I guess that the first def mod is what is referred to

Re: [Puppet Users] Exec on a node causing action on another node?

2015-02-27 Thread Felix Frank
On 02/27/2015 07:51 AM, Erling Ringen Elvsrud wrote: Do you think it is possible to handle this with Puppet? Yes, but not relying on exec as heavily as you imply. Your first step should be a custom fact that reports the state of the certificate. The manifest for the node examines the fact

[Puppet Users] Quick question about types/providers

2015-02-27 Thread Peter Berghold
Using the example of the file provider that is bundled with puppet here is a sniglet of code that I've zoomed in on: def mode if stat = resource.stat return (stat.mode 00).to_s(8) else return :absent end end def mode=(value) begin

Re: [Puppet Users] Geppetto 4.x download is broken

2015-02-27 Thread Matthaus Owens
Brian, Geppetto 4.x downloads can be found at https://downloads.puppetlabs.com/geppetto/4.x. I'll update the wiki with the correct location. Hope that helps. On Fri, Feb 27, 2015 at 11:25 AM, Brian Morris nomadicextre...@gmail.com wrote: When attempting to access

Re: [Puppet Users] Quick question about types/providers

2015-02-27 Thread Peter Berghold
So, I wrote my type and its provider. Have a bunch of params and of course the first one I try to use newparam(:ipv4listen) do desc the ipv4listen param end doesn't seem to be seen by the Puppet infrastructure. Error: Could not retrieve catalog from remote server: Error 400 on SERVER:

Re: [Puppet Users] Re: first custom type... in the weeds already

2015-02-27 Thread jcbollinger
On Thursday, February 26, 2015 at 10:02:59 AM UTC-6, Salty Old Cowdawg wrote: Puppet::Type.newtype(:bannerfile) do newparam(:name)do end newparam(:bannertext)do end newparam(:bannertext2)do end end but a name variable is being defined and I'm still seeing the issue.

[Puppet Users] Geppetto 4.x download is broken

2015-02-27 Thread Brian Morris
When attempting to access *http://puppetlabs.github.io/geppetto/download.html* in any of 3 browsers on 2 platforms this error is generated: (In Chrome) This webpage has a redirect loop (In Firefox) The page isn't redirecting properly Additionally, the alternate link given on

Re: [Puppet Users] Quick question about types/providers

2015-02-27 Thread Peter Berghold
I think I discovered something, correct me if I'm in the weeds with this. Seems certain patterns cannot be used as parameters for a type. So far on my list version ipv4listen rndcport that last one baffles me. bindconfigure { $mypersonality: # ipv4listen=any, ipv6listen=any,

[Puppet Users] Dallas Fort-Worth Puppet User Group

2015-02-27 Thread Brad Christian
Hi, I've started the DFWPUG. Please go to http://www.meetup.com/Dallas-Fort-Worth-Puppet-User-Group http://www.meetup.com/Dallas-Fort-Worth-Puppet-User-Groupfor details, I'll be organizing a first meeting soon. Brad Christian @vhipster -- You received this message because you are subscribed

[Puppet Users] search facts by regex

2015-02-27 Thread Alex Bogatu
Hello! I spent the last couple of days trying to find a good way to search facts specific to some node based on ragex. For example, in my puppet manifest i need a way to check if there are facts whose names (not values) match a specific regex. Is there anyone who had this problem before? I

Re: [Puppet Users] Re: Update package (latest) only if installed in Debian

2015-02-27 Thread Ximena Cardinali
Thanks a lot everyone for the answers! I will try to go for the /usr/bin/apt-get install --only-upgrade package-name but maybe outside of puppet. Cheers, Ximena. --- *Ximena E. Cardinali *| Linux Systems Administrator Mobile: +49-1514-72-96-542 | Skype: ximena_cardinali E-mail:

[Puppet Users] Re: delete line in file with substring xyz

2015-02-27 Thread Andreas Dvorak
Hi, it is a shame, that file_line is not able to delete line on the basis of a substing. Currently I use this to delete a line exec { /usr/bin/perl -ni -e '/${line}/ or print' '${file}': onlyif = ${grep} -qF '${line}' '${file}' } Best regards Andreas Am Donnerstag, 26. Februar 2015