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

2014-08-20 Thread Sneha More
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 dir: command = 'mkdir -p /etc/puppet/test' unless

[Puppet Users] Re: puppet module

2013-10-11 Thread Sneha More
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. The second requirements: If the host file

[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: Including files in a template

2013-10-01 Thread Sneha More
, 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, folks: I want to include

[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 DATA GTS, OSS Center, India (Pune

[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 $fact_name == special case { then condition here use different port number for iptables rule. } Thanks and Regards, Sneha More, NTT

[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, September 27, 2013 3:17:49 PM UTC+5:30

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

2013-09-27 Thread Sneha More
, 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 don't know how to configure it. Could you please

[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: Service refresh gets scheduled and swp files

2013-09-25 Thread Sneha More
, Sneha More, NTT DATA GTS, OSS Center, India (Pune). On Tue, Sep 24, 2013 at 6:22 PM, AAB !! adeelarifbha...@gmail.com wrote: Thanks for reply ! Could you/anyone tell me if a file gets deleted on the puppet master why does it still appear on the puppet agent, only this delete operation

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: enablerepo option

2013-09-24 Thread Sneha More
this will help you. Thanks Regards Sneha More On Mon, Sep 23, 2013 at 3:46 PM, puppetstan stanislas.lev...@gmail.comwrote: Hi This configuration is not good if fusioninventory-agent is installed and puppet want to verify the latest version because yum command option is install and not update

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

2013-09-24 Thread Sneha More
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 UTC+5:30, AAB !! wrote: Hi, I have two issues with my puppet. *1*- When I change

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, could you tell me where

[Puppet Users] Re: enablerepo option

2013-09-23 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

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

2013-09-20 Thread Sneha More
/ssh_config': ensure = present, owner = $owner, group = $group, mode = '0644', backup = false, content = template(SSHT Template 3), } } I hope this will help you. Thanks Regards, Sneha More, NTT DATA GTS, OSS Centre, India (Pune). On Thursday, September 19

[Puppet Users] Re: enablerepo option

2013-09-20 Thread Sneha More
Hi, package { “xyz”: ensure = latest, enablerepo = “epel”, } This internally executes, yum -y --enablerepo=epel install xyz. So can use Exec just for enabling repo and then you can use package resource to install package. I hope this should work. Thanks and Regards, Sneha

[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

[Puppet Users] Re: puppet-chocolatey error

2013-09-17 Thread Sneha More
', } 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 case), I got the following error: Info: Applying configuration

[Puppet Users] Re: Executing command via puppet !

2013-09-16 Thread Sneha More
for deatailed description. *2nd case* : if you want to execute something after finding file containing configuration error then you can use attribute onlyif = command of exec resource Please refer http://www.puppetcookbook.com/posts/exec-onlyif.html for deatiled description Thanks Regards, Sneha

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

2013-09-11 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+5:30

[Puppet Users] Re: Dependancy Problems

2013-08-19 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: Learningpuppet

2013-08-19 Thread Sneha More
/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 this exercise. Is this structure right?: - human

[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 unsubscribe from

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

2013-08-14 Thread Sneha More
by puppet doc does not create documentation for it. Regards, Sneha More On Wed, Aug 14, 2013 at 4:49 PM, Sneha More snehamore...@gmail.com wrote: 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

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

2013-07-30 Thread Sneha More
. 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. (OSS Center) -- You

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

2013-07-30 Thread Sneha More
) 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, 2013 at 6:28 PM, Sneha More snehamore...@gmail.com wrote: On Tuesday, July 30, 2013 2

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

2013-07-30 Thread Sneha More
}\] 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: Hi, you probably already tested this already, but how about: onlyif = match *[spec = \${fs_dev}\] size == 0 Regards

[Puppet Users] Re: puppet ignoring dependencies

2013-07-23 Thread Sneha More
, } 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 *site.pp* looks like this: node server.my.fqdn { class { puppet_agent: } class

[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 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 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