[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] Slow Mirror

2015-06-10 Thread Denny B
Hello everyone, since two days we aren't able to synchronize our local mirror with apt.puppetlabs.com. The maximum speed to download everything is about 50-100kb/s which is really really slow for our whole datacenter. Are there any problems with your mirror? Did you maybe blocked us? Currently

Re: [Puppet Users] PuppetDB doesn't work in Puppet 4: Error Executing http request

2015-06-10 Thread 'Danny Roberts' via Puppet Users
Thanks for the advice, running the puppetserver process ion the foreground showed quite clearly it was a hostname related issue which I've now fixed and it works perfectly. On 9 June 2015 at 14:44, Ken Barber k...@puppetlabs.com wrote: I am trying to use PuppetDB with a Puppet 4 server that I

[Puppet Users] How to handle dependencies with roles profiles with contain?

2015-06-10 Thread Haani Niyaz
I am trying to create a dependancy relationship so that the *phpwebserver* profile is run before the *silex_api *profile. role: class roles::dev{ include profiles::phpwebserver include profiles::silex_api Class ['profiles::phpwebserver'] - Class ['profiles::silex_api'] }

Re: [Puppet Users] why puppet cert clean generates so much output and takes a lot of time

2015-06-10 Thread jcbollinger
On Tuesday, June 9, 2015 at 4:03:42 PM UTC-5, Gabriel Filion wrote: On 09/06/15 12:14 PM, Andrés Abelardo Villarroel Acosta wrote: I´m not puppet expert, and I know this may be a question completely relative to my environment, I just want to know why when I run puppet cert clean

[Puppet Users] How to have puppet install package only if one file doesn't exist?

2015-06-10 Thread staceytian4321
Hi all, I am trying to use puppet to push package flex-devel-2.5.35-9.el6.i686 only if the file /usr/lib/libl.a doesn't exist. I tried several ways, but still can't get it work. Any suggestions? Thanks, Stacey -- You received this message because you are subscribed to the Google Groups

Re: [Puppet Users] why puppet cert clean generates so much output and takes a lot of time

2015-06-10 Thread Christopher Wood
On Wed, Jun 10, 2015 at 05:56:57AM -0700, jcbollinger wrote: On Tuesday, June 9, 2015 at 4:03:42 PM UTC-5, Gabriel Filion wrote: On 09/06/15 12:14 PM, Andrés Abelardo Villarroel Acosta wrote: I´m not puppet expert, and I know this may be a question completely relative to

[Puppet Users] Shared modules for all Puppet environments

2015-06-10 Thread tyon
Hi all! I've seen an article a while ago about different Puppet environments using the same module. For example, for me it'd be useful if all my Puppet environments use the same user module and I don't need to add new users in every environment. I cannot find that article anymore. Can

[Puppet Users] custom fact with registry value

2015-06-10 Thread kaustubh chaudhari
Hi All, I want to read registry value on windows system and present it as a fact. i tried it in many ways but no luck. I have this powershell script in facts.d directory == $path = 'HKLM:\Software\SunGard\BigFix' $wave = Get-ItemProperty $path | Select-Object -ExpandProperty bigfix Write-Host

Re: [Puppet Users] Slow Mirror

2015-06-10 Thread Daniel Dreier
On Wed, Jun 10, 2015 at 3:07 AM, Denny B bortfeldtde...@gmail.com wrote: Hello everyone, since two days we aren't able to synchronize our local mirror with apt.puppetlabs.com. The maximum speed to download everything is about 50-100kb/s which is really really slow for our whole datacenter.

[Puppet Users] Re: How to have puppet install package only if one file doesn't exist?

2015-06-10 Thread staceytian4321
Hi Kaustubh, Thank you very much! I will give it a try! Thanks, Stacey On Wednesday, June 10, 2015 at 1:08:46 PM UTC-4, kaustubh chaudhari wrote: You can create a custom fact to check for that file if the file dose not exist then install else do nothing. == Facter.add(:bigfix) do

[Puppet Users] Re: How to have puppet install package only if one file doesn't exist?

2015-06-10 Thread kaustubh chaudhari
You can create a custom fact to check for that file if the file dose not exist then install else do nothing. == Facter.add(:bigfix) do confine :kernel = Linux setcode do if File.exist? /etc/init.d/besclient true else false end end end == if this file exist i ignore it

Re: [Puppet Users] Bitbucket and puppet-sync

2015-06-10 Thread tyon
Hi Jason, For some reasons I didn't get your an email with your answer even if the option is chosen. Thanks a lot, it's very helpful. My puppet server is running a web server for foreman as well. I'm planning to use puppet-sync to use dynamic environments, so I'll need to change your scripts

Re: [Puppet Users] bitbucket.org or internal git server and puppet-sync git hook

2015-06-10 Thread tyon
Hi Jonathan, For some reasons I didn't get your an email with your answer even if the option is chosen. It turned that I have to use bitbucket. I'm still planning to use puppet-sync, but I will have to create php post-receive hook on my server. Thanks for sharing your experience with me. On

Re: [Puppet Users] custom fact with registry value

2015-06-10 Thread Rob Reynolds
On Wed, Jun 10, 2015 at 12:17 PM, kaustubh chaudhari kaustu...@gmail.com wrote: Hi All, I want to read registry value on windows system and present it as a fact. i tried it in many ways but no luck. I have this powershell script in facts.d directory == $path =

[Puppet Users] puppet master using cached facts from puppetdb

2015-06-10 Thread Ken Bowley
I'm running puppet 4.1.0 in a test VM in preparation for an eventual migration from 3.8.1. I've recently run into an issue that seems to be mentioned in https://tickets.puppetlabs.com/browse/PDB-949 Here's a little back info; My VM is a copy of our production puppet master, but with 4.1.0

Re: [Puppet Users] custom fact with registry value

2015-06-10 Thread Rob Reynolds
On Wed, Jun 10, 2015 at 4:32 PM, Rob Reynolds r...@puppetlabs.com wrote: On Wed, Jun 10, 2015 at 12:17 PM, kaustubh chaudhari kaustu...@gmail.com wrote: Hi All, I want to read registry value on windows system and present it as a fact. i tried it in many ways but no luck. I have this

[Puppet Users] How extend a module

2015-06-10 Thread Albert Shih
Hi, I would like to known if it's possible to extend a module without touching the module. I mean let's take sample : If I want use apache (from puppetlabs) but each time I create a vhost with apache::vhost { 'thing' : } i want also add a nagios check on my nagios server. For

[Puppet Users] Re: Slow Mirror

2015-06-10 Thread Daniel Parks
On Wednesday, June 10, 2015 at 4:30:33 AM UTC-7, Denny B wrote: since two days we aren't able to synchronize our local mirror with apt.puppetlabs.com. The maximum speed to download everything is about 50-100kb/s which is really really slow for our whole datacenter. Hi Denny, I'm the

Re: [Puppet Users] How extend a module

2015-06-10 Thread Ramin K
On 6/10/15 1:03 PM, Albert Shih wrote: Hi, I would like to known if it's possible to extend a module without touching the module. I mean let's take sample : If I want use apache (from puppetlabs) but each time I create a vhost with apache::vhost { 'thing' : } i want

[Puppet Users] Re: Long puppet catalog run times on certain nodes after using pson is called

2015-06-10 Thread xin . miao89
I met the same problem with you now. Did you figure it out as last? Can you give me some suggestion? 在 2013年2月27日星期三 UTC+8上午2:32:33,r.yeo写道: Running the agent in debug mode on a some clients and I am seeing long run times such as this, but only after the using pson lines : Tue Feb 26

Re: [Puppet Users] Shared modules for all Puppet environments

2015-06-10 Thread Angel L. Mateo
El 10/06/15 a las 19:37, tyon escribió: Hi all! I've seen an article a while ago about different Puppet environments using the same module. For example, for me it'd be useful if all my Puppet environments use the same user module and I don't need to add new users in every environment. I cannot

Re: [Puppet Users] How extend a module

2015-06-10 Thread Angel L. Mateo
El 10/06/15 a las 22:03, Albert Shih escribió: Hi, I would like to known if it's possible to extend a module without touching the module. I mean let's take sample : If I want use apache (from puppetlabs) but each time I create a vhost with apache::vhost { 'thing' : } i

Re: [Puppet Users] Creating Windows MSI for puppet agent

2015-06-10 Thread Rob Reynolds
On Tue, Jun 9, 2015 at 1:15 AM, Puppeteer kdeepak...@gmail.com wrote: Hi Rob, The application event log does not have any information with respect to Puppet. There is no log named Puppet. I was specifically talking about Application event log and source being Puppet. [image: Inline image 1]