Re: [Puppet Users] Augeas lens for zabbix agent config files?

2012-01-23 Thread Dominic Cleal
Hi Walter, [ CCing the augeas-devel list, as that's the best place for Augeas lens problems and help ] On 22/01/12 20:48, Walter Heck wrote: > Hi all, > > I'm trying to come up with a lens for the zabbix agent config files. I > find the lens language untransparent at best, so I'm struggeling to

Re: [Puppet Users] Augeas lens for zabbix agent config files?

2012-01-23 Thread Walter Heck
Thanks for the pointers Dominic, I'll check them out later this week and report back with my findings! On Mon, Jan 23, 2012 at 11:34, Dominic Cleal wrote: > Hi Walter, > > [ CCing the augeas-devel list, as that's the best place for Augeas lens > problems and help ] > > On 22/01/12 20:48, Walter H

[Puppet Users] Template Help Please

2012-01-23 Thread ollies...@googlemail.com
Hello, I am trying to setup a template with data being passed in as a long string of data which is being returned via extlookup() i.e. $resolvers = "10.10.10.10 11.11.11.11.12.12.12.12" The template should split those up and put a nameserver entry per line in /etc/resolv.conf I have this in the

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

2012-01-23 Thread Felix Frank
Hi, On 01/20/2012 11: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 defin

Re: [Puppet Users] Template Help Please

2012-01-23 Thread Denmat
Hi, Is that variable declaration copied correctly? > $resolvers = "10.10.10.10 11.11.11.11.12.12.12.12" Should be > $resolvers = "10.10.10.10 11.11.11.11 12.12.12.12" what's that do for you? Cheers Den On 23/01/2012, at 22:57, "ollies...@googlemail.com" wrote: > Hello, > > I am trying to s

[Puppet Users] Re: Template Help Please

2012-01-23 Thread ollies...@googlemail.com
On Jan 23, 1:17 pm, Denmat wrote: > Hi, > > Is that variable declaration copied correctly? > > > $resolvers = "10.10.10.10 11.11.11.11.12.12.12.12" > > Should be> $resolvers = "10.10.10.10 11.11.11.11 12.12.12.12" > > what's that do for you? > That was a typo in my original mail. The syntax pro

Re: [Puppet Users] Template Help Please

2012-01-23 Thread Felix Frank
Absolutely beats me. Is this a verbatim paste from your template? Are you certain that the template is the source of the error? Does it say anything beyond "syntax error"? Just pasting puppet output would be ideal. Cheers, Felix On 01/23/2012 12:57 PM, ollies...@googlemail.com wrote: > I have t

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

2012-01-23 Thread bhagyesh
guys any other suggestions ?still i am not able to find the error. On Jan 22, 12:02 am, bhagyesh wrote: > [root@PROXY-03 puppet]# puppet apply networking/manifests/init.pp -d - > e 'include networking::resolver' > debug: importing '/etc/puppet/modules/networking/manifests/init.pp' in > environmen

[Puppet Users] Re: Template Help Please

2012-01-23 Thread ollies...@googlemail.com
On Jan 23, 1:32 pm, Felix Frank wrote: > Absolutely beats me. > > Is this a verbatim paste from your template? > Are you certain that the template is the source of the error? > Does it say anything beyond "syntax error"? > > Just pasting puppet output would be ideal. > host: parse of /etc/resol

[Puppet Users] Re: windows filepath error

2012-01-23 Thread tborthwick
Thanks, I didn't realize it had to be a local file. On Jan 20, 5:07 pm, Josh Cooper wrote: > 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 get

[Puppet Users] I just discovered I cannot resource-purge yumrepos -- Is there another way ?

2012-01-23 Thread Dan White
I added a bunch of yumrepo resources to my node definitions and thought I'd finish it with a resources { 'yumrepo': purge => true, } But when I tried to run it, I get this: err: Failed to apply catalog: Parameter purge failed: Purging is only supported on types that accept 'ensure' at /etc/pu

[Puppet Users] What's the proper puppet way to reference definition resource WITHOUT calling it from site/node.pp

2012-01-23 Thread Kenneth Lo
The way my environment setup is that we have puppet dashboard handles ALL node registration as well as class assignment. We simply declare different groups, assign them with classes, and assign nodes into those groups for different roles. So we have zero usage for another node resources and we

[Puppet Users] Another Discovered/Undocumented feature of yumrepo - and a workaround

2012-01-23 Thread Dan White
I was working with yumrepo, defining new entried and seeing them appear in /etc/yum.repos.d After considerable tinkering, and with the sad discovery that resource { 'yumrepo': purge => true } does not work, I moved my working /etc/yum.repos.d to /etc/yum.repos.d-old and re-ran my catalog. To

Re: [Puppet Users] Another Discovered/Undocumented feature of yumrepo - and a workaround

2012-01-23 Thread Gary Larizza
Hey there, If you're going through all that, and are trying to get a purge-able directory of resources, would you find it easier to declare the /etc/yum.repos.d directory with purge => true, and then declare your repos as file declarations? An exec of 'yum -makecache' set to refreshonly => true co

Re: [Puppet Users] Another Discovered/Undocumented feature of yumrepo - and a workaround

2012-01-23 Thread R.I.Pienaar
- Original Message - > Hey there, > > If you're going through all that, and are trying to get a purge-able > directory of resources, would you find it easier to declare the > /etc/yum.repos.d directory with purge => true, and then declare your > repos as file declarations? An exec of 'yu

Re: [Puppet Users] Re: Template Help Please

2012-01-23 Thread Felix Frank
On 01/23/2012 02:48 PM, ollies...@googlemail.com wrote: > host: parse of /etc/resolv.conf failed > ./resolver/templates/resolv.conf.erb:7:in `result': compile error > (SyntaxError) > ./resolver/templates/resolv.conf.erb:4: syntax error > _erbout.concat(( scope.lookupvar('resolver::params::resolvers

Re: [Puppet Users] Re: windows filepath error

2012-01-23 Thread Josh Cooper
On Mon, Jan 23, 2012 at 6:55 AM, tborthwick wrote: > Thanks, I didn't realize it had to be a local file. I've updated the package description on the Windows wiki page: http://projects.puppetlabs.com/projects/puppet/wiki/Puppet_Windows?version=63 Josh -- Josh Cooper Developer, Puppet Labs --

[Puppet Users] difficulty installing dashboard.

2012-01-23 Thread Peter Berghold
Using the instructions I found here: http://docs.puppetlabs.com/guides/installing_dashboard.html I've run into a snag at the point where you run: rake RAILS_ENV=production db:migrate It fails with the following error: puppet-dashboard]# rake RAILS_ENV=production db:migrate (in /root/puppet-dash

Re: [Puppet Users] Another Discovered/Undocumented feature of yumrepo - and a workaround

2012-01-23 Thread Dan White
Yes, I could do it that way and I did before i realized that there was a yumrepo resource. Let me try a different approach: Is there something in the yumrepo resource definition that will let me remove the info from the system ? I can live with just disabling the repo, but I have some rabid s

Re: [Puppet Users] Another Discovered/Undocumented feature of yumrepo - and a workaround

2012-01-23 Thread Dan White
- R.I.Pienaar wrote: > - Original Message - > > Hey there, > > > > If you're going through all that, and are trying to get a purge-able > > directory of resources, would you find it easier to declare the > > /etc/yum.repos.d directory with purge => true, and then declare your > > repo

Re: [Puppet Users] I just discovered I cannot resource-purge yumrepos -- Is there another way ?

2012-01-23 Thread Stefan Schulte
On Mon, Jan 23, 2012 at 03:09:49PM +, Dan White wrote: > I added a bunch of yumrepo resources to my node definitions and thought I'd > finish it with a > > resources { 'yumrepo': purge => true, } > > But when I tried to run it, I get this: > > err: Failed to apply catalog: Parameter purge

Re: [Puppet Users] I just discovered I cannot resource-purge yumrepos -- Is there another way ?

2012-01-23 Thread Dan White
That the problem is known is a comfort. I will trash my way around it one way or another, and if I come up with any neato tricks for removal of a repo, I will contact the list and/or the Feature Assignee :) “Sometimes I think the surest sign that intelligent life exists elsewhere in the unive

[Puppet Users] Re: Template Help Please

2012-01-23 Thread ollies...@googlemail.com
On Jan 23, 4:32 pm, Felix Frank wrote: > On 01/23/2012 02:48 PM, ollies...@googlemail.com wrote: > > > host: parse of /etc/resolv.conf failed > > ./resolver/templates/resolv.conf.erb:7:in `result': compile error > > (SyntaxError) > > ./resolver/templates/resolv.conf.erb:4: syntax error > > _erbo

Re: [Puppet Users] Re: Template Help Please

2012-01-23 Thread Guy Matz
Is your issue resolved? It looks like you don't have the correct erb syntax in your loop *<%=* scope.lookupvar('resolver::params::resolvers').split(/\s+/).each I think should be *<%* scope.lookupvar('resolver::params::resolvers').split(/\s+/).each On Mon, Jan 23, 2012 at 4:00 PM, ollies...@go

[Puppet Users] best practices for caching packages on EC2

2012-01-23 Thread Rayson Ho
While Puppet allows us to manage a large number of instances on EC2, what are the best practices for caching packages on EC2?? Instead of manually configuring yum or apt proxies on each node, it would save us lots of time if caching could be "somehow" handled by Puppet. Are there any plans to add

Re: [Puppet Users] difficulty installing dashboard.

2012-01-23 Thread Michael Stahnke
What version of rubygems do you have? I suspect there is some type of mismatch somewhere, but I could be wrong. More information would be great: OS ruby version rubygems version gem list Thanks stahnma On Mon, Jan 23, 2012 at 9:07 AM, Peter Berghold wrote: > Using the instructions I found h

Re: [Puppet Users] best practices for caching packages on EC2

2012-01-23 Thread Michael Stahnke
On Mon, Jan 23, 2012 at 1:21 PM, Rayson Ho wrote: > While Puppet allows us to manage a large number of instances on EC2, > what are the best practices for caching packages on EC2?? > > Instead of manually configuring yum or apt proxies on each node, it > would save us lots of time if caching could

Re: [Puppet Users] best practices for caching packages on EC2

2012-01-23 Thread Rayson Ho
On Mon, Jan 23, 2012 at 5:14 PM, Michael Stahnke wrote: > How would Puppet handle it?  It would still have to either cache the > package locally (eating lots of disk space) or point to a proxy, which > you can do with Puppet already.  Your simplest solution might be to > look for a mirror hosted i

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

2012-01-23 Thread Nigel Kersten
On Mon, Jan 23, 2012 at 5:15 AM, Felix Frank < felix.fr...@alumni.tu-berlin.de> wrote: > Hi, > > On 01/20/2012 11: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. I

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

2012-01-23 Thread Ashley Penney
Nigel, Just so we understand the requirements of this - what would it take to make a function that is usable in way that a few of us have mentioned - something that lets us say "If a class is included in this host, then X". It seems like this would be desirable functionality and so far everything

[Puppet Users] Module to mount LUKS encrypted drives

2012-01-23 Thread Jared Curtis
I've created a module to manage mounting LUKS encrypted devices at https://github.com/jaredcurtis/puppet-encmount It's a wrapper around the existing mount type and accepts the additional input needed to unlock the LUKS device (key and mapper name). It's untested outside of CentOS and does use some

Re: [Puppet Users] I just discovered I cannot resource-purge yumrepos -- Is there another way ?

2012-01-23 Thread Eric Sorenson
This is sort of hackish but not too bad... set a list of file resources that are the resultant names of the /etc/yum.repos.d/.repo files, and purge everything else in that directory. class yum::cleanup { # shorthand for the repo directory $rd = "/etc/yum.repos.d" # clean the yum.rep

[Puppet Users] Re: Template Help Please

2012-01-23 Thread ollies...@googlemail.com
On Jan 23, 9:07 pm, Guy Matz wrote: > Is your issue resolved?  It looks like you don't have the correct erb > syntax in your loop > > *<%=* scope.lookupvar('resolver::params::resolvers').split(/\s+/).each > > I think should be > > *<%* scope.lookupvar('resolver::params::resolvers').split(/\s+/).

[Puppet Users] Re: Template Help Please

2012-01-23 Thread ollies...@googlemail.com
On Jan 24, 7:14 am, "ollies...@googlemail.com" wrote: > On Jan 23, 9:07 pm, Guy Matz wrote: > > > Is your issue resolved?  It looks like you don't have the correct erb > > syntax in your loop > > > *<%=* scope.lookupvar('resolver::params::resolvers').split(/\s+/).each > > > I think should be >