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

2015-06-11 Thread Denmat
Hi, May not be the best solution but you can specify the command to run when starting a service, you could use that instead. service {blah: start => 'test && service blah start' } Alternatively you might want to put logic in the init file, into a facter value or some other way. Cheers

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

2015-06-11 Thread Craig Dunn
You haven't provided a command to run via the command attribute, so the provider will attempt to execute what you have in the resource title (checkForFile) - that is to say, it is trying to execute the command 'checkForFile', which of course, doesn't exist. As Denmat already pointed out, this may

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

2015-06-11 Thread Craig Dunn
On reading this again, what you are trying to do won't work - you are requiring that the exec resource be "satisfied" before the service starts - if the exec resource doesn't run because onlyif returns false, this is normal behaviour and not a failure, therefore the resource is still satisfied and

[Puppet Users] Re: Slow Mirror

2015-06-11 Thread Denny B
Hello Daniel and Daniel, thank you very much for your response. The output you wanted is here: root@s110077:~# curl -o /dev/null http://yum.puppetlabs.com/fedora/f21/products/SRPMS/razor-torquebox-3.1.1.5-1.fc21.src.rpm % Total% Received % Xferd Average Speed TimeTime Time Cu

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

2015-06-11 Thread Eddie Mashayev
Thanks, do you have any other suggestion how can I do it properly? I want “nails” process to be running only if there is no /etc/NONAILS flag in my OS. On Thursday, June 11, 2015 at 1:01:55 PM UTC+3, Craig Dunn wrote: > > On reading this again, what you are trying to do won't work - you are

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

2015-06-11 Thread jcbollinger
On Thursday, June 11, 2015 at 7:24:57 AM UTC-5, Eddie Mashayev wrote: > > > Thanks, do you have any other suggestion how can I do it properly? > > I want “nails” process to be running only if there is no /etc/NONAILS flag > in my OS. > > The canonical way to inform the catalog compiler about no

[Puppet Users] Re: How extend a module

2015-06-11 Thread jcbollinger
On Wednesday, June 10, 2015 at 5:05:00 PM UTC-5, 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 w

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

2015-06-11 Thread jcbollinger
On Wednesday, June 10, 2015 at 8:27:14 AM UTC-5, staceyt...@gmail.com wrote: > > 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? > >

[Puppet Users] Is this the right way of doing it?

2015-06-11 Thread Sergiu Cornea
Good afternoon guys, I have been assigned with the task of creating something like this: https://github.com/duritong/puppet-webhosting/tree/master/manifests which I successfully implemented however, in order to add an extra variable you will have to add it in all your module manifests, say for

Re: [Puppet Users] where is PC1 for Debian Jessie?

2015-06-11 Thread Francois Lafont
Hi, On 09/06/2015 23:32, Melissa Stone wrote: > > > Sorry if I change a little the subject (I suppose the thread is > "resolved") but do you know when the packages "mcollective-*-agent" > and "mcollective-*-client" will be available in the Puppet4 PC1 > > repositories? > > > We'

[Puppet Users] Puppet 4 API, questions about custom functions and "data binding" in modules

2015-06-11 Thread Francois Lafont
Hi, I'm learning Puppet 4 and especially the Puppet 4 API for custom functions and "data binding" in modules. Currently, my sources are: - http://puppet-on-the-edge.blogspot.fr/2015/01/puppet-40-data-in-modules-and.html - http://puppet-on-the-edge.blogspot.be/2015/02/puppet-40-data-in-modules-par

Re: [Puppet Users] custom fact with registry value

2015-06-11 Thread kaustubh chaudhari
Cool! Thanks for your direction. I am running puppet 3.6 which is a 32bit binary. Which was eventually calling 32bit binary of powershell on 64bit system. This partially works, 32bit powershell have limited visibility to registry not all registry. I just changed the command section from this(c:

Re: [Puppet Users] Re: How extend a module

2015-06-11 Thread Albert Shih
Le 11/06/2015 à 06:13:29-0700, jcbollinger a écrit > > > On Wednesday, June 10, 2015 at 5:05:00 PM UTC-5, 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 >

[Puppet Users] Concat params along a node.

2015-06-11 Thread Albert Shih
Hi, Let's say I have a module to manage something on a server so modules/things/manifests/init.pp /addthing.pp the addthing.pp whould be a define. And I use this « addthing » inside other module, how can I get the list of all thing I add. For example class my_serv

[Puppet Users] tagmail module doesn't work with puppet 4

2015-06-11 Thread Ken Bowley
While I ignore puppet 4's brain-dead stupid fact behaviour when using puppetdb, I'm on to the issue of getting puppet to mail reports when something changes on a node. Since the built-in tagmail is no longer an option, I decided to look at the tagmail module. As far as I can tell, the puppetla

[Puppet Users] Re: tagmail module doesn't work with puppet 4

2015-06-11 Thread Ken Bowley
I managed to get it to work by editing tagmail.rb and hard coding any of the areas where it tries to use Puppet[:*] config options that don't exist and can not work with puppet 4.1. On Thursday, June 11, 2015 at 1:30:52 PM UTC-7, Ken Bowley wrote: > > While I ignore puppet 4's brain-dead stupid

[Puppet Users] [announce] puppetlabs-concat 2.0.x release deletion

2015-06-11 Thread Bryan Jen
If you aren’t using puppetlabs-concat or are still using the puppetlabs-concat module with version 1.x you don’t need to continue reading. But, if you’re using puppetlabs-concat 2.0.x... tl;dr - we have uncovered an issue in the Puppet core that impacts the puppetlabs-concat 2.0.x series and are d

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

2015-06-11 Thread tyon
Thanks Angel! It works! On Wednesday, June 10, 2015 at 10:54:42 PM UTC-7, Angel L. Mateo wrote: > > 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

Re: [Puppet Users] Puppet 4 API, questions about custom functions and "data binding" in modules

2015-06-11 Thread Henrik Lindberg
On 2015-11-06 19:24, Francois Lafont wrote: Hi, I'm learning Puppet 4 and especially the Puppet 4 API for custom functions and "data binding" in modules. Currently, my sources are: - http://puppet-on-the-edge.blogspot.fr/2015/01/puppet-40-data-in-modules-and..html - http://puppet-on-the-edge.bl

[Puppet Users] Re: [Puppet-dev] [announce] puppetlabs-concat 2.0.x release deletion

2015-06-11 Thread Trevor Vaughan
Hi Bryan, I'm sorry to hear about this as I have a lot of interest in this particular topic. So, I have a Native Concat (with the latest version here: https://github.com/simp/pupmod-simp-concat) and Richard Clamp wrote Datacat (https://github.com/richardc/puppet-datacat) which took a similar, but

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

2015-06-11 Thread Henrik Lindberg
On 2015-11-06 3:40, xin.mia...@gmail.com wrote: 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, bu

Re: [Puppet Users] Re: Slow Mirror

2015-06-11 Thread Daniel Parks
On Thu, Jun 11, 2015 at 3:25 AM, Denny B wrote: > We can't download faster than 1mb/s. When I use another Server from other > network everything works fine. > Can you check if there is a speedlimit active for 217.79.215.0/24 ? > To other mirrors (such as debian) we can download as fast as possibl