Re: [Puppet Users] Re: Need modules for cron

2012-03-08 Thread Dominik Zyla
#!/bin/bash PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin SLEEP=$(($RANDOM*1500/32767)) sleep $SLEEP puppetd -tv --report But puppet commander, about which Krzysztof mentioned seems to be better solution. I have switch to it scheduled in my todo list too. Best, -- Dominik Z

Re: [Puppet Users] Setting password hash for virtual users?

2012-03-06 Thread Dominik Zyla
r is my > syntax incorrect? Hi, Why did you use `@file' definition instead of `file'? `@file' only creates virtual resource which will not change anything in your system until you refer to it using `<||>' notation. This link should clarify you this topic: http://doc

Re: [Puppet Users] Puppet/foreman redundant servers? Cluster, recovery etc

2012-03-06 Thread Dominik Zyla
> For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. Hi, We're also duplicating all resources as they're going live. We're using drbd and Pacemaker for foreman and apache fallbacks. Works quite well. Best, -- Dominik Zyla -- You

Re: [Puppet Users] system poweroff/shutdown module

2012-03-06 Thread Dominik Zyla
want to push the shutdown > request to the clients since. Hi, Puppet is not designed for such tasks. Take a look on MCollective which can be helpful here. using it you can divide your systems on collectives/groups and operate on them directly or on single nodes too. MCollective is delivered wit

Re: [Puppet Users] require custom ruby code in custom function

2012-03-06 Thread Dominik Zyla
groups.com). > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. Hi, I'm doing something like this in my scripts (not exactly puppet custom modules/facts but it will do the trick): $LOAD_PATH << File.expand_path(File.dirname(__FILE__) + 

Re: [Puppet Users] Re: zombie child process

2012-03-04 Thread Dominik Zyla
On Sunday, 4 March 2012 at 20:49, Elias Abacioglu wrote: > Dominik Zyla skrev 2012-03-04 17:04: > > Hi, > > > > Just take a look into your logs. You'll see something like: > > > > (/Stage[main]/Mcollective::Server/Service[mcollective]) > > > >

Re: [Puppet Users] Testing catalog run on REAL node as git pre-push hook?

2012-03-04 Thread Dominik Zyla
such concept here: http://puppetlabs.com/blog/git-workflow-and-puppet-environments/ Also git flow may be helpful here if there are few sysadmins developing modules in your company. Best, -- Dominik Zyla Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Saturday, 3 March 2012 at 04:41

Re: [Puppet Users] Re: zombie child process

2012-03-04 Thread Dominik Zyla
anifest puppet-agent stops on. Best, -- Dominik Zyla Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Saturday, 3 March 2012 at 18:04, Raboo wrote: > On 3 mar, 17:59, Russell Van Tassell http://gmail.com)> > wrote: > > My guess ... Just look in your puppet log to see wh

Re: [Puppet Users] Puppet on Centos 6.0

2011-10-17 Thread Dominik Zyla
. It should be packed in Centos. -- Dominik Zyla -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-user

Re: [Puppet Users] how to use optional parameters

2011-10-07 Thread Dominik Zyla
led, require => $require, subscribe => $subscribe, } } Now you're able to override default values in this way: httpd::service { path => '/some/path', } You can also use assign array here: $array = [ '/some/path', '/another/path' ] httpd::

Re: [Puppet Users] Re: How to check if a given "directory" exists??

2011-09-28 Thread Dominik Zyla
} Hello, You can work it around with something like: exec { 'mkdir -p 0644': path => "/usr/bin:/usr/sbin:/bin", unless => "[ -d '/var/torque/mom_priv' ]" } Hope this helps. -- Dominik Zyla -- You received this message because you are subscrib

Re: [Puppet Users] How To Expand an .erb Template Without Doing a Full Puppet Run?

2011-09-14 Thread Dominik Zyla
file on the client host and run the named-checkzone there. That's what I figured. I was hoping that there would be an easier way that could somehow do a facter run but only run the minimal amount of puppet. named-checkzone(8) should be suitable tool for your needs. Best, -- Dominik Zyla

[Puppet Users] Adding structural data in puppet dashboard.

2011-09-08 Thread Dominik Zyla
Hello everyone, I'm trying to add something like that: http://pastebin.com/eEeHQ2rL to my node parameters using Puppet-Dashboard and no matter how I'm doing that, there is no effect I'm waiting for. Any hint, somebady? -- Dominik Zyla -- You received this message because you

Re: [Puppet Users] Custom fact question

2011-07-29 Thread Dominik Zyla
need this only on puppetmaster and it would be run with a specified class. -- Dominik Zyla -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from

Re: [Puppet Users] Question about custom function.

2011-06-14 Thread Dominik Zyla
On Tue, Jun 14, 2011 at 02:59:06PM -0700, Nan Liu wrote: > On Tue, Jun 14, 2011 at 2:30 PM, Dominik Zyla wrote: > > On Tue, Jun 14, 2011 at 02:04:33PM -0700, Nan Liu wrote: > >> On Tue, Jun 14, 2011 at 1:40 PM, Dominik Zyla > >> wrote: > >> > Hello grou

Re: [Puppet Users] Question about custom function.

2011-06-14 Thread Dominik Zyla
On Tue, Jun 14, 2011 at 02:04:33PM -0700, Nan Liu wrote: > On Tue, Jun 14, 2011 at 1:40 PM, Dominik Zyla wrote: > > Hello group, > > > > I'm trying to generate configuration for tomcat server. I want it to > > depend on my mod_jk properties file. I wrote some sim

[Puppet Users] Question about custom function.

2011-06-14 Thread Dominik Zyla
rb against puppet file, I see there's no data loaded into `filename' hash. When I run `puppetd -tv' on client, I've got timeout (after 120 seconds which is default), but puppet master is still running (spawned by passanger) until it got killed by oom-killer. Please, give me