[Puppet Users] Stop and Start Services running on Puppet Master or Agent Machine

2014-06-20 Thread Satish Katuru
Hi, I am new to Puppet and We are trying to stop and start any one of the services running on the Puppet master /agent machine. Here is the Scenario: 1. we have a Jboss service running on Puppet master and I am trying to kill this service thru puppet.(this service is runnning with my userid)

Re: [Puppet Users] Stop and Start Services running on Puppet Master or Agent Machine

2014-06-22 Thread Satish Katuru
should > not be doing that. Please do this correctly by setting up your software as > a real service and then control it correctly with the "service" resource in > Puppet. > > I strongly suggest you walk through the Puppet tutorials at > https://puppetlabs.com/learn

Re: [Puppet Users] Stop and Start Services running on Puppet Master or Agent Machine

2014-06-23 Thread Satish Katuru
real service and then control it correctly with the "service" resource in > Puppet. > > I strongly suggest you walk through the Puppet tutorials at > https://puppetlabs.com/learn before trying to control your own custom > applications with it. > > > ❧ Brian Math

Re: [Puppet Users] Stop and Start Services running on Puppet Master or Agent Machine

2014-06-23 Thread Satish Katuru
f its capabilities and you really should > not be doing that. Please do this correctly by setting up your software as > a real service and then control it correctly with the "service" resource in > Puppet. > > I strongly suggest you walk through the Puppet tutorials at > htt

[Puppet Users] how to copy jar and ESB files from Master to agent machines

2014-06-26 Thread Satish Katuru
Hi, I tried to copy jar files and ESB files from master to Agent. This is how my init.pp looks like: class httpd { file { "/home/katusa02/soa/jboss-soa-p-5/jboss-as/server/default/deploy/ParserService-1.0.esb": ensure => present, owner => "katusa02", group => "katusa02", mode => "0777", sourc

Re: [Puppet Users] Stop and Start Services running on Puppet Master or Agent Machine

2014-06-26 Thread Satish Katuru
his correctly by setting up your software as > a real service and then control it correctly with the "service" resource in > Puppet. > > I strongly suggest you walk through the Puppet tutorials at > https://puppetlabs.com/learn before trying to control your own custom >

Re: [Puppet Users] Stop and Start Services running on Puppet Master or Agent Machine

2014-06-30 Thread Satish Katuru
> "puppet:///$puppetserver/modules/httpd/ParserService-1.0.esb", > > > ❧ Brian Mathis > @orev > > > On Thu, Jun 26, 2014 at 2:47 PM, Satish Katuru > wrote: > >> Hi Brian Mathis, >> >> I tired to copy the jar files and Zip files from Master

Re: [Puppet Users] Stop and Start Services running on Puppet Master or Agent Machine

2014-06-30 Thread Satish Katuru
sudo puppet agent -t --waitforcert=60 (Certificate has been generated and singed) Please help me out to resolve this? Regards, Sathish. On Monday, June 30, 2014 12:33:32 PM UTC+5:30, Satish Katuru wrote: > > Hi Brian Mathis, > > I think no need to put 3 slashes after "puppet&

Re: [Puppet Users] Stop and Start Services running on Puppet Master or Agent Machine

2014-06-30 Thread Satish Katuru
Yes It is.The file is available in the /modules/httd On Monday, June 30, 2014 6:12:14 PM UTC+5:30, Martin Alfke wrote: > > Hi Brian, > > braindead question: > is a file with name hello in modules/httpd/files/ available?? > > - Martin > > > On 30 Jun 2014, at 1

Re: [Puppet Users] Stop and Start Services running on Puppet Master or Agent Machine

2014-07-01 Thread Satish Katuru
e node to be > /etc/puppet/modules/hello.txt. > Is the directory /etc/puppet/modules already present? (_on the node_ !!) > > - Martin > > On 01 Jul 2014, at 08:23, Satish Katuru > > wrote: > > > Yes It is.The file is available in the /modules/httd > >

Re: [Puppet Users] Stop and Start Services running on Puppet Master or Agent Machine

2014-07-02 Thread Satish Katuru
Hi, You were correct.We should put our source files under Files folder. On Tuesday, July 1, 2014 6:50:02 PM UTC+5:30, jcbollinger wrote: > > > > On Tuesday, July 1, 2014 3:32:12 AM UTC-5, Satish Katuru wrote: >> >> Yes,the folder is present in the Agent machine.Th

[Puppet Users] Service start and stop

2014-07-02 Thread Satish Katuru
Hi, Please see my init.pp file. First I am stopping the Jboss server and then deleting few folders,copying files and then trying to start the service. When I place file copy statements it is not working. With out file copy statements I am able to stop the service and start the service. I am

[Puppet Users] Regarding Service elements in init.pp

2014-07-03 Thread Satish Katuru
Hi , My init.pp has two service elements like below: class httpd { service{ "startjavaservice.sh": ensure => "running", } service{ "stopjavaservice.sh": ensure =>"stopped", } } First one is for starting Java service and the second one is for stopping the same service. *Problem:* When it ha

[Puppet Users] Re: Service start and stop

2014-07-04 Thread Satish Katuru
Hi John, Thanks for your reply.I used metaparmeters to define order of execution and it is working now. Regards, Sathish. On Thursday, July 3, 2014 8:13:10 PM UTC+5:30, jcbollinger wrote: > > > > On Wednesday, July 2, 2014 8:33:08 AM UTC-5, Satish Katuru wrote: >> >> &g

[Puppet Users] How to deploy code in agent machines from Master

2014-07-04 Thread Satish Katuru
Hi, My init.pp has 4 nodes and I want to control all these 4 nodes from the Master.I mean to say how to deploy the code in all the nodes from Master? If I execute Puppet agent -t --waitforcert=60 on Agent machine it reads init.pp on Master and deploy the code in Agent. But I can't run this on e

Re: [Puppet Users] How to deploy code in agent machines from Master

2014-07-07 Thread Satish Katuru
es Mcollective, like Fabric or Ansible. You would just have them > run the same command you would run to start the agent. > > Also once you have a signed cert you don't need to use waitforcert. You > can just run "puppet agent -t" on the agent host. > > > > R

[Puppet Users] Regarding Puppet Agent process on Agent Machine

2014-07-08 Thread Satish Katuru
Hi, I linked both Master and Agent machines.But I am unable to see the Agent process on Agent machine. Can we have the Agent process on the Agent machine? I used below command to get the latest code puppet agent -t --waitforcert=60 When I Execute it every time it would take the code from m

[Puppet Users] delete files from Master server

2014-07-08 Thread Satish Katuru
Hi , My intention is to deleted the files from Master server once the deployment is over on agent machines. How can i achieve this? Once I execute *puppet agent -t *deployment will be done on agent machine.After this I wanted to remove files from master server. Help me out on this? Sathish.

[Puppet Users] Re: Regarding Puppet Agent process on Agent Machine

2014-07-09 Thread Satish Katuru
Thanks John for your reply.Now I am able to see the Puppet agent process on the machine. Satish. On Tuesday, July 8, 2014 6:35:37 PM UTC+5:30, jcbollinger wrote: > > > > On Tuesday, July 8, 2014 3:47:25 AM UTC-5, Satish Katuru wrote: >> >> Hi, >> >> I linked

[Puppet Users] how to use conditional statements

2014-07-29 Thread Satish Katuru
Hi Here is my flow: Stop service-->copy required files from Master server-->Start service Once this is done,I am taking a copy of files on Master Server and removing the files from original location. I wanted to add this condition (if files are not there at that location no need stop and re

[Puppet Users] How to install GIT on puppet Server

2014-08-08 Thread Satish Katuru
Hi , I wanted to Install GIT on Linux machine using Puppet.I need step by step details.So Can any one help me on this? Where do i download it and where do i need to place these folder...etc Regards, Sathish. -- You received this message because you are subscribed to the Google Groups "Puppet

Re: [Puppet Users] How to install GIT on puppet Server

2014-08-11 Thread Satish Katuru
eatsheet.pdf and "The > Trifecta" > > “Sometimes I think the surest sign that intelligent life exists elsewhere in > the universe is that none of it has tried to contact us.” (Bill Waterson: > Calvin & Hobbes) > > > On Aug 08, 2014, at 07:50 AM, Satish Katu

Re: [Puppet Users] How to install GIT on puppet Server

2014-08-12 Thread Satish Katuru
me out to resolve this? Satish. On Tuesday, August 12, 2014 5:51:44 AM UTC+5:30, Vikas Kumar wrote: > > Hi Satish, > > I would make a local repo and install it from there, just in case my > server isn't connected to internet. If it is, you need not worry about it. > >

[Puppet Users] Verify whether the directory has files or not

2014-08-12 Thread Satish Katuru
Hi, I want to copy files into agent machine if the directory in Master server has files? How to Check whether the directory has files or not?(need to add a condition) Sathish. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe f

Re: [Puppet Users] How to install GIT on puppet Server

2014-08-12 Thread Satish Katuru
Hi Vikas, Please find the below information: Linux version: *Linux 2.6.32-358.6.2.el6.x86_64 x86_64* Below is the output for the command /usr/bin/yum -d 0 -e 0 -y list git **Note* Red Hat Network repositories are not listed below. You must run this command as root to access RHN repositori

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

2014-08-18 Thread Satish Katuru
Hi , I wanted to find out whether the directory exists or not in the machine.How can I do it? if I do it as below it will create a directory: File { " /etc/puppet/test": ensure => "directory", } -- You received this message because you are subscribed to the Google Groups "Puppet Users" gr