[Puppet Users] Check service running with flag file

2015-06-10 Thread Eddie Mashayev
Hi All, I want to check that my service "nails" running on all my servers only if file "/etc/NONAILS" *not exists* on this server. If it exists don’t start this process, this file works like a flag. I wrote script in puppet to check that and it works. Still it throes error when this file do

[Puppet Users] Re: Check service running with flag file

2015-06-10 Thread Eddie Mashayev
Anyone?! On Wednesday, June 10, 2015 at 2:30:33 PM UTC+3, Eddie Mashayev wrote: > > Hi All, > > I want to check that my service "nails" running on all my servers only if > file "/etc/NONAILS" *not exists* on this server. > > If it exists don’t start

Re: [Puppet Users] Re: Check service running with flag file

2015-06-11 Thread Eddie Mashayev
o stick with this approach then you need to > > specify a command - try adding command => '/bin/true' to the exec > > resource declaration to get around your current problem. > > > > Craig > > > > > > On Thu, Jun 11, 2015 at 8:13 AM, Eddie M

Re: [Puppet Users] Re: Check service running with flag file

2015-06-18 Thread Eddie Mashayev
service { 'nails': ensure => "running", enable => true, hasstatus => false, hasrestart => true, } } } Hope it helped. On Thursday, June 11, 2015 at 4:06:53 PM UTC+3, j

[Puppet Users] Help with NTP module provided by puppetlabs

2015-08-09 Thread Eddie Mashayev
Hi All, I have many servers spread in 3 different time zones USA (NY and San Francisco) and also in ISR. Have 3 NTP servers, one NTP server in each location. https://forge.puppetlabs.com/puppetlabs/ntp module is letting you to insert an array of NTP servers class { '::ntp': servers => [ 'n

Re: [Puppet Users] Help with NTP module provided by puppetlabs

2015-08-10 Thread Eddie Mashayev
data hierarchy” – I’m using Foreman and NOT Puppet enterprise if it matters. Can you elaborate more how to implement it right, maybe add some code if possible. Thanks, EddieM On Sunday, August 9, 2015 at 5:35:07 PM UTC+3, Martin Alfke wrote: > > Hi Eddie, > > On 09 Aug 2015, at

Re: [Puppet Users] Help with NTP module provided by puppetlabs

2015-08-11 Thread Eddie Mashayev
Thanks for the help :) On Tuesday, August 11, 2015 at 1:24:48 AM UTC+3, Richard Gray wrote: > > > > On 10/08/15 20:12, Martin Alfke wrote: > > You need to create a hiera.yaml config file. > The config file may look like this: > > :backends: > - yaml > :yaml: > :datadir: ‘/etc/puppet/data’ > :h

Re: [Puppet Users] Help with NTP module provided by puppetlabs

2015-08-17 Thread Eddie Mashayev
made myself clear :) Thanks, EddieM On Tuesday, August 11, 2015 at 6:12:58 PM UTC+3, Eddie Mashayev wrote: > > Thanks for the help :) > > On Tuesday, August 11, 2015 at 1:24:48 AM UTC+3, Richard Gray wrote: >> >> >> >> On 10/08/15 20:12, Martin Alfke wrote: &

[Puppet Users] Puppet saying "changed 'stopped' to 'running'" while the service is running

2015-10-14 Thread Eddie Mashayev
Hi All, I have some wired problem with my module to manage MacAfee services. My lab have around 150 servers and 145 of them works fine with the module I’ve created. There are 5 which shows these changes all the time although the service is in running state already. [root@pingapp ~]# service c

[Puppet Users] Re: Puppet saying "changed 'stopped' to 'running'" while the service is running

2015-10-14 Thread Eddie Mashayev
y, October 14, 2015 at 2:51:42 AM UTC-5, Eddie Mashayev wrote: >> >> Hi All, >> >> I have some wired problem with my module to manage MacAfee services. >> My lab have around 150 servers and 145 of them works fine with the module >> I’ve created. >> Th

[Puppet Users] Puppet agents get hanged in "Info: Loading facts"

2015-11-05 Thread Eddie Mashayev
Hi All, I have CentOS 6.5 running puppet agent version 3.8.2 the problem is when I’m running “puppet agent -t” it gets hanged: [root@server ~]# puppet agent -t Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Info: Loading facts “Could not retrieve catalog from re

Re: [Puppet Users] Puppet agents get hanged in "Info: Loading facts"

2015-11-05 Thread Eddie Mashayev
your Puppet master and ENC > > Craig > > On Thu, Nov 5, 2015 at 4:23 PM, Eddie Mashayev > wrote: > > Hi All, > > > > I have CentOS 6.5 running puppet agent version 3.8.2 the problem is when > I’m > > running “puppet agent -t” it gets hanged: