Re: [Puppet Users] yum.puppetlabs.com rsync problem

2011-07-18 Thread Marcin Trendota
Zach Leslie wrote: > The rsync config should be sorted now. Give a test and let us know > if there are any issues. It works like a charm now, thank you! -- Best regards Marcin Trendota -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post

Re: [Puppet Users] Control the sequence of module execution

2011-07-18 Thread Denmat
Hi, You can use the following: require statements "require => Class[blah]" Ordering in your classes Resource[blah] -> resource[blat] Stages class {blah: stage => pre } class {blat: stage => post} But you mileage may vary depending on what you are doing. Cheers, Den On 19/07/2011, at 12

Re: [Puppet Users] Control the sequence of module execution

2011-07-18 Thread Scott Smith
Don't run mysql commands in Puppet. On Mon, Jul 18, 2011 at 7:32 PM, newguy wrote: > Hey Guys > I was wondering how can I control the order of execution of various > modules on the puppet client. > Suppose I have a module A which installs mysql and there is module B > which executes mysql comman

[Puppet Users] Control the sequence of module execution

2011-07-18 Thread newguy
Hey Guys I was wondering how can I control the order of execution of various modules on the puppet client. Suppose I have a module A which installs mysql and there is module B which executes mysql commands of importing DB, so how can I ensure that module A is executed before module B. Please help

Re: [Puppet Users] Re: Ruby script to download files without 'puppet agent'

2011-07-18 Thread Nigel Kersten
On Mon, Jul 18, 2011 at 3:45 PM, Nick Fagerlund wrote: > You're not the only one -- I've never gotten a puppet apply shebang > line to work. I investigated around the office, and I think what I > found was that everyone remembered it having worked at some point in > the unspecified past, but no on

Re: [Puppet Users] Ensuring specific yum repos

2011-07-18 Thread Nan Liu
On Mon, Jul 18, 2011 at 7:38 PM, Justin Lambert wrote: > I know I am not the first to run into this problem, but I cannot seem to > find an elegant way to solve it - either through Google or on my own. > I want to ensure that the yum repos I define through Yumrepo are the only > repos on the machi

Re: [Puppet Users] Re: Problem with usage of arrays

2011-07-18 Thread Nan Liu
On Mon, Jul 18, 2011 at 8:11 PM, Bob wrote: > I know it's a ugly hack, but this saved me: > > $myarray = ['1', '2', '3'] > > $var0 = inline_template("<%=myarray.split(',')[0]%>") > $var1 = inline_template("<%=myarray.split(',')[1]%>") Should this be: $var0 = inline_template("<%=myarray[0]%>") If

Re: [Puppet Users] Vscrepo and templates

2011-07-18 Thread Nan Liu
On Mon, Jul 18, 2011 at 6:08 PM, Dan Hanks wrote: > Hi there, > I'm using an older puppet (0.25) and vcsrepo. I'm trying to do something > like this (client-side only, no master involved): > vcsrepo { >   "/svn/checkout/": >   source => svn://host/path, >   revision => $revision, >   ensure => pre

[Puppet Users] Re: Problem with usage of arrays

2011-07-18 Thread Bob
I know it's a ugly hack, but this saved me: $myarray = ['1', '2', '3'] $var0 = inline_template("<%=myarray.split(',')[0]%>") $var1 = inline_template("<%=myarray.split(',')[1]%>") -- Bob -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post

[Puppet Users] Ensuring specific yum repos

2011-07-18 Thread Justin Lambert
I know I am not the first to run into this problem, but I cannot seem to find an elegant way to solve it - either through Google or on my own. I want to ensure that the yum repos I define through Yumrepo are the only repos on the machine (removing any that might be on there for other reasons). I

Re: [Puppet Users] Installing from source, not a package

2011-07-18 Thread chiggsy
use fpm . You still should know how to make a package, but fpm will make one from a gem, or sources. If you are i a rush, that is. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this

[Puppet Users] Re: ruby DSL and calling defines.

2011-07-18 Thread denmat
2.6.9, if it helps :) On Jul 18, 12:44 pm, tu2bg...@gmail.com wrote: > Hi all, > > Wonder if there is a quick answer to the following question: > > What I am trying to do is use the ymllookup function to get a list of php   > ini values to set. > > php_ini: > engine: On > short_open_tag: On > asp_

[Puppet Users] Re: Ruby script to download files without 'puppet agent'

2011-07-18 Thread Nick Fagerlund
You're not the only one -- I've never gotten a puppet apply shebang line to work. I investigated around the office, and I think what I found was that everyone remembered it having worked at some point in the unspecified past, but no one could specify a version where it definitely worked, and it cer

Re: [Puppet Users] yum.puppetlabs.com rsync problem

2011-07-18 Thread Zach Leslie
The rsync config should be sorted now. Give a test and let us know if there are any issues. Thank you, On Mon, Jul 18, 2011 at 2:13 PM, Zach Leslie wrote: > We recently moved our yum repo to a new server, and the rsync config didn't > make it over to the new box. I'll look at the config tod

[Puppet Users] Vscrepo and templates

2011-07-18 Thread Dan Hanks
Hi there, I'm using an older puppet (0.25) and vcsrepo. I'm trying to do something like this (client-side only, no master involved): vcsrepo { "/svn/checkout/": source => svn://host/path, revision => $revision, ensure => present, provider => "svn" } file { "my_file": path => "/pa

Re: [Puppet Users] yum.puppetlabs.com rsync problem

2011-07-18 Thread Zach Leslie
We recently moved our yum repo to a new server, and the rsync config didn't make it over to the new box. I'll look at the config today and try to get that going again. Apologies for any trouble. On Mon, Jul 18, 2011 at 7:04 AM, Marcin Trendota wrote: > I have local mirror of puppet repositor

[Puppet Users] yum.puppetlabs.com rsync problem

2011-07-18 Thread Marcin Trendota
I have local mirror of puppet repository - i'm syncing it with: 'rsync -av --exclude SRPMS --exclude sources --delete yum.puppetlabs.com::packages/yum puppet' - which worked until a few weeks ago. Now it gives me an error: 'rsync: failed to connect to yum.puppetlabs.com (96.126.116.126): Connec

[Puppet Users] Error with puppet in OSX 10.7 GM release

2011-07-18 Thread robe...@luma-pictures.com
I have installed puppet on my new OSX 10.7 machine I have installed Puppet version 2.6.8 from a gem and facter 1.6.0 installed from a gem my puppet.conf file is as follows [main] vardir = /private/var/puppet logdir = /var/log/puppet rundir = /var/run/puppet ssldir = $vardir/ssl pluginsync = true

Re: [Puppet Users] Ruby script to download files without 'puppet agent'

2011-07-18 Thread vagn scott
On 07/18/2011 11:27 AM, zu...@puzzle.ch wrote: I saw that some use the shebang "#!/usr/bin/puppet apply" to start such manifests directly as a script. This does not seam to work for me. All i get is: If your script name is foo, and you have "#!/usr/bin/puppet apply" as the first line, then yo

Re: [Puppet Users] Ruby script to download files without 'puppet agent'

2011-07-18 Thread zuber
>> On Mon, Jun 27, 2011 at 7:27 AM, wrote: >> >>> We have often the Problem that some files need to be checked for >>> updates >>> faster than the cycle of the puppet agent. I try to solve this with a >>> script which tries to download the files directly from the fileserver >>> of >>> the puppetma