[Puppet Users] Help with augeas

2013-02-26 Thread Adam Crews
Hello, I'm trying to manage a properties file used by a java program with augeas. I'm using PE 2.7.1 on a CentOS 5 machine. Sample content is: # Sample file /home/acrews/test.properties session.securityLevel.createSession=10 session.securityLevel.listFiles=10 low.session.timeout=15 # eof I want

Re: [Puppet Users] Re: Puppet agent intermittently stops without doing any thing

2013-02-26 Thread sanjiv singh
Adding more on it.. As i mentioned , we are using Apache-passenger for puppet master. Restarting Apache have solved problem after failure. On Wednesday, 27 February 2013 07:22:24 UTC+5:30, 刘长元 wrote: > > first of all, your puppet version is so old..at least, you should upgrade > to 2.7. >

[Puppet Users] Can we rename yaml file generated by puppet master as report?

2013-02-26 Thread Sonal Singhal
We know Puppet master generated report after sync with agent and name of file is like "node_name.yml". I want to change its name from node_name.yml to node_name_timestamp.yml. Is it possible in puppet? hoe can i do this? Thanks in advance. -- You received this message because you are subscribed

[Puppet Users] Regarding fact file name

2013-02-26 Thread Heena
Hi guys, Can we change facts yaml file name generated by puppet master? If yse then how? -- 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

Re: [Puppet Users] Re: Puppet agent intermittently stops without doing any thing

2013-02-26 Thread 刘长元
first of all, your puppet version is so old..at least, you should upgrade to 2.7. and then, you can check last catalog your client got which stored in /var/lib/client_yaml/ folder, if it contains some resources or not. On Wednesday, February 27, 2013 9:17:53 AM UTC+8, sanjiv singh wrote: > > Tha

Re: [Puppet Users] Re: Puppet agent intermittently stops without doing any thing

2013-02-26 Thread sanjiv singh
On Wednesday, 27 February 2013 06:42:39 UTC+5:30, Adrien Thebo wrote: > > Hi Sanjiv, > > How are you running Puppet, ie via a cron or as a persistent daemon? You > listed the Puppet version as 5.5, but that's not an actual version of > Puppet available; could you post the output of `puppet --ve

Re: [Puppet Users] Re: Puppet agent intermittently stops without doing any thing

2013-02-26 Thread sanjiv singh
Thanks for quick response.Sorry for mentioning wrong version $ puppet --version 0.25.5 On Wednesday, 27 February 2013 06:42:39 UTC+5:30, Adrien Thebo wrote: > > Hi Sanjiv, > > How are you running Puppet, ie via a cron or as a persistent daemon? You > listed the Puppet version as 5.5, but t

Re: [Puppet Users] Using a variable in another variable name

2013-02-26 Thread Adrien Thebo
Using the scope.lookupvar or getvar functions would be greatly preferable; using `eval` in this context is Really Bad (TM) and could produce some extremely bad behavior depending on the value of my_lan1. On Tue, Feb 26, 2013 at 1:11 PM, Ti Leggett wrote: > Nevermind. Figured this out: > > <% if

Re: [Puppet Users] Re: Puppet agent intermittently stops without doing any thing

2013-02-26 Thread Adrien Thebo
Hi Sanjiv, How are you running Puppet, ie via a cron or as a persistent daemon? You listed the Puppet version as 5.5, but that's not an actual version of Puppet available; could you post the output of `puppet --version` ? Lastly, how is the service stopping? Is it hanging, or is it crashing? On

[Puppet Users] Re: Puppet agent intermittently stops without doing any thing

2013-02-26 Thread sanjiv singh
Please help on this... On Thursday, 7 February 2013 12:29:15 UTC+5:30, sanjiv singh wrote: > > Hi All, > > We are observing frequently issue that Puppet agent intermittently stops > without doing any thing when lot of puppet agent hitting puppet master . > In our environment , we have configur

Re: [Puppet Users] puppetlabs-lvm and --guess-fstype

2013-02-26 Thread John Warburton
On 26 February 2013 03:30, Chuck wrote: > Yep.. Red Hat was nice enough to take "--guest-fstype" out of RHEL 6.4. > > On Friday, February 22, 2013 4:25:04 AM UTC-6, steve foster wrote: >> >> Logged a bug: >> >> http://projects.puppetlabs.**com/issues/19410

Re: [Puppet Users] Puppet dynamically handle ssl registration re-registration

2013-02-26 Thread Erik Dalén
For desktops and laptops that don't have a proper static hostname we have used the mac address (minus colons) as the certname. That is pretty much guaranteed to be unique and never change, might work in your situation as well. On 26 February 2013 19:04, yngmike wrote: > Hello everybody. > > I'm

Re: [Puppet Users] Puppet dynamically handle ssl registration re-registration

2013-02-26 Thread Denmat
You could try the ruby gem uuid. That would give you a reasonably unique cert name. You would then run a scan/probe to verify current certs against current nodes and remove unused certs from the master. The nodes are just rebuilt with a new uuid and register. Wouldn't worry about SSL dir cleani

Re: [Puppet Users] Using a variable in another variable name

2013-02-26 Thread Ti Leggett
Nevermind. Figured this out: <% if defined?( eval "macaddress_" + my_lan1 -%> ... <% end -%> On Feb 26, 2013, at 10:16 AM, Ti Leggett wrote: > Is there a good way to check that the fact in question actually exists prior > to doing an eval? Doing the below when there is no 'my_lan1' fact produc

Re: [Puppet Users] puppet-dashboard-1.2.22 - unable to get it running under Apache/Passenger

2013-02-26 Thread Ti Leggett
The issue is that on RHEL/CentOS 6, the mod_passenger RPM requires the rubygems-rack RPM which is at 1.2.5. The Puppet Dashboard RPM requires explicitly rack version 1.1.0 - from vendor/rails/actionpack/lib/action_controller.rb: gem 'rack', '~> 1.1.0' require 'rack' require 'action_controller/c

Re: [Puppet Users] Re: Puppet Nagios group problem

2013-02-26 Thread stevenc
Check your store config database for duplicate entries in the resources table. On Saturday, September 8, 2012 5:09:03 AM UTC-6, thbe wrote: > > Hi Steven, > > 2012/9/8 Steven C > > >> Having a similar problem. So far I've tried clearing the nagios.cfg and >> dropping the puppet database from pup

Re: [Puppet Users] Re: Intermittent Erorr 400 on Server messages

2013-02-26 Thread Jagga Soorma
The modules are fine because this is just a intermittent problem. Most of the times the puppet runs are fine even when things are being changed on the nodes. If it was a problem with the modules then I would expect it to consistently fail. Let me know if that assumption is not correct. I am in

[Puppet Users] Long puppet catalog run times on certain nodes after "using pson" is called

2013-02-26 Thread r.yeo
Running the agent in debug mode on a some clients and I am seeing long run times such as this, but only after the "using pson" lines : Tue Feb 26 10:57:38 2013: Debug: file_metadata supports formats: b64_zlib_yaml pson raw yaml; using pson Tue Feb 26 10:58:53 2013: Info: /Stage[main]/Vpn::Confi

Re: [Puppet Users] puppet-dashboard-1.2.22 - unable to get it running under Apache/Passenger

2013-02-26 Thread Ramin K
~> 1.1.0 matches 1.1.x Dashboard 1.2.22 is responding to these CVEs from http://rack.github.com/ and 1.1.6 is the one that has the fix. Ramin On 2/26/2013 9:55 AM, Tom Blich wrote: Well, based on the error, wouldn't I need to install rack 1.1.0? I don't understand ruby all that well yet.

[Puppet Users] Puppet execution hangs for long periods of time

2013-02-26 Thread Olivier Trempe
Hi, I wrote a little "hello world" script and I am a little concerned by execution that hangs for long periods of time. *computer:* Windows XP Professional Service Pack 3 Intel(R) Xeon(R) CPU W3550 @ 3.07GHz 3.07GHz, 3.50 GB of RAM *init.pp:* class hello { notice('Hello world!') } *command

[Puppet Users] Re: Intermittent Erorr 400 on Server messages

2013-02-26 Thread Alex Vaqué Brull
I think that you have the puppet modules, manifest or templates with some mistake. Try to create a easy hello world with Puppet. El dilluns 25 de febrer de 2013 22:03:18 UTC+1, Jagga Soorma va escriure: > > Hi Guys, > > I am running puppet server version 3.0.2-1 on a RHEL 5.8 virtual machine >

[Puppet Users] Re: Rubygems 2.0.0 removed argument

2013-02-26 Thread matthias
Looks like there is a bug report for it. http://projects.puppetlabs.com/issues/19140 On Monday, February 25, 2013 9:31:24 AM UTC-8, matthias wrote: > > I recently upgraded one of our puppet agent servers to use rubygems 2.0.0. > When I run 'puppet agent --test' after the upgrade it complains th

[Puppet Users] Puppet dynamically handle ssl registration re-registration

2013-02-26 Thread yngmike
Hello everybody. I'm new to the group and I'm trying to do something a little different here. Puppet Master: CentOS 6.3 running puppet-server-2.7.14-2.1 Clients: CentOS 6.3 (puppet-2.6.17-2.el6.noarch) & SLES 11.2(puppet 2.7.14-2.1) I am trying to configure puppet in a very dynamic way. Node

[Puppet Users] Puppet 3.1.0 Execution hanging

2013-02-26 Thread Olivier Trempe
Hello, I wrote a little hello world script and I am a little concerned by execution hanging for a long time at specific steps. *Computer:* Windows XP Professional Service Pack 3 Intel(R) Xeon(R) CPU W3550 @ 3.07GHz 3.07GHz, 3.50 GB of RAM Puppet 3.1.0 Ruby 1.8.7 *init.pp:* class hello { not

Re: [Puppet Users] puppet-dashboard-1.2.22 - unable to get it running under Apache/Passenger

2013-02-26 Thread Tom Blich
Well, based on the error, wouldn't I need to install rack 1.1.0? I don't understand ruby all that well yet. My confusion is why 1.2.21 is working just fine, but 1.2.22 is not. On Tuesday, February 26, 2013 9:47:17 AM UTC-8, Ramin K wrote: > > I'm guessing you're installing gems since eve

Re: [Puppet Users] Intermittent Erorr 400 on Server messages

2013-02-26 Thread Jagga Soorma
Thanks for your response Matthew. I will try to enable apache/mod_passenger with puppet and see if that helps. Would I need to change anything on the clients in order to make this change on the puppet master? Thanks again. On Tue, Feb 26, 2013 at 2:18 AM, Matthew Burgess < matthew.2.burg...@gma

RE: [Puppet Users] dependencies between nodes

2013-02-26 Thread GRANIER Bernard (MORPHO)
Hi, To use exported ressources, I choice to install mysql and I modify puppet.conf, adding : storeconfigs = true dbadapter = mysql dbuser = puppet dbpassword = <> dbserver = localhost dbsocket = /var/run/mysqld/mysqld.sock Then I run : /etc/init.d/puppetmaster restart And

Re: [Puppet Users] puppet-dashboard-1.2.22 - unable to get it running under Apache/Passenger

2013-02-26 Thread Ramin K
I'm guessing you're installing gems since everything looks very up to date. Try the following. sudo gem install rack --version 1.1.6 Then restart Apache. If you still have problems you can try removing all versions of Rack that are not 1.1.6, assuming that Puppet and Puppet dashboard are the

Re: [Puppet Users] puppet-dashboard-1.2.22 - unable to get it running under Apache/Passenger

2013-02-26 Thread Tom Blich
Do you know where I might be able to change where it's looking for the specific rack version for 1.1.0? Thanks, Tom On Friday, February 22, 2013 5:29:59 PM UTC-8, Matt wrote: > > It looks like its trying to use a specific rack gem version but you do > not have that version installed or you hav

Re: [Puppet Users] Using a variable in another variable name

2013-02-26 Thread Ti Leggett
Is there a good way to check that the fact in question actually exists prior to doing an eval? Doing the below when there is no 'my_lan1' fact produces an error. On Feb 21, 2013, at 10:51 AM, windowsrefund wrote: > > <%= eval "macaddress_" + my_lan1 %> > > That will return the appropriate fa

Re: [Puppet Users] Re: .erb templates are not properly parsed.

2013-02-26 Thread Marc Bolós
So, your suggestion at the end, is better avoid doing that at all. Now I was very happy to have it working. The only issue I found was on the order declaring classes. I think maybe they should try to fix this, because you can make more powerful and automated declarations this way. Thanks a lot al

Re: [Puppet Users] Re: .erb templates are not properly parsed.

2013-02-26 Thread Felix Frank
On 02/26/2013 03:04 PM, jcbollinger wrote: > Oh, I agree. I don't know whether you followed the whole thread, but my > recommendation was always to solve the issue in a way that was > independent of parse order. I suggested two general approaches to the > problem and one specific implementation.

Re: [Puppet Users] Re: .erb templates are not properly parsed.

2013-02-26 Thread jcbollinger
On Monday, February 25, 2013 6:51:10 AM UTC-6, Felix.Frank wrote: > > On 02/22/2013 07:19 PM, jcbollinger wrote: > > So finally my conclusion is that when you declase a node, includes > > order matters. > > > > > > Yes, it does. > > ...but I'd argue that this should not be your fina

[Puppet Users] Re: distributing updates to multiple puppet masters (Subversion)

2013-02-26 Thread davidemccormick
We use puppet and a module called vcsdeploy to deploy our modules to the puppet masters using a puppet run on the puppetmaster. We insist that all modules are tagged and so our nodes file fotr the puppetmaster node looks like this: - node 'puppetmaster' { # ONLY DEPLOY tagged versions to TE

RE: [Puppet Users] dependencies between nodes

2013-02-26 Thread GRANIER Bernard (MORPHO)
Hi, Anothoer point about dependencies between nodes, is it possible to say that an exported resources requires another one ? If I used the example given by kyle : node a { # Do this when the DB is installed @@file { "/tmp/dbdone.txt": content => "Woo, DB installed!\n", tag => "dbdone"

Re: [Puppet Users] Glassfish automatic installation in Puppet

2013-02-26 Thread Nikola Petrov
Well check the same command (yes) and it's man page yes A | shell-script should give you what you want -- Nikola On Tue, Feb 26, 2013 at 03:37:50PM +0530, Jithin Xavier wrote: > This command "/usr/bin/yes | /usr/bin/java -Xmx256m -jar > /gx/mnt/software/Vidispine/Components/glassfish-installer

RE: [Puppet Users] dependencies between nodes

2013-02-26 Thread GRANIER Bernard (MORPHO)
Hi, Thanks for the answer, I understand that with exported resources, I can create interactions between nodes. But If I understood your suggestion, on node b I will get the file defined on node a : great. But does this implicitly mean that all resources on node b will wait that the file is cr

Re: [Puppet Users] Re: package download using manifest

2013-02-26 Thread Jithin Xavier
Yes, you should do. If you are using Puppet enterprise version,you should add wget claas to your agent(and splunk). Thanks, Jithin On Tue, Feb 26, 2013 at 3:49 PM, Mamta Garg wrote: > I have installed wget module from puppet on my puppet master > (linux-centOS) using command - puppet module i

Re: [Puppet Users] Re: package download using manifest

2013-02-26 Thread Mamta Garg
I have installed wget module from puppet on my puppet master (linux-centOS) using command - puppet module insttall maestrodev/wget. Do i need to install wget on my window agent also as i need to do installation on window agent? Please reply! On Tue, Feb 26, 2013 at 5:13 AM, Jithin Xavier wrote:

Re: [Puppet Users] Intermittent Erorr 400 on Server messages

2013-02-26 Thread Matthew Burgess
On Mon, Feb 25, 2013 at 9:03 PM, Jagga Soorma wrote: > Hi Guys, > > I am running puppet server version 3.0.2-1 on a RHEL 5.8 virtual machine > with about 110 clients. I am seeing intermittent errors with my clients > that are failing with the following error messages: Intermittent errors with a

Re: [Puppet Users] Re: package download using manifest

2013-02-26 Thread Jithin Xavier
Mamtha, Destination should be your agent server path. Did you install wget from Puppet,then only this will work for you. And no need add any entry on your init.pp file. On Tue, Feb 26, 2013 at 3:36 PM, Mamta Garg wrote: > Hi JIthin, > > Thanks for your reply! > I need to install package on m

Re: [Puppet Users] Glassfish automatic installation in Puppet

2013-02-26 Thread Jithin Xavier
This command "/usr/bin/yes | /usr/bin/java -Xmx256m -jar /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar --debug --trace" not giving me any useful information. Glassfish installation is asking for, *Accept or Decline? [A,D,a,d]*.. So we wanted to answer this questio

Re: [Puppet Users] applying condition for a module

2013-02-26 Thread Felix Frank
Hi, then make sure to specify a creates parameter such as exec { "wget http://... -O/var/cache/jdk.bin": creates => "/var/cache/jdk.bin"; } HTH, Felix On 02/25/2013 05:51 AM, yarlagadda ramya wrote: > Hi.., > > Am not using file...m using exec and in that wget command.. -- You received thi

Re: [Puppet Users] Re: package download using manifest

2013-02-26 Thread Mamta Garg
Hi JIthin, Thanks for your reply! I need to install package on my one of the window agent So could you please tell me ,in 'distention' option i should give puppet master path or window's location? Also i have created a splunk.pp file inside wget\manifests\splunk.pp and added as below. class wge

Re: [Puppet Users] Glassfish automatic installation in Puppet

2013-02-26 Thread Nikola Petrov
Please run the command outside of puppet or run puppet with --debug --trace to see what failed. Error status code of 1 can be anything on earth ;) -- Nikola On Tue, Feb 26, 2013 at 02:56:18PM +0530, Jithin Xavier wrote: > Thanks Nikola, > > for some reason its not working.. I am getting

Re: [Puppet Users] Glassfish automatic installation in Puppet

2013-02-26 Thread Jithin Xavier
Thanks Nikola, for some reason its not working.. I am getting this error now err: /Stage[main]/Vidispine/Exec[glassfishInstaExe]/returns: change from notrun to 0 failed: /usr/bin/yes | /usr/bin/java -Xmx256m -jar /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar retu

Re: [Puppet Users] Retrieving the name of the module where a define is used

2013-02-26 Thread Nikola Petrov
Hmm I can swear this was discussed here as a recommendation but maybe I am wrong. Will change my defines to use *caller_module_name*. Thanks for clarifying this! -- Nikola On Mon, Feb 25, 2013 at 02:30:39PM -0800, Nick Fagerlund wrote: > calling_module isn't a puppet variable. It's something spe

Re: [Puppet Users] Glassfish automatic installation in Puppet

2013-02-26 Thread Nikola Petrov
Not sure if this will help you at all but you can try the yes[1] command. Try to change your exec to: exec { 'glassfishInstaExe': command => '/usr/bin/yes | /usr/bin/java -Xmx256m -jar /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar', cwd => '/gx/mnt/softw

[Puppet Users] Glassfish automatic installation in Puppet

2013-02-26 Thread Jithin Xavier
Hi All, Can any one help to install my jar file automatically, When I tried to install /usr/bin/java -Xmx256m -jar /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar,its is asking for confirmation like Accept or Decline? [A,D,a,d]. So how can I pass answer with co

[Puppet Users] Re: package download using manifest

2013-02-26 Thread Jithin Xavier
Hi Garg, Yes, you can download package using manifests, Step1: You have to download wget from puppet labs(if you are using enterprise version, can run this command - puppet module insttall maestrodev/wget (https://github.com/maestrodev/puppet-wget/)) Step2: After install yo can see that packag