Re: [Puppet Users] Re: Puppet custom function for arithmetic operation

2014-11-07 Thread Ashish Jaiswal
Hi John, Thanks for the pointer, for workaround I used the inline_template function to work. Thanks for the piece of code. I will try this once I reach office, that would be on Monday. On Fri, Nov 7, 2014 at 7:41 PM, jcbollinger wrote: On Friday, November 7, 2014 5:15:23 AM UTC-6, Ashis

Re: [Puppet Users] puppet 3.6.2, parse time error about storeconfigs

2014-11-07 Thread Henrik Lindberg
On 2014-07-11 1:14, Tristan Smith wrote: Thanks, I failed to find it in Jira. Glad to know it's something already in the roadmap. Yeah, it is in a ticket that is about removing validation from the grammar (or somesuch). - henrik On Wed, Nov 5, 2014 at 5:10 PM, Henrik Lindberg mailto:henrik.

Re: [Puppet Users] Re: creating hashes from other hashes

2014-11-07 Thread Henrik Lindberg
On 2014-07-11 23:43, Tim Mooney wrote: In regard to: [Puppet Users] Re: creating hashes from other hashes, Luke...: Huh, at first glance that to me looks like a parser bug. Not so much a bug as an unessesary constraint. This is changed in Puppet 4.0 (and when using --parser future in late 3x

Re: [Puppet Users] Re: Puppetmaster can't keep up with our 1400 nodes.

2014-11-07 Thread Wil Cooley
On Nov 4, 2014 7:32 AM, "Georgi Todorov" wrote: > > I agree, there is something odd about File retrieval. We are creating a total of 10 autofs maps, however when I run trace, it looks like every separate entry creates a concat::fragment (puppetlabs-concat) which is later combined into a single fil

Re: [Puppet Users] Re: creating hashes from other hashes

2014-11-07 Thread Denmat
You don't need to disable lint entirely, you could just disable that check condition. http://puppet-lint.com/checks/documentation/ Den > On 8 Nov 2014, at 9:43, Tim Mooney wrote: > > In regard to: [Puppet Users] Re: creating hashes from other hashes, Luke...: > >> Huh, at first glance that to

[Puppet Users] Re: Puppet with VMWare ESX

2014-11-07 Thread TheNerd
Hi Dbs, Would you mind sharing how you do this either in the thread of offline? Thanks. On Sunday, June 13, 2010 8:53:32 AM UTC-7, dbs wrote: > > On Jun 13, 11:39 am, Jens Meydam wrote: > > We have invested heavily in virtualization infrastructure, in > > particular VMWare ESX. How well does

[Puppet Users] puppet rspec Could not find template

2014-11-07 Thread Jalil Mohammed
I am writing a spec for a module and one of my template is on the puppet server. My test keeps failing with "Could not find template" locally. Any way to get around this issue? Perhaps a better way? Thank you -- You received this message because you are subscribed to the Google Groups "

Re: [Puppet Users] Re: creating hashes from other hashes

2014-11-07 Thread Tim Mooney
In regard to: [Puppet Users] Re: creating hashes from other hashes, Luke...: Huh, at first glance that to me looks like a parser bug. That's what I was thinking too. Now that I think more on it I seem to recall this coming up before. The $name of a Defined Type is not of type String, and Pup

Re: [Puppet Users] Re: Puppet 3 scoping question

2014-11-07 Thread Felix Frank
On 11/07/2014 07:40 PM, Bill MacAllister wrote: >> >> define something::specific($group) { >> file { "/things/$group/$name": } >> if !defined( File["/things/$group"] ) { >> file { "/things/$group": ensure => directory } >> } >> } > > Yes, I like that. Let me know when I can us

Re: [Puppet Users] Re: Puppet 3 scoping question

2014-11-07 Thread Bill MacAllister
--On Friday, November 07, 2014 06:39:41 PM +0100 Felix Frank wrote: On 11/07/2014 03:40 PM, jcbollinger wrote: If you need to support multiple some::fun_instances, with some but not all sharing any given $sname (i.e. a many to many relationship), then you're going to need to make deeper cha

Re: [Puppet Users] Re: Puppet 3 scoping question

2014-11-07 Thread Felix Frank
On 11/07/2014 03:40 PM, jcbollinger wrote: > If you need to support multiple some::fun_instances, with some but not > all sharing any given $sname (i.e. a many to many relationship), then > you're going to need to make deeper changes. Yeah. FWIW, this is the one use case that worries me most when

[Puppet Users] puppetlabs/firewall and firewalld

2014-11-07 Thread Gary Jackson
Are there any plans to support firewalld with puppetlabs/firewall? If so, when would we expect to see that materialize? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an em

[Puppet Users] Re: Puppet invoking yum with a proxy inconsistently

2014-11-07 Thread jcbollinger
On Thursday, November 6, 2014 11:57:08 AM UTC-6, mer...@mrc-mbu.cam.ac.uk wrote: > > Greetings > > This is my first post here, so hi everyone! > > I have been using puppet to manage our fleet of 120 Macs for a few years > now and have recently decided to setup a new TheForeman installation to

[Puppet Users] Re: Puppet 3 scoping question

2014-11-07 Thread jcbollinger
On Thursday, November 6, 2014 8:30:16 PM UTC-6, w...@stanford.edu wrote: > > In puppet 2.7 we use the following construct. > > define some::fun( > ensure => present, > sname => 'some.server.com' > This isn't the source of your problem, but do be aware that setting default parameter values

Re: [Puppet Users] puppet agent upgrade with puppet module

2014-11-07 Thread Felix Frank
On 11/07/2014 01:26 PM, Pete Brown wrote: > I do have a client that is still running 2.7 on CentOS 5 so thanks for > the heads up. :) The RPMs might generally handle this more gracefully than the debs. I cannot comment on that. -- You received this message because you are subscribed to the Googl

[Puppet Users] Re: Puppet custom function for arithmetic operation

2014-11-07 Thread jcbollinger
On Friday, November 7, 2014 5:15:23 AM UTC-6, Ashish Jaiswal wrote: > > Hello, > > Just trying to write a custom function. Basically looking to pass an > argument from manifest and value should get calculated. > > module Puppet::Parser::Functions > newfunction(:shmmax, :type => :rval

[Puppet Users] how to send notices or if the nodes go in changed in the console using snmp traps to any monitoring tool

2014-11-07 Thread Spriya
Hi, I have a requirement to send to snmp traps to any monitoring tool if i get any notice messages. or if the nodes to changed mode in the console. Is anyone did this? Please share your ideas. -- You received this message because you are subscribed to the Google Groups "Puppet Users" gr

Re: [Puppet Users] List of available variables for use in templates

2014-11-07 Thread Andy Wong
https://docs.puppetlabs.com/facter/2.2/core_facts.html#hostname this is what you want Ed Greenberg於 2010年5月6日星期四UTC+8上午5時07分02秒寫道: > > When writing an ERB template, I know that I can define variables in my > nodes and classes, and that the facter variables for the node are > available. > > I'd

Re: [Puppet Users] puppet agent upgrade with puppet module

2014-11-07 Thread Pete Brown
On 6 November 2014 12:13, Felix Frank wrote: > Hi, > > yes, I did witness background agents crashing when they tried to upgrade > the puppet packages. The postinst script would try to restart the > service, and kill the agent in the process (leaving the package half > configured. What fun). > > Th

[Puppet Users] Puppet custom function for arithmetic operation

2014-11-07 Thread Ashish Jaiswal
Hello, Just trying to write a custom function. Basically looking to pass an argument from manifest and value should get calculated. module Puppet::Parser::Functions newfunction(:shmmax, :type => :rvalue) do |args| def shmmax(args) product = args

[Puppet Users] Re: creating hashes from other hashes

2014-11-07 Thread Luke Bigum
Huh, at first glance that to me looks like a parser bug. Now that I think more on it I seem to recall this coming up before. The $name of a Defined Type is not of type String, and Puppet Hash keys are always strings, according to the docs: https://docs.puppetlabs.com/puppet/latest/reference/lan