[Puppet Users] Re: File handling

2013-11-28 Thread Rahul Khengare
Hi Raj, In puppet you can not declare the same resource twice in a manifests. Workaround, You have to use exec resource which execute the command required for deletion of file Here you have to order all resource like file deletion( exec resource) has to be occurs at the last.. Thanks, Ra

[Puppet Users] Re: Applying a manifest on a remote node

2013-11-25 Thread Rahul Khengare
the way to apply the above manifest on the agent? > you can use/ include module in puppet manifests and run the puppet agent Refer, http://docs.puppetlabs.com/puppet/2.7/reference/modules_fundamentals.html Thanks, Rahul Khengare -- You received this message because you are subscribed

[Puppet Users] Re: puppet agent reporting

2013-11-25 Thread Rahul Khengare
Hi Stuart, Take a look on reporting facility present in puppet, http://docs.puppetlabs.com/guides/reporting.html It might help you. Thanks, Rahul Khengare On Tuesday, November 26, 2013 2:41:01 AM UTC+5:30, Stuart Cracraft wrote: > > > Hi, > > I want to report my agent&

[Puppet Users] Re: nodes.pp on puppetmaster vs. puppet agent on puppet client

2013-11-25 Thread Rahul Khengare
Hi Stuart, You don't have to do /etc/init.d/puppet restart on client machine, whenever "puppet agent" run/ fetches the catalog from PM using latest manifests. Thanks, Rahul Khengare NTT DATA OSS Center, Pune, India. On Tuesday, November 26, 2013 4:17:16 AM UTC+5:30,

[Puppet Users] Re: register question

2013-10-30 Thread Rahul Khengare
agent --server puppetmaster --waitforcert 60 --test --noop Refer http://docs.puppetlabs.com/learning/agent_master_basic.html for working of puppet master-agent working. Thanks and Regards, Rahul Khengare, NTT DATA OSS Center, Pune, India. On Thursday, October 31, 2013 2:14:59 AM UTC+5:30

[Puppet Users] Re: Puppet agent not running automatically

2013-10-28 Thread Rahul Khengare
ond). Refer http://docs.puppetlabs.com/references/latest/configuration.html#runinterval Try enabling the runlevel of puppet service ON # chkconfig puppet on Hope this will help. Thanks and Regards, Rahul Khengare, NTT DATA OSS Center, Pune, India. On Friday, October 25, 2013 9:32:57 PM UTC+5

[Puppet Users] Re: Puppet agent not running automatically

2013-10-28 Thread Rahul Khengare
ond). Refer http://docs.puppetlabs.com/references/latest/configuration.html#runinterval Try enabling the runlevel of puppet service # chkconfig puppet --list Hope this will help. Thanks and Regards, Rahul Khengare, NTT DATA OSS Center, Pune, India. -- You received this message because you

[Puppet Users] Re: Best practice to manage multi-OS for the same module?

2013-10-25 Thread Rahul Khengare
or write the conditional puppet manifests, 1. http://docs.puppetlabs.com/learning/variables.html 2. http://docs.puppetlabs.com/puppet/2.7/reference/lang_conditional.html Hope this will help to achieve your goal. Thanks and Regards, Rahul Khengare, NTT DATA OSS Center, Pune, India. On Thursday

[Puppet Users] Re: Few questions about Puppet

2013-10-23 Thread Rahul Khengare
ve this issue? > puppet does not allow you to perform operation on same file twice in manifests. You have to do the all operations on single file in one file resource(*Exactly once*) > 3. I want to run a script file, which in turn invoke some java class > files. How to to do it

[Puppet Users] Re: Duplicate declaration for files.

2013-10-14 Thread Rahul Khengare
3.example.com/hosts - puppet:///modules/baseos/newnode.example.com/hosts depending upon the node(host) name. Hope this will solve your problem. Thanks and Regards, Rahul Khengare NTT DATA OSS Center, Pune, India. -- You received this message because you are subscribed to the Google

[Puppet Users] Re: Warning: appears to have a negative number of dependencies

2013-10-13 Thread Rahul Khengare
Hi Yan, Can you provide details about your manifests. May be manifests helps us to find the solution to problem. Thanks and Regards, Rahul Khengare NTT DATA OSS Center, Pune, India. On Saturday, October 12, 2013 6:22:00 AM UTC+5:30, Yan Xiaofei wrote: > > Hello > > Af

[Puppet Users] Re: Puppet controling Network Interfaces OS:CentOS 5.x

2013-10-08 Thread Rahul Khengare
Hi James, You can take a look on network modules present on puppet forge, 1. https://forge.puppetlabs.com/adrien/network 2. https://forge.puppetlabs.com/razorsedge/network hope this will help. Thanks and Regards, Rahul Khengare, NTTDATA OSS Center, Pune, India. -- You received this message

[Puppet Users] Re: Newbie basic parameterized class usage question

2013-10-02 Thread Rahul Khengare
t; } > > } > > If you want to use filesys_group_acl resource multiple times then change class to defined type. http://docs.puppetlabs.com/learning/definedtypes.html I hope this will help. Thanks and Regards, Rahul Khengare NTT DATA OSS Center, Pune, India. -- You received this

[Puppet Users] Re: best practice for managing multiple stanzas within a config file?

2013-09-30 Thread Rahul Khengare
Regards, Rahul Khengare NTT DATA OSS Center, Pune, India. On Tuesday, October 1, 2013 4:05:20 AM UTC+5:30, Thomas wrote: > > What is the best way to manage multiple stanza within a config file? > > For a splunk configuration file (inputs.conf) I need to manage some thing > like > &g

Re: [Puppet Users] puppet client connection refused when I use puppet kick form puppet master

2013-09-26 Thread Rahul Khengare
Have you try adding server parameter as i said in earlier post. On Thu, Sep 26, 2013 at 2:44 PM, Dilip Varma wrote: > Hi > > *puppetmaster#vim /etc/puppet/puppet.conf* > > [main] > logdir=/var/log/puppet > vardir=/var/lib/puppet > ssldir=/var/lib/puppet/ssl > rundir=/var/run/puppet > fact

[Puppet Users] Re: puppet client server connection refused when I use puppet kick

2013-09-26 Thread Rahul Khengare
Check the parameter server = puppetmaster.example.org under the [main] section in puppet.conf file. Otherwise puppet client trying to connect default host puppet when puppet agent being kick. Thanks and Regards, Rahul Khengare, NTT DATA OSS Center, Pune, India. On Sunday, January 15, 2012 7

[Puppet Users] Re: puppet client connection refused when I use puppet kick form puppet master

2013-09-26 Thread Rahul Khengare
HI Dilip, Can you provide the puppet,conf file. Check the parameter server = puppetmaster.example.org under the [main] section in puppet.conf file. Otherwise puppet client trying to connect default host puppet when puppet agent being kick. Thanks and Regards, Rahul Khengare On Thursday

Re: [Puppet Users] Noob question about the ${name} variable

2013-09-26 Thread Rahul Khengare
) , > notify => Service['httpd'] , > require => Package['httpd'] , > } > > The *'/'* is missing in between ${module_name} and ${name} Thanks and Regards, Rahul Khengare -- You received this message because you are subscribed to the Goo

[Puppet Users] Re: how can I test and fix all cert and puppetdb requirements

2013-09-25 Thread Rahul Khengare
Hi Anup, For connection refused problem, try turning off your firewall/iptables using command, # service iptables stop Also try disbling the selinux settings in /etc/selinux/config file SELINUX = disabled OR Run command, # setenforce 0 Thanks and Regards, Rahul Khengare, NTT

[Puppet Users] Re: Noob question about the ${name} variable

2013-09-25 Thread Rahul Khengare
rb", rather than the expected and desired value > "apache/etc/httpd/conf.d/ssl.conf.erb". > > Here you have syntax problem try, content => template ( "${module_name}/${name}.erb" ) , Thanks and Regards, Rahul Khengare, NTT DATA OSS Center, Pune, India. --

[Puppet Users] Re: Painful packages

2013-09-25 Thread Rahul Khengare
name and make ensure => present. Thanks and Regards, Rahul Khengare, NTT DATA OSS Center, Pune, India. On Wednesday, September 25, 2013 9:00:54 AM UTC+5:30, LenR wrote: > > I need to upgrade a package, but it's later versions are packaged > differently, can I do something li

[Puppet Users] Re: question about override parameter in node define

2013-09-24 Thread Rahul Khengare
, } } node 'bm' inherits 'default' { } *params.pp* class hadoop::params { $master = $::hostname ? { default => 'HM', } } Hope this would help. Thanks and Regards, Rahul Khengare, NTT DATA OSS Center, Pune, India. On Tuesday, Septem

[Puppet Users] Re: Puppet exec error on windows 2008 server

2013-09-24 Thread Rahul Khengare
Hi Harsh, Refer *exec* and *shell builtins* sections present in the http://docs.puppetlabs.com/windows/troubleshooting.html, This might help troubleshooting your problem. Thanks and Regards, Rahul Khengare, NTT DATA OSS Center, Pune, India. On Tuesday, September 24, 2013 2:20:38 PM UTC+5

[Puppet Users] Re: config print seems to be broken

2013-09-23 Thread Rahul Khengare
://docs.puppetlabs.com/guides/environment.html Thanks and Regards, Rahul Khengare, NTT DATA OSS Center, Pune, India. On Saturday, September 21, 2013 2:44:41 AM UTC+5:30, Brandon Metcalf wrote: > > Am I missing something or is this behavior broken: > > $ puppet -V > 3.2.3 > $ grep envir

[Puppet Users] Re: puppet-chocolatey error

2013-09-17 Thread Rahul Khengare
Hi Nate, I think puppet does not provide the support for "chocolatey". See http://docs.puppetlabs.com/references/latest/type.html#package-attribute-provider for list of available provider which is supported by puppet. Thanks and Regards, Rahul Khengare, NTT DATA OSS Center, P

Re: [Puppet Users] Need help with defining same package resource in two modules

2013-09-17 Thread Rahul Khengare
Refer http://docs.puppetlabs.com/puppet/2.7/reference/lang_virtual.html this for creating and realizing the virtual resource. Thanks and Regards, Rahul Khengare NTT DATA OSS Center, Pune, India. On Tue, Sep 17, 2013 at 12:29 PM, Martin Alfke wrote: > > On Sep 17, 2013, at 8:18 AM,

[Puppet Users] Re: Need help with defining same package resource in two modules

2013-09-16 Thread Rahul Khengare
r disabled) > If module A get enable then re-declaration of package[pkg1] resource is happening. Here you can disable the module B. Thanks and Regards, Rahul Khengare, NTT DATA OSS Center, Pune, India. -- You received this message because you are subscribed to the Google Groups &qu

[Puppet Users] Re: Executing command via puppet !

2013-09-16 Thread Rahul Khengare
rts .yml files you can extract the messages you need. Refer http://docs.puppetlabs.com/guides/reporting.html for details about report mechanism in puppet. Thanks and Regards, Rahul Khengare NTT DATA OSS Center, Pune, India. On Monday, September 16, 2013 5:48:24 PM UTC+5:30, Adeel Bhatti wr

[Puppet Users] Re: Puppet agent and puppet master

2013-09-16 Thread Rahul Khengare
/state directory. Thanks and Regards, Rahul Khengare, NTT DATA OSS Center, Pune, India. On Monday, September 16, 2013 4:27:54 PM UTC+5:30, Adeel Bhatti wrote: > > Hi, > Is it nesseccary to access the client machine and execute the agent > command manually to take in configuration

[Puppet Users] Re: Failed to apply catalog: Netowork is unreachable - connect(2)

2013-09-15 Thread Rahul Khengare
save # service iptables restart Thanks and Regards, Rahul Khengare, NTT DATA OSS Center, Pune, India. On Saturday, September 14, 2013 3:16:55 AM UTC+5:30, Anup Singh wrote: > > I tried my best to follow the instruction given at the following page > however the result is ZERO for the

[Puppet Users] Re: Puppet Resources Ordering

2013-09-15 Thread Rahul Khengare
.com/puppet/2.7/reference/lang_run_stages.html for stage resource for classes. Thanks and Regards, Rahul Khengare, NTT DATA OSS Center, Pune, India. On Sunday, September 15, 2013 10:44:17 AM UTC+5:30, chengkai liang wrote: > Hi All, > >I have the following classes define:

Re: [Puppet Users] Re: hostname appears in classes.txt

2013-09-14 Thread Rahul Khengare
Hello Mark, can you post what is the problem you faced and how you solved, this will be helpful for community... :) Thanks and regards, Rahul Khengare NTT DATA OSS Center, pune, India. On 9/14/13, mark bradley wrote: > Hello Rahul, > > I've found the problem -- error on my part

[Puppet Users] Re: hostname appears in classes.txt

2013-09-13 Thread Rahul Khengare
then you can run puppet agent as, # puppet agent --test --loadclasses Can you explain your problem in details like which file is not pick by puppet. Also give your manifests code. Thanks and Regards, Rahul Khengare, NTT DATA OSS Center, Pune, India. On Friday, September 13, 2013 6:02:26 AM

[Puppet Users] Re: classes.txt missing

2013-09-13 Thread Rahul Khengare
, Rahul Khengare, NTT DATA OSS Center, Pune, India. On Wednesday, March 9, 2011 4:49:55 AM UTC+5:30, Nitesh wrote: > > Hi > It seems like classes.txt file is not being created when I run puppet > on my servers. > I am running puppet without a puppet master. I use subversion

[Puppet Users] Re: Puppet and RH "chkconfig"

2013-09-11 Thread Rahul Khengare
*osfamily *returns *redhat *or not. Use provider => redhat along with enable property. Thanks and Regards, Rahul Khengare, NTT DATA OSS Center, Pune, India. On Thursday, September 12, 2013 3:54:51 AM UTC+5:30, Forrie wrote: > > I've been trying to follow several threads around Googl

[Puppet Users] Re: Is it possible to install actual OS using puppet?

2013-09-11 Thread Rahul Khengare
called*kickstart, cobler *, etc. Refer following blog link about puppet and operating system installation relation, http://puppetlabs.com/blog/your-os-installer-and-you* * * * Thanks and* *regards, Rahul Khengare, NTT DATA OSS Center, Pune, India. On Thursday, September 12, 2013 1:08:02 AM UTC+5

[Puppet Users] Re: Error: Could not prepare for execution: Could not create PID file: /var/run/pe-puppet/agent.pid

2013-09-09 Thread Rahul Khengare
Hi Manchana, can you check the *rundir *option in */etc/puppetlabs/puppet/puppet.conf * file as, . *rundir = /var/run/pe-puppet * Thanks and Regards, Rahul Khengare, NTT DATA OSS Center, Pune, India. On Monday, September 9, 2013 6:53:53 PM UTC+5:30, sandeep kumar wrote: > >

[Puppet Users] Re: Incorrect return code for failed exec

2013-09-01 Thread Rahul Khengare
Hi Igor, You can run "sc start MyService" command manually on your machine and check whether the service run correctly. Also check the environment parameters are set for that service. Can you explain your query in more detail manner. Thanks and Regards, Rahul Khengare, NTT DATA

[Puppet Users] Re: Puppet under HA Environment

2013-09-01 Thread Rahul Khengare
seconds(default is 180), Thanks and Regards, Rahul Khengare, NTT DATA OSS Center, Pune, India. On Friday, August 30, 2013 2:20:36 AM UTC+5:30, rjbu...@gmail.com wrote: > > How do I avoid a situation where all of my Linux servers execute a service > restart at the same time upon recei

Re: [Puppet Users] Re: Despite no change in content, agent log file indicates content changed in each catalog run

2013-08-22 Thread Rahul Khengare
. You can view facter values using 'facter -p'. You may look for tag concept it might help. http://projects.puppetlabs.com/projects/1/wiki/Using_Tags Thanks and Regards, Rahul Khengare, NTT DATA OSS Center, Pune, India. On Thu, Aug 22, 2013 at 9:09 PM, Ed Young wrote: > Thanks for

[Puppet Users] Re: [pe-users] trouble installing open source puppet client

2013-08-22 Thread Rahul Khengare
Hi Stuart, I think you have to downgrade your rubygems version- 2.0.6 and try to install puppet this might work. Refer Following link for supported version of ruby, http://docs.puppetlabs.com/guides/platforms.html#ruby-versions Thanks and Regards, Rahul Khengare, NTT DATA OSS-Center, Pune

[Puppet Users] Re: Despite no change in content, agent log file indicates content changed in each catalog run

2013-08-21 Thread Rahul Khengare
check the contents of httpd.conf file before and running the puppet(use vimdiff command). There may possibility that httpd.conf file is edited by another service, Thanks and Regards, Rahul Khengare, NTT DATA OSS Center, Pune, India. On Tuesday, August 20, 2013 6:33:03 AM UTC+5:30, Ed Young

[Puppet Users] Re: Installation problem (PE 3.0.0 on RHEL 6.4 x64)

2013-08-21 Thread Rahul Khengare
Hi Jan, This is the problem of postgresql database server. Check postgreSQL server on your machine working or not. First start the postgresql server and then try to run puppet enterprise installation. Thanks and Regards, Rahul Khengare NTT DATA OSS Center Pune, India.** On Tuesday

[Puppet Users] Re: Copying multiple files to multiple locations

2013-08-12 Thread Rahul Khengare
e 'xyz' content in all the files present in $file_name array variables. Thanks & Regards, Rahul Khengare, NTT DATA OSS Center Pune, India.** On Friday, August 9, 2013 7:36:42 PM UTC+5:30, Matthijs Suringa wrote: > > Hi, > > I'm, still relatively new to Puppet,

[Puppet Users] Re: facter string value comparison to integer

2013-08-06 Thread Rahul Khengare
hi hyde, You don't need to convert facter string into integer before comparing to integer value, puppet internally take care of it. I just checked it on open source puppet version - 2.7.12 and puppet enterprise version - 2.7. On Monday, August 5, 2013 8:38:09 PM UTC+5:30, hyde wrote: > It

[Puppet Users] Re: Wildcards in file resourses -- yet another time

2013-08-02 Thread Rahul Khengare
Hi Ivan, You can try putting the all file names in array variable and use that array variable in file resource. File resource of puppet support array structure. This might work. On Friday, August 2, 2013 2:09:32 PM UTC+5:30, Ivan Lysov wrote: > > Hi All! > > I want to grant spetial permission

[Puppet Users] Re: Verify variable value and set to default param if out of range?

2013-07-30 Thread Rahul Khengare
"maria": } I hope this will solve your problem. If i interpreted your query correctly. Thanks and Regards, Rahul Khengare. NTT DATA GTS (OSS centre) pune On Tuesday, July 30, 2013 12:08:17 AM UTC+5:30, Stephen Brown II wrote: > > Greetings all, > > I have a feeling I&

Re: [Puppet Users] Unable to start heartbeat service

2013-07-19 Thread Rahul Khengare
th network configuration file because of mismatch of line-feed character. Note : Avoid writing of template files for linux configuration on windows machine and then copying on linux machine. On 5/8/13, Rahul Khengare wrote: > Hi, >I have two machine named puppetserver and db01 with C

[Puppet Users] Unable to start heartbeat service

2013-05-08 Thread Rahul Khengare
ransferring '* /etc/sysconfig/network*' file using puppet manifests. Any pointers or help!!! Thanks and Regards, Rahul Khengare -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and

[Puppet Users] Re: Duplicate Declaration of resource (editing contents of same file in two diiferent module)

2013-04-16 Thread Rahul Khengare
ct working. Thanks in advance. Rahul On Friday, April 12, 2013 6:45:37 PM UTC+5:30, jcbollinger wrote: > > > > On Thursday, April 11, 2013 1:11:16 PM UTC-5, Rahul Khengare wrote: >> >> Hi all, >> I am writing two modules abc and xyz. In both the modul

[Puppet Users] Duplicate Declaration of resource (editing contents of same file in two diiferent module)

2013-04-11 Thread Rahul Khengare
Hi all, I am writing two modules abc and xyz. In both the modules i have to change common "test.txt" file,here i use template (.erb) file to changing the contents. In both abc and xyz the contents of "test.txt" file is different, if i declare file resource for "test.txt" file in two differe