Re: [Puppet Users] How can we find out the directory presence?

2014-08-20 Thread Sneha More
ess condition with exec resource as specified by Jorge to execute something if the the directory is present or not Thanks and Regards, Sneha More On Wednesday, August 20, 2014 1:19:55 AM UTC+5:30, Flamarion Jorge wrote: > > Ok. I'm sorry. Here other way. > > exec { "create di

[Puppet Users] Re: Need help wrapping my brain around custom environments

2013-10-11 Thread Sneha More
Hi, I think the problem is with your modulepath, as your apache module is under /etc/puppetlabs/puppet/environments/dev/, change the modulepath under [dev] as modulepath = /etc/puppetlabs/puppet/environments/dev I hope this will solve your problem. Thanks and Regards Sneha More. NTT DATA

[Puppet Users] Re: puppet module

2013-10-11 Thread Sneha More
u. Thanks and Regards, Sneha More. On Tuesday, October 8, 2013 11:57:35 PM UTC+5:30, John wrote: > > I need to write a puppet SSHD module that does the following: > > First I have 5 different operating systems to install to: Red Hat, Free > BSD, AIX, Ubuntu, and SuSE. > >

[Puppet Users] Re: Including files in a template

2013-10-01 Thread Sneha More
ile in template, refer http://stackoverflow.com/questions/16551717/how-to-include-a-subtemplate-in-a-puppet-template. I hope its useful to you. Thanks and Regards, Sneha More, NTT DATA GTS, OSS Center, India On Tuesday, October 1, 2013 8:07:26 AM UTC+5:30, Tom Noonan wrote: > > Hello,

[Puppet Users] Re: Running Scripts from puppet master withou interacting the puppet agent on Amazon ec2 instance

2013-09-27 Thread Sneha More
al.html for learning resources, manifests, ordering, modules, classes etc. I hope this will help you. Thanks & Regards, Sneha More, NTT DATA GTS, OSS Center, India, Pune On Friday, September 27, 2013 4:45:02 PM UTC+5:30, Dilip Varma wrote: > > Hi, > > I'm newbie to Puppet even i

[Puppet Users] Re: Generating a variable based on the hostname

2013-09-27 Thread Sneha More
Hi, you can use fact like, env.rb Facter.add("env") do setcode do Facter::Util::Resolution.exec('hostname | cut -d"-" -f4') end end I hope this will work fine. Thanks & Regards, Sneha More, NTT DATA GTS, OSS Center, India (Pune) On Friday, Sept

[Puppet Users] Re: next steps in puppet deployment - host specific rules?

2013-09-27 Thread Sneha More
. i.e. different value of admin list for different node. For 2nd example: Create fact to find your special case machines. and you can use condition if $ == "special case" { here use different port number for iptables rule. } Thanks and Regards, Sneha More, NTT DATA GTS,

[Puppet Users] Re: how to execute the scripts on puppet master via c# code ?

2013-09-27 Thread Sneha More
just need to transfer this C# code on client -> you can achive this by "file" resource to transfer file 2. you need to execute your code on cleint -> you can achieve this by "exec resource". I hope this will help you to start up. Thanks and Regards, Sneha More, NTT D

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

2013-09-26 Thread Sneha More
Hi Dilip, Have you added listen = true in [main] section of puppet.conf? And have you allowd access to runpath in auth.conf? Please refer http://docs.puppetlabs.com/man/kick.html. It may help you to solve this error. Thanks & Regards, Sneha More, NTT DATA GTS, OSS Center, India (Pune).

Re: [Puppet Users] Re: enablerepo option

2013-09-25 Thread Sneha More
Hi, exec { 'fusioninventory-agent': command => 'yum -y install fusioninventory-agent --enablerepo=epel', path => '/usr/bin', } An other idea is modifiy repo and change enabled=0 by enabled=1 and after > install or update modify enabled=0 by enabled=1 ? Your opinion? > Regards and

Re: [Puppet Users] Re: Service refresh gets scheduled and swp files

2013-09-24 Thread Sneha More
the deletion of files on client if you delete file on server. Thanks & Regards, Sneha More, NTT DATA GTS, OSS Center, India (Pune). On Tue, Sep 24, 2013 at 6:22 PM, AAB !! wrote: > Thanks for reply ! > Could you/anyone tell me if a file gets deleted on the puppet master why > does

[Puppet Users] Re: enablerepo option

2013-09-24 Thread Sneha More
Hi , you can try this, class fusioninventory-agent::redhat { # if you know the latest version of fusioninventory-agent, directly specify the version in the Exec command exec { 'fusioninventory-agent': command => 'yum -y install fusioninventory-agent-2.3.2 --enablerepo=epel', path => '/us

Re: [Puppet Users] Puppet agent on Windows

2013-09-24 Thread Sneha More
://docs.puppetlabs.com/windows/running.html Hope this will help you. Thanks & Regard, Sneha More, NTT DATA GTS, OSS Center, India (Pune) On Tuesday, September 24, 2013 1:40:55 PM UTC+5:30, AAB !! wrote: > > Hi, > You can skip the second question. But let come back to the first one, > c

[Puppet Users] Re: Service refresh gets scheduled and swp files

2013-09-24 Thread Sneha More
increase the "runinterval" so that, "puppet agent" executes after complete editing of file. Or just transfer the files in folder, instead of complete folder. Thanks & Regards, Sneha More, NTT DATA GTS, OSS Center, India (pune) On Tuesday, September 24, 2013 1:32:44 PM

Re: [Puppet Users] Re: enablerepo option

2013-09-23 Thread Sneha More
gt; '/usr/bin', } Do not use Package resource again. I hope this will help you. Thanks & Regards Sneha More On Mon, Sep 23, 2013 at 3:46 PM, puppetstan wrote: > Hi > > This configuration is not good if fusioninventory-agent is installed and > puppet want to

[Puppet Users] Re: enablerepo option

2013-09-22 Thread Sneha More
Hi, Is there any problem with your yum command? I could not understand, why yum install is not working? Have you tried executing the same command manually? On Saturday, September 21, 2013 10:48:42 PM UTC+5:30, puppetstan wrote: > > A question, if in my Exec "toto" i use command = yum -y --enabl

[Puppet Users] Re: PUPPET_CONFIGURATION_IN_REDHAT_LINUX

2013-09-20 Thread Sneha More
Hi Dilip, You can get the installation and configuration steps for puppet on RHEL on link http://docs.puppetlabs.com/guides/installation.html#red-hat-enterprise-linux-and-derivatives You can run shell script in client node which is in puppet server by, 1. Transfer the shell script to client

[Puppet Users] Re: enablerepo option

2013-09-20 Thread Sneha More
anks and Regards, Sneha More, NTTD GTS, OSS centre, India (Pune) On Friday, September 13, 2013 8:53:32 PM UTC+5:30, puppetstan wrote: > > Hi > > I would like to use enablerepo option for activate repo and verify package > latest version > > my manifest : > > package

[Puppet Users] Re: Puppet multiple conditional statement...

2013-09-20 Thread Sneha More
content => template("SSHT Template 2"), } } else { file { '/etc/ssh/sshd_config': ensure => present, owner => $owner, group => $group, mode => '0644', backup => false, content => template("SSHDT Templa

[Puppet Users] Re: puppet-chocolatey error

2013-09-17 Thread Sneha More
r=> 'chocolatey', } Thanks & Regards Sneha More, NTT DATA GTS, OSS Center, India (pune) On Tuesday, September 17, 2013 8:11:04 AM UTC+5:30, Nate Walck wrote: > > I started using chocolatey today and when trying to install an app > (Teamspeak3 in this cas

[Puppet Users] Re: Executing command via puppet !

2013-09-16 Thread Sneha More
ml for deatiled description Thanks & Regards, Sneha More, NTT DATA GTS, OSS Center India, (Pune). On Monday, September 16, 2013 11:57:12 AM UTC+5:30, Adeel Bhatti wrote: > > Hi, > Is it possible to get response of a command from puppet ? > For example if I run "nginx

[Puppet Users] Re: Error 400 on SERVER: Could not find class pentaho for server.test.com

2013-09-10 Thread Sneha More
Hi Have you changed any facts and used in your class pentaho? broken handeling of facts may give such error. will you please elaborate on your development environment? Thanks & Regards, Sneha More, NTT DATA GTS, OSS Center, India (Pune), On Monday, September 9, 2013 8:47:04 PM UTC+

[Puppet Users] Re: Learningpuppet

2013-08-19 Thread Sneha More
s.com/puppet/2.7/reference/modules_fundamentals.html Thanks & Regards, Sneha More, NTT DATA OSS Center Pune, India On Friday, August 16, 2013 11:14:02 PM UTC+5:30, ytmp123 wrote: > > Hi Ellison Marks: > > Thanks. But I don't get what I'm exactly expected to do in thi

[Puppet Users] Re: Dependancy Problems

2013-08-18 Thread Sneha More
Hi, I think you can solve this by resolving dependancy in init.pp You may try something like this. init.pp class openstack { include openstack::install class {'nova::controller': require => Class['openstack::install'], } On Saturday, August 17, 2013 2:11:31 AM UTC+5:30, towen27

[Puppet Users] Re: puppetdoc discards documentation having hash value in class.

2013-08-14 Thread Sneha More
} } Here the class has hash value $bond_conf = { userctl => '', onboot => '', }. rdoc generated by puppet doc does not create documentation for it. Regards, Sneha More On Wed, Aug 14, 2013 at 4:49 PM, Sneha More wrote: > Hi, >I am generating rdoc by pu

[Puppet Users] puppetdoc discards documentation having hash value in class.

2013-08-14 Thread Sneha More
Hi, I am generating rdoc by puppet doc, but it is not creating documentation for the class having hash values. Is there any way to solve this problem? Regards, Sneha More. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubs

Re: [Puppet Users] Re: Augeas, fstab and duplicate lines: How to test ? (onlyif ? not_include ?) ... Examples ?

2013-07-30 Thread Sneha More
t; Hi Kristof, Even your solution : onlyif => "match *[spec = \"${fs_dev}\"] size == 0" will work perfectly. Regards, Sneha More. NTT DATA GTS. (OSS Center) Pune. On Tue, Jul 30, 2013 at 9:42 PM, Kristof Willaert < kristof.willa...@gmail.com> wrote: >

Re: [Puppet Users] Re: Augeas, fstab and duplicate lines: How to test ? (onlyif ? not_include ?) ... Examples ?

2013-07-30 Thread Sneha More
varible must be in '' (single inverted comma) Now try this: *onlyif => "match */spec[. = '$fs_dev'] size == 0" * This will definitely work. Sorry for creating confusion in previous reply. Regards, Sneha More, NTT DATA GTS, Pune. (OSS Center) On Tue, Jul 30, 201

[Puppet Users] Re: Augeas, fstab and duplicate lines: How to test ? (onlyif ? not_include ?) ... Examples ?

2013-07-30 Thread Sneha More
thanks. > > Cheers. > Hi, Here your onlyif condition is the cause of inserting a new line each time. you can try this: *onlyif => "match*[spec=$fs_dev] size == 0"* This will match your $fs_dev and will not insert it second time. Regards, Sneha More, NTT DATA GTS, Pune.

[Puppet Users] Re: puppet ignoring dependencies

2013-07-23 Thread Sneha More
;puppet_agent": stage => first, } class {"base_config: stage => second, } } Regards, Sneha More. NTT DATA GTS.(OSS Centre) On Monday, July 22, 2013 9:40:53 PM UTC+5:30, cko wrote: > > hi everyone, > > my

[Puppet Users] Re: puppet master and fileserver separate problem

2013-07-21 Thread Sneha More
Hi Aviar, I think you should try this once. class test { notify { "hello world": } file { '/home/puppet/hello': owner => "root", group => "root", mode => 644, ensure => present, source => "puppet:///f

[Puppet Users] Re: Perform action when exported resources change

2013-07-19 Thread Sneha More
Hi George, You can directly use the fact hostname as $hostname in your manifest. So though the hostname changes, puppet will take the updated value of $hostname. Will you please elaborate about the scenario for new node? Do you want to use this hostname for certification signin

[Puppet Users] Re: Package install error

2013-07-19 Thread sneha more
On Friday, July 19, 2013 12:45:50 AM UTC+5:30, Mark Hatch wrote: > > Here is my manifest... > > package { 'tractor blade': > provider => 'rpm', > ensure => present, > source => > 'puppet:///modules/mpsvfx/tractor-blade-1.7_1191418-linuxFC12_gcc