[Puppet Users] Joining two commands in exec

2014-04-14 Thread John S
Hi All, I have created a puppet manifest for creating hadoop folder for each user and changing the ownership for each user.Am giving the user with title parameter from nodes.pp I was trying to execute two commands using exec parameter, but its executing the first command, second command it

Re: [Puppet Users] Joining two commands in exec

2014-04-14 Thread Matthias Saou
On Sun, 13 Apr 2014 20:24:22 -0700 (PDT) John S bun...@gmail.com wrote: define hadoop::dir { exec { /usr/bin/hadoop fs -mkdir /user/$title /usr/bin/hadoop fs -chown $title:title /user/$title : creates = /usr/bin/hadoop fs -ls /user/$title, } I'm unsure how the creates will behave here,

[Puppet Users] file_line manifest

2014-04-14 Thread puppetstan
Hello I would like to check in my manifest the presence of a line in a configuration file under [main] and above [config] With my manifest configuration, it adds my line at the end of file Can you have an idea? thank you in advance my manifest : file_line { yum protect: line =

Re: [Puppet Users] Hiera, version control encrypted backends

2014-04-14 Thread Alex Harvey
I was thinking about a situation like this - *) Puppet designer decides to place all credentials in a single database (encrypted Hiera). *) developers clone the version controlled copy of it all over the place, e.g. to their laptops, that random box that everyone logs into. *) version

[Puppet Users] Hiera lookups in Ruby code

2014-04-14 Thread Dirk Heinrichs
Hi, is it possible to do Hiera lookups inside Ruby code, for example in a provider for a new resource type? If so, how? Thanks... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*: +49 2226 159

Re: [Puppet Users] Hiera lookups in Ruby code

2014-04-14 Thread Felix Frank
Hi, basically you need to mimic the behavior of Puppet's own hiera() function to talk to hiera's ruby API, see https://github.com/puppetlabs/puppet/blob/master/lib/puppet/parser/functions/hiera.rb#L23 Perhaps even more interesting, the way the hiera CLI tool uses the API,

[Puppet Users] Re: Joining two commands in exec

2014-04-14 Thread jcbollinger
On Sunday, April 13, 2014 10:24:22 PM UTC-5, John S wrote: Hi All, I have created a puppet manifest for creating hadoop folder for each user and changing the ownership for each user.Am giving the user with title parameter from nodes.pp I was trying to execute two commands using

[Puppet Users] Re: file_line manifest

2014-04-14 Thread Paul Tötterman
Hi, Can you have an idea? Your regular expression doesn't match the existing setting. Since you are dealing with an ini-file, try using puppetlabs-inifile https://forge.puppetlabs.com/puppetlabs/inifile instead of file_line. Cheers, Paul -- You received this message because you are

Re: [Puppet Users] Problem configuring inventory search in puppet-dashboard

2014-04-14 Thread Felix Frank
Hi, I realize this is an old thread, but perhaps you're still searching for a solution? On 02/10/2014 03:53 PM, Jesus Roncero wrote: info: access[/facts]: allowing internalname.int access ... info: access[/]: adding authentication any This looks as though /facts is granting access to the

[Puppet Users] not displaying list of vm with puppet node_vmware list command

2014-04-14 Thread Ankita kumari
[root@puppetmasterappd ~]# puppet node_vmware list Notice: Connecting ... After that nothing is coming. I am not clear with where to create the .fog file. I am creating it in root directory of the root user. Then I am running this command and it is giving this. -- You received this message

[Puppet Users] Re: agent not able to communicate to master

2014-04-14 Thread Ankita kumari
I installed the master again and set the specified settings. Then it started working correctly. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [Puppet Users] Slides TDD with puppet - puppetcamp paris yesterday

2014-04-14 Thread Alexander Fortin
On Sunday, April 13, 2014 11:57:19 AM UTC+2, Johan De Wit wrote: I still am so surprised when asking who is doing some kind of 'testing', almost nobody raises is hand . Most people just don't' see the sense of doing rspec unit tests - why writing the same code twice ? Well, I think

Re: [Puppet Users] puppet class require fails depending on declaration order

2014-04-14 Thread jcbollinger
On Friday, April 11, 2014 10:10:37 PM UTC-5, David Portabella wrote: I didn't know about this *evaluation-order dependency.* Why does this evaluation-order dependency exists in puppet? Do you mean this particular one, or evaluation-order dependencies in general? Anyway, I started to

[Puppet Users] managing jboss users from puppet

2014-04-14 Thread Juan Sierra Pons
Hi, I am testing the puppet-jboss_as. For the moment all is working ok. :) But I want to go furtther, my goal is to configure jboss users too, so instead of creating the jboss users manually I want to do this with puppet. I have created a test user using the jboss provided script Enter the

[Puppet Users] Re: selecting a command in a provider based on class variable?

2014-04-14 Thread jcbollinger
On Friday, April 11, 2014 7:15:05 PM UTC-5, Tim Mooney wrote: Hi All! The tl;dr version: Can anyone point me at an example of an existing provider that selects a particular command based not on a facter fact or whether a particular path exists, but instead on a variable from a

Re: [Puppet Users] Setting validproperties fields in provider modules

2014-04-14 Thread Jim Perry
Not so far. You are the first reply. On Apr 14, 2014 11:52 AM, Felix Frank felix.fr...@alumni.tu-berlin.de wrote: Hi, sorry for the late reply. Did you ever get this fixed? Cheers, Felix On 02/20/2014 03:29 AM, HPUX_PUPPET wrote: I am still working to the HPUX provider to handle

Re: [Puppet Users] Patch management in Puppet Open Source

2014-04-14 Thread Felix Frank
Hi, sorry for the late reply. What kind of patch management did you haven in mind? Regards, Felix On 02/21/2014 12:24 AM, WL wrote: Hi all, I am very new to Puppet and was wondering how to setup patch management in puppet open source? Wendy -- You received this message because you

Re: [Puppet Users] Custom Facter Fact fails produces output second time around.

2014-04-14 Thread Felix Frank
Hi, for what it's worth, all the custom fact are loaded twice with your puppet version. From experience, it's nothing to worry about. I'm not entirely certain that the fact code is indeed *run* twice, so the late error messages may be quite in order as well. HTH, Felix On 02/24/2014 07:13 PM,

[Puppet Users] Re: puppet-lint questions

2014-04-14 Thread Alexander Fortin
On Friday, April 11, 2014 12:32:39 AM UTC+2, Rich Burroughs wrote: I saw one of the Puppet Labs webinars about setting up your Puppet development environment, and at one point it mentioned using a git hook to run puppet-lint before committing. We do that where I work with puppet parser

Re: [Puppet Users] Setting validproperties fields in provider modules

2014-04-14 Thread Jim Perry
Not yet. I don't have it working and I was asking how to get our data for troubleshooting it first. On Apr 14, 2014 11:59 AM, Felix Frank felix.fr...@alumni.tu-berlin.de wrote: Okay then. Is your code up on github or pastebin for direct review? On 04/14/2014 05:53 PM, Jim Perry wrote: I

[Puppet Users] Re: Hiera Performance Testing

2014-04-14 Thread Daniele Sluijters
Hi, I think a good start would be to turn on profiling, aka profiling=true in puppet.conf or puppet agent --profile. The output will show up in the master's logs. -- Daniele Sluijters On Friday, 11 April 2014 22:55:45 UTC+2, David Danzilio wrote: Hi Everybody. I'm trying to come up with

[Puppet Users] Re: Hiera Performance Testing

2014-04-14 Thread David Danzilio
Unfortunately, and I probably should've mentioned this in the OP, we're currently stuck on the 2.7 series. On Monday, April 14, 2014 1:11:36 PM UTC-4, Daniele Sluijters wrote: Hi, I think a good start would be to turn on profiling, aka profiling=true in puppet.conf or puppet agent

[Puppet Users] Referencing a value from one level to another.

2014-04-14 Thread Jim Donnellan
Puppeteers, I'm trying to get something done in puppet/hiera, and I'm curious if it's possible. A bit of background: We're using puppet and hiera to build out and maintain Apache Solr, and we're using Solr in a cloud structure. What this ends up meaning configuration-wise is that we have our

Re: [Puppet Users] Re: selecting a command in a provider based on class variable?

2014-04-14 Thread Tim Mooney
In regard to: [Puppet Users] Re: selecting a command in a provider based on...: On Friday, April 11, 2014 7:15:05 PM UTC-5, Tim Mooney wrote: Hi All! The tl;dr version: Can anyone point me at an example of an existing provider that selects a particular command based not on a facter fact

Re: [Puppet Users] Announce: Facter 2.0.1

2014-04-14 Thread Eric Sorenson
On Apr 4, 2014, at 9:35 AM, Chris Handy chrisjha...@gmail.com wrote: I am really looking forward to the complex data structures. I was wondering how this will work with hiera going forward, specifically with the hiera.yaml hierarchy? Lets say that my hierarchy uses role and app facts to

[Puppet Users] Re: not displaying list of vm with puppet node_vmware list command

2014-04-14 Thread Ankita kumari
i tried deleting the .fog file and creating it again. now this error is coming. [root@puppetmasterappd ~]# puppet node_vmware list Notice: Connecting ... Error: undefined method `reject' for #Symbol:0x0001c8a70e Error: Try 'puppet help node_vmware list' for usage -- You received this

[Puppet Users] Re: node_aws issue: undefined method

2014-04-14 Thread Ankita kumari
I am getting similar error. How did u resolve it? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this