[Puppet Users] Triage-a-thon - 1/21/2012

2012-01-20 Thread James Turnbull
Hi all We're really excited about the Triage-a-thon tomorrow. It's going to kick off at 7am PST and go to 4pm PST. We're going to be in the Puppet Labs offices in Portland (Suite 500 411 NW Park), #puppethack channel on Freenode and available via email on the various Puppet Lists and announcing

Re: [Puppet Users] pass values to puppet-lvm

2012-01-20 Thread krish
> like shouldn't something like this work?? > > puppet-lvm {'setvolume': >        vg => 'myvg', >        pv => '/dev/sdb', >        fstype => 'ext3', >        name => 'mylv', >        size =>'8G', >        } > > > https://github.com/puppetlabs/puppet-lvm The module is has a define like this: defin

Re: [Puppet Users] Re: client not getting updates no error message

2012-01-20 Thread Christopher McCoy
What happens when you run this: puppet apply networking/manifests/init.pp -d -e 'include networking::resolver' On Fri, Jan 20, 2012 at 8:41 PM, bhagyesh wrote: > file/manifest/init.pp is a class but its not yet included in the > templete so can be left alone as of now > > and the file /tmp/resol

[Puppet Users] Re: client not getting updates no error message

2012-01-20 Thread bhagyesh
file/manifest/init.pp is a class but its not yet included in the templete so can be left alone as of now and the file /tmp/resolve.conf dosent exist but still I am not getting any output On Jan 21, 3:46 am, Christopher McCoy wrote: > Ok, so I'm looking at this again. > > what is in file/manife

[Puppet Users] Trying to understand how mcollective differs from saltstack?

2012-01-20 Thread Brian Gupta
http://saltstack.org/ http://puppetlabs.com/mcollective/ I found this link that talks about Func, Rundeck, Salt and mcollective, but it doesn't really compare and contrast. http://www.coloandcloud.com/editorial/func-mcollective-salt-and-rundeck/(From a 10,000 overview Saltstack and mcollective loo

Re: [Puppet Users] Re: pass values to puppet-lvm

2012-01-20 Thread Walter Heck
Judging from the things you wrote here, you need a bit more understanding of how puppet works with modules. Also, I see that that specific module implements a define called lvm::volume, so your manifest should be implementing a resource like so: lvm::volume {'setvolume':         vg => 'myvg',  

Re: [Puppet Users] Re: RFC: Deprecate defined() function for Telly.

2012-01-20 Thread Aaron Grewell
On Fri, Jan 20, 2012 at 2:49 PM, Aaron Grewell wrote: > > Are we sure it can't be fixed?  What makes defined() so different from > the code that implements require?  Shouldn't "if  not defined" be the > same as "if a require would fail"?  That seems to be what people are > expecting, why not give

Re: [Puppet Users] windows filepath error

2012-01-20 Thread Josh Cooper
Hi, On Fri, Jan 20, 2012 at 2:47 PM, tborthwick wrote: > Hello, > > I've set up a puppetmaster on red hat and a client on windows 7 > (puppet version 2.7.9 on both), and I'm getting this error when I run > puppet agent --server --waitforcert 60 --test: > > info: Applying configuration version '

Re: [Puppet Users] Re: RFC: Deprecate defined() function for Telly.

2012-01-20 Thread Aaron Grewell
On Fri, Jan 20, 2012 at 2:34 PM, Cody wrote: > Defining all somewhat common packages in a central location becomes > unrealistic when you no longer "control" the code that is in every > module you use.  If you obtain five modules from the forge and they > all require a specific package and so all

[Puppet Users] windows filepath error

2012-01-20 Thread tborthwick
Hello, I've set up a puppetmaster on red hat and a client on windows 7 (puppet version 2.7.9 on both), and I'm getting this error when I run puppet agent --server --waitforcert 60 --test: info: Applying configuration version '1327098121' err: /Stage[main]/Win_test/Package[win_test]/ensure: chang

Re: [Puppet Users] client not getting updates no error message

2012-01-20 Thread Christopher McCoy
Ok, so I'm looking at this again. what is in file/manifests/init.pp? you ran a puppet apply on it, but never showed us what is in it, so it could just be class file { } And lastly, does the file /tmp/resolv.conf already exist? If so you won't see anything output. On Fri, Jan 20, 2012 at 3:50 PM,

[Puppet Users] Re: RFC: Deprecate defined() function for Telly.

2012-01-20 Thread Cody
On Jan 20, 6:39 am, jcbollinger wrote: > On Jan 20, 3:00 am, Dan Bode wrote: > > > * the big reason I keep on leaning on it is for package dependencies. Often > > something needs an additional package installed (and it is possible that > > other modules may have that same package dependency, an

Re: [Puppet Users] any cobbler management modules out there?

2012-01-20 Thread Nick
On 20/01/12 19:05, Ashley Penney wrote: > While this isn't what you want to hear, exactly, there's a bootstrapping tool > that > works fantastic with Puppet at http://www.theforeman.org/ - it's probably why > you don't see many cobbler modules. People like me who used cobbler when > starting out

Re: [Puppet Users] any cobbler management modules out there?

2012-01-20 Thread Dan White
You are correct. I do not want to hear about another tool. I am currently working in a pro-Microsoft-anti-Anything-Else environment that still uses a boatload of Linux servers to do all the "Ditch Digging". I have had a tough time convincing them to use this. I have looked at Foreman. My fir

[Puppet Users] Re: client not getting updates no error message

2012-01-20 Thread bhagyesh
y a i know that ! but it should show what it will do if --noop is not applied. On Jan 21, 1:58 am, Christopher McCoy wrote: > --noop means no operation > On Jan 20, 2012 3:50 PM, "bhagyesh" wrote: > > > > > whenever i run a test from client it finishes sucessfully but client > > is not getting a

Re: [Puppet Users] client not getting updates no error message

2012-01-20 Thread Christopher McCoy
--noop means no operation On Jan 20, 2012 3:50 PM, "bhagyesh" wrote: > whenever i run a test from client it finishes sucessfully but client > is not getting any configuration changes from server > > [root@PROXY-02 tmp]# puppetd --noop --test > notice: Ignoring --listen on onetime run > info: Cach

[Puppet Users] client not getting updates no error message

2012-01-20 Thread bhagyesh
whenever i run a test from client it finishes sucessfully but client is not getting any configuration changes from server [root@PROXY-02 tmp]# puppetd --noop --test notice: Ignoring --listen on onetime run info: Caching catalog for proxy-02.carnation.in info: Applying configuration version '132709

Re: [Puppet Users] any cobbler management modules out there?

2012-01-20 Thread Garrett Honeycutt
On 1/20/12 2:34 AM, Nick wrote: > Hi, > > I've been looking for a module for Cobbler, one which allows me to install a > kickstart mirror, configure the repos, distros, profiles and systems, as well > the basic settings. > > I found: > > - A very old thread started by Sven Muller about writing

Re: [Puppet Users] any cobbler management modules out there?

2012-01-20 Thread Ashley Penney
While this isn't what you want to hear, exactly, there's a bootstrapping tool that works fantastic with Puppet at http://www.theforeman.org/ - it's probably why you don't see many cobbler modules. People like me who used cobbler when starting out with Puppet migrated off to Foreman with time. On

Re: [Puppet Users] any cobbler management modules out there?

2012-01-20 Thread Nick
On 20/01/12 13:57, Dan White wrote: > I am running Cobbler and Puppet together and I am not sure that a Puppet > Module is appropriate for more than just the base settings. > > Cobbler manages all its internal info. To get Puppet to manage it would, > IMO, either involve hacking Cobbler or wrappi

Re: [Puppet Users] Scaling Puppet ?

2012-01-20 Thread Doug Chapman
There are some good write ups on this topic at: http://docs.puppetlabs.com/guides/environment.html http://puppetlabs.com/blog/git-workflow-and-puppet-environments/ You are certainly not the first to use this type of workflow. On Fri, Jan 20, 2012 at 6:10 AM, Dan White wrote: > Thanks for respon

[Puppet Users] Re: RFC: Deprecate defined() function for Telly.

2012-01-20 Thread jcbollinger
On Jan 20, 3:38 am, Nan Liu wrote: > So there is a patch for your specific use case. We should at least > differentiate defined vs. declared and a patch was written to split > off defined() vs. declared(): > > http://projects.puppetlabs.com/issues/3124 > > The warning is simply: > > Puppet.warni

[Puppet Users] Re: RFC: Deprecate defined() function for Telly.

2012-01-20 Thread jcbollinger
On Jan 20, 3:00 am, Dan Bode wrote: > * the big reason I keep on leaning on it is for package dependencies. Often > something needs an additional package installed (and it is possible that > other modules may have that same package dependency, and I don't want to > have to create a new class eve

[Puppet Users] Re: RFC: Deprecate defined() function for Telly.

2012-01-20 Thread jcbollinger
On Jan 19, 2:17 pm, Nick Fagerlund wrote: > On Jan 19, 11:01 am, "R.I.Pienaar" wrote: > > > - Original Message - > > > Defined() doesn't suck! It's a 100% reliable way to check what > > > classes and defined types are available to the autoloader. I challenge > > > anyone > > > to find

Re: [Puppet Users] Re: RFC: Deprecate defined() function for Telly.

2012-01-20 Thread Ashley Penney
What would you recommend as an alternative way to handle these cases? I suppose the mysql lib could be extended to be able to check for users (not easily, but it could be done), but what about in the second case where I want to check for various roles being set as classes and then use those to dec

Re: [Puppet Users] Scaling Puppet ?

2012-01-20 Thread Dan White
Thanks for responding. This approach is similar to one of the (messy) ideas I have. It seems to me that there are no built-in features that will let me do this, so I am (once again) trail-blazing. I like the idea of the Dev/Overlord PM using Puppet/(revision control) to run the Deputy PM's. T

[Puppet Users] Re: How to handle multiple modules requiring the same packages

2012-01-20 Thread jcbollinger
On Jan 20, 4:34 am, Alessandro Franceschi wrote: > I add my 2 cents. > The alternatives proposed in the replies are ok for me, just would like to > express an alternative approach that I''ve used in some situations. > It's due to different factors: > - Many packages to manage (but not necessaril

Re: [Puppet Users] any cobbler management modules out there?

2012-01-20 Thread Dan White
I am running Cobbler and Puppet together and I am not sure that a Puppet Module is appropriate for more than just the base settings. Cobbler manages all its internal info. To get Puppet to manage it would, IMO, either involve hacking Cobbler or wrapping Cobbler command line calls in Puppet "ex

[Puppet Users] Re: pass values to puppet-lvm

2012-01-20 Thread Luke
I am finding the documentation pretty poor on this. Can someone please help? I don't understand why I can't pass my variables. On Jan 17, 10:56 am, Luke wrote: > i would like to use the module puppet-lvm and would like to pass > values to it. > > I have it setup properly as a module but I can't

Re: [Puppet Users] Scaling Puppet ?

2012-01-20 Thread Luke Bigum
Hi Dan, A lot of people use a revision control system like SVN or Git, and each Puppet Master independently pulls a revision of Puppet code from this repository. You could manually control or setup some automatic method of upgrading your QA and prod machines to certain revisions. Your Dev pup

[Puppet Users] any cobbler management modules out there?

2012-01-20 Thread Nick
Hi, I've been looking for a module for Cobbler, one which allows me to install a kickstart mirror, configure the repos, distros, profiles and systems, as well the basic settings. I found: - A very old thread started by Sven Muller about writing a cobbler provider http://groups.google.com/grou

[Puppet Users] Re: How to handle multiple modules requiring the same packages

2012-01-20 Thread Alessandro Franceschi
I add my 2 cents. The alternatives proposed in the replies are ok for me, just would like to express an alternative approach that I''ve used in some situations. It's due to different factors: - Many packages to manage (but not necessarily) - Option to include a module in an existing module set, wh

Re: [Puppet Users] Re: RFC: Deprecate defined() function for Telly.

2012-01-20 Thread Nan Liu
On Thu, Jan 19, 2012 at 12:17 PM, Nick Fagerlund wrote: > > > On Jan 19, 11:01 am, "R.I.Pienaar" wrote: >> - Original Message - >> > Defined() doesn't suck! It's a 100% reliable way to check what >> > classes and defined types are available to the autoloader. I challenge >> > anyone >> >

Re: [Puppet Users] RFC: Deprecate defined() function for Telly.

2012-01-20 Thread Felix Frank
Hi Dan, sorry if I come around bluntly about this, but: On 01/20/2012 10:00 AM, Dan Bode wrote: > * static resources in a defined resource type (avoids having to use > classes to store all static dependencies) > > * the big reason I keep on leaning on it is for package dependencies. > Often some

Re: [Puppet Users] RFC: Deprecate defined() function for Telly.

2012-01-20 Thread Dan Bode
How about deprecating defined?(Type['title']), but allowing it to accept a resource hash? This would definitely satisfy my use cases while alleviating concerns about resource attribute conflicts/parse order dependencies if defined?( { package['foo'] => { ensure => present } } ) { package

Re: [Puppet Users] RFC: Deprecate defined() function for Telly.

2012-01-20 Thread Dan Bode
I wind up using defined more than I should probably admit. yes it is dangerous/confusing b/c of parse order dependencies, but it is also really useful for a few use cases * static resources in a defined resource type (avoids having to use classes to store all static dependencies) * the big reason

Re: [Puppet Users] Re: RFC: Deprecate defined() function for Telly.

2012-01-20 Thread Felix Frank
But this is begging for trouble: On 01/19/2012 09:22 PM, Ashley Penney wrote: > An example: > > if ! defined(Mysql_user ["${user}@${host}"]) { > mysql_user { "${user}@${host}": > password_hash => mysql_password($password), > require => File["/root/.my.cnf"], > } >