Re: [Puppet Users] Command Exceeded Timeout on Basic Shell Commands

2015-06-16 Thread Ashish Jaiswal
hi, Could you test the same with puppet apply on the client itself On 16 June 2015 at 07:42, Franck wrote: > We've been experiencing a lot of "Command exceeded timeouts" on basic > shell commands using the "exec" type for tasks that should execute fairly > fast: > > Jun 15 15:45:44 host1 puppet

[Puppet Users] Re: lambda with Custom facter

2015-01-15 Thread Ashish Jaiswal
Hello, Any hint on this ? Thanks. On Wednesday 14 January 2015 05:22 PM, Ashish Jaiswal wrote: Hi, I have a custom facter which spits out like this # facter -p xfs_mounts => ["/docroot", "/ecr", "/intprd", "/mysql"] Now I want to iterate ove

[Puppet Users] lambda with Custom facter

2015-01-14 Thread Ashish Jaiswal
Hi, I have a custom facter which spits out like this # facter -p xfs_mounts => ["/docroot", "/ecr", "/intprd", "/mysql"] Now I want to iterate over this. so thought lambda is the one. $a=$xfs_mounts each($a) | $value | { device { $value : } } which is not working, giving error as follo

Re: [Puppet Users] Re: Custom apache module advice needed

2014-11-24 Thread Ashish Jaiswal
Hi, Something like this . $baseos_dir = [ "/opt/", "/opt/bin/", "/opt/other", "/opt/other/src", "/opt/other/nosrc", "/opt/other/downloads", "/opt/other/javalib", "/opt/man", "/opt/man/m

Re: [Puppet Users] how to compare facts using variables in a text file

2014-11-19 Thread Ashish Jaiswal
false end end end On Thursday 20 November 2014 09:45 AM, Ashish Jaiswal wrote: Hi, Just a quick hack. javaversion.rb require 'facter' Facter.add(:is_javaversion) do setcode do a = File.readlines('javaversion.txt').map { |x| x.

Re: [Puppet Users] how to compare facts using variables in a text file

2014-11-19 Thread Ashish Jaiswal
Hi, Just a quick hack. javaversion.rb require 'facter' Facter.add(:is_javaversion) do setcode do a = File.readlines('javaversion.txt').map { |x| x.chomp }.join if Facter.value(:java_known_weblogic_version1) == a true e

Re: [Puppet Users] external facter for datacenter from ipaddress - new to puppet

2014-11-12 Thread Ashish Jaiswal
Hi, This is what you are looking for, I guess. @datacenter.rb require 'facter' Facter.add(:datacenter) do setcode do datacenters = { '10.220' => 'HOUSTON', '10.221' => 'AUSTIN' } ip = Facter.value(:ipaddress) network = datacenters.keys.

Re: [Puppet Users] Re: install directory for package, and other basic questions

2014-11-11 Thread Ashish Jaiswal
Hello, > 3. How to install a package from the tarballs and specify some parameters to the install process? There is already a nice defination called netinstall, I have used it and tweak a lill bit for my enviornment. https://github.com/example42/puppi/blob/master/manifests/netinstall.pp On

Re: [Puppet Users] Re: Puppet custom function for arithmetic operation

2014-11-07 Thread Ashish Jaiswal
, Ashish Jaiswal wrote: Hello, Just trying to write a custom function. Basically looking to pass an argument from manifest and value should get calculated. module Puppet::Parser::Functions newfunction(:shmmax, :type => :rvalue) do |args| def shmmax(a

[Puppet Users] Puppet custom function for arithmetic operation

2014-11-07 Thread Ashish Jaiswal
in sysctl.conf file Its just fails, Any pointer what is wrong here ? Regards, Ashish Jaiswal. -- 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

Re: [Puppet Users] Re: Identifying file content change in subsequent client run

2014-10-10 Thread Ashish Jaiswal
Hi, Basically you don't need to cache it, you can store the reports in puppetdb or in filebucket. https://docs.puppetlabs.com/references/3.7.latest/type.html#file-attribute-mtime Or let us know what is your actual goal. You don't want your file to get change, if change (check mtime) then rep

Re: [Puppet Users] Identifying file content change in subsequent client run

2014-10-09 Thread Ashish Jaiswal
Hi, You can check for the mtime in file resource. On Friday 10 October 2014 10:50 AM, ganesh634 wrote: How can i identify if the file content is changed in subsequent client run. Need this information for new resource implementation, which will take action only if file contents are modifie

Re: [Puppet Users] Could not retrieve catalog from remote server

2012-08-28 Thread Ashish Jaiswal
Hi,, Have you tried deleting the existing directory of master and agent.. rm -frv /var/lib/puppet/ssl Try this and see if this work!! Regards, Ashish Jaiswal On Aug 28, 2012 8:58 PM, "Bai Shen" wrote: > I'm trying to get puppet to connect to my puppetmaster, but I keep

Re: [Puppet Users] Error 400 on SERVER: Could not write /var/lib/puppet/ssl/ca/requests/agent1.pem to csrdir: undefined method `exists?' for nil:NilClass

2012-08-28 Thread Ashish Jaiswal
Hi, To me it seems to be permission issue on SSL directory on master .. can you let me what is the permission on SSL directory .. This is just a wild guess.. Regards, Ashish Jaiswal On Aug 28, 2012 12:53 PM, "Edward Tuan" wrote: > I've been confused by this question for n

Re: [Puppet Users] Unable to generate certificate on Puppet Agent through Master

2012-08-28 Thread Ashish Jaiswal
Hi.. Can you check date and time on both master and agent.. it should be in sync with master.. Regards, Ashish Jaiswal On Aug 28, 2012 2:38 PM, "Ajeet Raina" wrote: > Hi, > > I have a puppet master and agent installed. I want to generate and > configure master-agent ce

Re: [Puppet Users] Puppet not creating manifest file?

2012-04-10 Thread Ashish Jaiswal
>>> >> -- >>> >> You received this message because you are subscribed to the Google >>> >> Groups >>> >> "Puppet Users" group. >>> >> To post to this group, send email to puppet-users@google