[Puppet Users] Re: Is it possible to run functions at run time ?

2012-11-27 Thread Yanis Guenane
Thanks, I don't know why I tried to make it hard when it could be simple. On Wednesday, November 28, 2012 1:19:14 AM UTC+1, joe wrote: > > You should set the path based on the value of $myclass::provider: > > if $myclass::provider == 'package' { > test = '/path/a' > } > else { > test = '/path

Re: [Puppet Users] Puppet 3.0 Puppet labs repo package problem on rhel5

2012-11-27 Thread Jakov Sosic
On 11/27/2012 03:09 PM, Alaric wrote: > Yup, I get the same error: > > /usr/bin/ruby: symbol lookup error: > /usr/lib64/ruby/site_ruby/1.8/x86_64-linux/json/ext/parser.so: undefined > symbol: RSTRING_PTR Upgrade to the ruby provided by puppetlabs repo (RHEL 5 has older version), and don't mix

Re: [Puppet Users] Could not retrieve information from environment production source

2012-11-27 Thread Jakov Sosic
On 11/28/2012 05:22 AM, 夏凯 wrote: > then i put a site.pp(in attachment) under /etc/puppet/manifests. > when i use "sudo puppet apply --noop -v site.pp", i got the following > error: > > err: /Stage[main]//Node[default]/File[/sudoers]: Could not evaluate: > Could not retrieve information from envi

Re: [Puppet Users] Puppet 3.0 Puppet labs repo package problem on rhel5

2012-11-27 Thread Brian Jolly
I am experiencing the same problem with a 3.0.1 install. If I set "enable_inventory_service: false" there are no problems. ruby: symbol lookup error: /usr/lib/ruby/gems/1.8/gems/json-1.5.1/ext/json/ext/json/ext/parser.so: undefined symbol: RSTRING_PTR ruby 1.8.7 (2012-06-29 patchlevel 370) [x

[Puppet Users] Could not retrieve information from environment production source

2012-11-27 Thread 夏凯
I'm using puppet 3.0 i install puppet by these two command: sudo rpm -i http://yum.puppetlabs.com/el/5/products/i386/puppetlabs-release-5-6.noarch.rpm sudo yum install puppet-server as http://docs.puppetlabs.com/guides/puppetlabs_package_repositories.html#for-red-hat-enterprise-linux-and-deri

[Puppet Users] Puppetdb source install on Solaris. Agents complain about "invalid encoding ("UTF-8//IGNORE", "UTF-8")"

2012-11-27 Thread Ryan Cunningham
Hi all, I'm having an issue on the master I'm using in my staging environment with getting storeconfigs to work with puppetdb. I should say up front that my staging environment is probably a little uncommon. I'm running OpenIndiana which is a distribution of the open source fork of OpenSolaris.

[Puppet Users] Re: problems with exported exec resources

2012-11-27 Thread go8ose
On Tuesday, November 27, 2012 2:56:45 AM UTC+11, jcbollinger wrote: > > This looks like http://projects.puppetlabs.com/issues/11049. You can > vote for that issue. To work around the it, I think you'll need to arrange > for the host that collects those resources to declare its own > nagios_se

[Puppet Users] Reassigning extlookup_precedence for extlookup?

2012-11-27 Thread David Sammut
I am still using extlookup with Puppet 2.7.19 - I will not be upgrading to 3.0 and Hiera until closer to Christmas (sorry). What I was looking to do was use extlookup to retrieve some values using a particular setting of $extlookup_precedence and then using those values to set $extlookup_prece

[Puppet Users] Re: Is it possible to run functions at run time ?

2012-11-27 Thread joe
You should set the path based on the value of $myclass::provider: if $myclass::provider == 'package' { test = '/path/a' } else { test = '/path/b' } On Tuesday, November 27, 2012 3:58:05 PM UTC-7, Yanis Guenane wrote: > > *Specification* : my manifest look more like this > > class myclass ($p

[Puppet Users] Re: Is it possible to run functions at run time ?

2012-11-27 Thread joe
What you should do instead is set the path based on the value of $myclass::provider. if $myclass::provider == 'package' { On Tuesday, November 27, 2012 3:58:05 PM UTC-7, Yanis Guenane wrote: > > *Specification* : my manifest look more like this > > class myclass ($provider = 'package') { > ca

Re: [Puppet Users] Re: subscribe => Package

2012-11-27 Thread Erik Dalén
On Tuesday 27 November 2012 at 22:11, jcbollinger wrote: > > > On Tuesday, November 27, 2012 1:05:48 PM UTC-6, joe wrote: > > If you want to make sure all three packages are installed before the file, > > the best thing in this situation is to order the classes. > > > > What he has wr

[Puppet Users] Re: Is it possible to run functions at run time ?

2012-11-27 Thread Yanis Guenane
*Specification* : my manifest look more like this class myclass ($provider = 'package') { case $provider { 'package' : { package {'mypackage' : ensure => latest, } } 'source' : { exec {'install procedure' : } } } define myclass::mydefine() { $test

[Puppet Users] Is it possible to run functions at run time ?

2012-11-27 Thread Yanis Guenane
Hi all, I have a manifest that look like this case $provider { 'package' : { package {'mypackage' : ensure => latest, } } 'source' : { exec {'install procedure' : } } $test = get_test_path() file {'myconf' : content => templates('mod/myconf'), } Within myco

Re: [Puppet Users] Puppet 3.0 Puppet labs repo package problem on rhel5

2012-11-27 Thread jcbollinger
On Tuesday, November 27, 2012 9:53:35 AM UTC-6, alaric wrote: > > > On Nov 27, 2012, at 9:57 AM, Alaric > > wrote: > > > On Nov 27, 2012, at 9:45 AM, jcbollinger > > wrote: > > > > On Tuesday, November 27, 2012 8:27:37 AM UTC-6, Matthew Burgess wrote: >> >> On Tue, Nov 27, 2012 at 2:09 PM, Alar

Re: [Puppet Users] Re: Fileserver in standalone mode.

2012-11-27 Thread Scott Smerchek
I did stumble on that doc previously. And we do in fact have that working with our puppet master. However, that does not work with puppet standalone as far as I can tell. On Sunday, November 25, 2012 8:27:16 PM UTC-6, Ryan Coleman wrote: > > > > On Wed, Nov 21, 2012 at 8:04 AM, Scott Smerchek >

[Puppet Users] Re: subscribe => Package

2012-11-27 Thread jcbollinger
On Tuesday, November 27, 2012 1:05:48 PM UTC-6, joe wrote: > > Instead of subscribe => Package, it's require => Package['toola'] or > similar. > The OP does not use 'subscribe'. He uses 'notify', and 'notify' provides a superset of the behavior of 'before'. With the code he presented, he s

Re: [Puppet Users] Puppet Agent on Windows and file paths 32 or 64 Bit

2012-11-27 Thread ad
Hey Oliver, You can use my winfacts module, or just strip out the os_archtecture fact from it: https://github.com/adenning/winfacts/blob/master/lib/facter/os_architecture.rb That will correctly handle 32-bit OS on 64-bit hardware. Adam On Tuesday, November 27, 2012 5:04:47 AM UTC-6, r0k5t4r w

[Puppet Users] Re: How to populate files on nodes with data from a MySQL table, via Puppet

2012-11-27 Thread jcbollinger
On Tuesday, November 27, 2012 11:03:25 AM UTC-6, Luca Lesinigo wrote: > > [originally asked on ServerFault , > but doesn't seem to get much traction there] > > I have some data (hundreds of rows, should grow to some thousands in a > worst case scenario), m

[Puppet Users] Re: Help: sysctl implementation with defined types

2012-11-27 Thread jcbollinger
On Tuesday, November 27, 2012 12:20:02 PM UTC-6, Shawn Knight wrote: > > Hi folks, > > Still a beginner with Puppet. I'm trying to set up a simple class for > building a sysctl.conf, and I've hit a stumbling block. I could go with the > sysctl solutions other people have written with custom rub

[Puppet Users] Announce: PuppetDB 1.0.4 Available

2012-11-27 Thread Moses Mendoza
PuppetDB 1.0.4 is now available for download! This is a bug-fix release of PuppetDB. Note: Puppet 1.0.3 was not officially released, as additional fixes came in between the time 1.0.3 was tagged and the time we were going to publish release artifacts. PuppetDB 1.0.4 includes all changes from the w

[Puppet Users] Puppet and Hyperic

2012-11-27 Thread llowder
Was just wondering, before I went too far down this path... I have to use Hyperic for monitoring and alerting. I've got... 110+ apps to monitor spread across 3 clusters of 3 nodes. I've puppetized nearly every other aspect of this setup, so am now looking to puppetize the monitoring. I know th

Re: [Puppet Users] puppet.conf questiosn

2012-11-27 Thread Ugo Bellavance
On Tuesday, November 27, 2012 10:24:25 AM UTC-5, Chad Huneycutt wrote: > > On Tue, Nov 27, 2012 at 9:46 AM, Ugo Bellavance > > wrote: > > On Sunday, November 25, 2012 9:07:54 PM UTC-5, Ryan Coleman wrote: > >> On Sun, Nov 25, 2012 at 10:22 AM, Ugo Bellavance > wrote: > >>> > >>> It looks l

[Puppet Users] Re: Help: sysctl implementation with defined types

2012-11-27 Thread Shawn Knight
Appreciated, certainly. But again, for the sake of learning Puppet better, I'd like to know why my code doesn't work. :) On Tuesday, November 27, 2012 2:06:17 PM UTC-5, Fiddyspence wrote: > > Try http://forge.puppetlabs.com/fiddyspence/sysctl -- You received this message because you are subsc

[Puppet Users] Re: Help: sysctl implementation with defined types

2012-11-27 Thread Fiddyspence
Try http://forge.puppetlabs.com/fiddyspence/sysctl -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/rZPUaBBey3gJ. To post to this group, send email to puppe

[Puppet Users] Re: subscribe => Package

2012-11-27 Thread joe
Instead of subscribe => Package, it's require => Package['toola'] or similar. If you want to make sure all three packages are installed before the file, the best thing in this situation is to order the classes. Either in a separate module altogether or somewhere that makes sense for you (perha

Re: [Puppet Users] StackOverflow when running Puppet agent -t

2012-11-27 Thread Jeff McCune
On Tue, Nov 27, 2012 at 8:36 AM, Med75 wrote: > Hi all, > > I'm getting the floowing error when I run Puppet agent -t > > [...] > Finished catalog run in 209.01 seconds > Error: Could not send report: Could not render to yaml: Stack overflow in > regexp matcher: /\A(?: # ?: non-capturing group (gr

Re: [Puppet Users] err: Could not retrieve catalog from remote server: Error 400 on SERVER: allocator undefined for Proc

2012-11-27 Thread Jeff McCune
On Tue, Nov 27, 2012 at 9:06 AM, Lee Boynton wrote: > Sorry, just looked in the puppet.conf file. It is indeed the storeconfigs > option. I guess I should just go ahead and use PuppetDB. PuppetDB could be a viable work around, but this is the second time I've heard of someone running into this er

[Puppet Users] Help: sysctl implementation with defined types

2012-11-27 Thread Shawn Knight
Hi folks, Still a beginner with Puppet. I'm trying to set up a simple class for building a sysctl.conf, and I've hit a stumbling block. I could go with the sysctl solutions other people have written with custom ruby functions or augeas, but solving the problem I'm having might be instructive fo

[Puppet Users] How to populate files on nodes with data from a MySQL table, via Puppet

2012-11-27 Thread Luca Lesinigo
[originally asked on ServerFault , but doesn't seem to get much traction there] I have some data (hundreds of rows, should grow to some thousands in a worst case scenario), managed from external sources, whose authoritative source of truth consists of MySQ

Re: [Puppet Users] err: Could not retrieve catalog from remote server: Error 400 on SERVER: allocator undefined for Proc

2012-11-27 Thread Lee Boynton
Sorry, just looked in the puppet.conf file. It is indeed the storeconfigs option. I guess I should just go ahead and use PuppetDB. On 27 November 2012 16:59, Lee Boynton wrote: > This is in the database named puppet. So, I assume that is populated by > the storeconfig option? > > > > On 27 Nove

[Puppet Users] Technical Reviewers Needed

2012-11-27 Thread Stuart Cracraft
yea, feel free. managing a puppet installation here. I own and am reading a number of books on the subject. Stuart smcracr...@icloud.com -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://grou

Re: [Puppet Users] err: Could not retrieve catalog from remote server: Error 400 on SERVER: allocator undefined for Proc

2012-11-27 Thread Lee Boynton
This is in the database named puppet. So, I assume that is populated by the storeconfig option? On 27 November 2012 16:54, Jeff McCune wrote: > On Tue, Nov 27, 2012 at 8:39 AM, Lee Boynton wrote: > > delete from hosts where name = 'the.node.name'; > > OK, so this is the hosts table, but what d

[Puppet Users] agent to fileserver retry

2012-11-27 Thread asq
hi, we use active/standby load balancer in front of our puppetmaster cluster. once in a while load banalcer vIP migrates (ie. when we reboot active node), which gives about 5-10 seconds of unavailability (until loadbalancer reconnects to backends). during that time it emits 503... i wonder if it

Re: [Puppet Users] err: Could not retrieve catalog from remote server: Error 400 on SERVER: allocator undefined for Proc

2012-11-27 Thread Jeff McCune
On Tue, Nov 27, 2012 at 8:39 AM, Lee Boynton wrote: > delete from hosts where name = 'the.node.name'; OK, so this is the hosts table, but what database? Is this the Puppet dashboard, Stored Configs, or something else? --Jeff -- You received this message because you are subscribed to the Googl

Re: [Puppet Users] err: Could not retrieve catalog from remote server: Error 400 on SERVER: allocator undefined for Proc

2012-11-27 Thread Lee Boynton
delete from hosts where name = 'the.node.name'; On 27 November 2012 16:33, Jeff McCune wrote: > On Tuesday, November 27, 2012 at 6:25 AM, Lee Boynton wrote: > > I have run into this error on a few nodes. The only workaround I've found > so far is to delete the host out of the MySQL table. Is th

[Puppet Users] StackOverflow when running Puppet agent -t

2012-11-27 Thread Med75
Hi all, I'm getting the floowing error when I run Puppet agent -t [...] Finished catalog run in 209.01 seconds Error: Could not send report: Could not render to yaml: Stack overflow in regexp matcher: /\A(?: # ?: non-capturing group (grouping with no back references) [\x09\x0A\

Re: [Puppet Users] err: Could not retrieve catalog from remote server: Error 400 on SERVER: allocator undefined for Proc

2012-11-27 Thread Jeff McCune
On Tuesday, November 27, 2012 at 6:25 AM, Lee Boynton wrote: > I have run into this error on a few nodes. The only workaround I've found so > far is to delete the host out of the MySQL table. Is there anything I can do > to debug? > Which MySQL table are you speaking of? Could you you paste t

[Puppet Users] subscribe => Package

2012-11-27 Thread Frank
Hi there, I've defined a package array to install some software this way: class install { <…> package { ['toola','toolb','toolc']: ensure => installed, require => Class['setup'], notify => Class['configure'] } <….> } then under configure class I have something that is dependent of toola

Re: [Puppet Users] Puppet 3.0 Puppet labs repo package problem on rhel5

2012-11-27 Thread Alaric
On Nov 27, 2012, at 9:57 AM, Alaric wrote: > > On Nov 27, 2012, at 9:45 AM, jcbollinger wrote: > >> >> >> On Tuesday, November 27, 2012 8:27:37 AM UTC-6, Matthew Burgess wrote: >> On Tue, Nov 27, 2012 at 2:09 PM, Alaric wrote: >> > Yup, I get the same error: >> > >> > /usr/bin/ruby: sym

Re: [Puppet Users] puppet.conf questiosn

2012-11-27 Thread Chad Huneycutt
On Tue, Nov 27, 2012 at 9:46 AM, Ugo Bellavance wrote: > On Sunday, November 25, 2012 9:07:54 PM UTC-5, Ryan Coleman wrote: >> On Sun, Nov 25, 2012 at 10:22 AM, Ugo Bellavance wrote: >>> >>> It looks like the default environment for puppetmaster was "Master". >>> Should I change that to something

Re: [Puppet Users] New to Puppet -- why the puppet user

2012-11-27 Thread Thomas Bendler
2012/11/27 Steven VanDevender > [...] > One gathers you're not really a practicing sysadmin. What you cite are > a bunch of good reasons one should avoid running daemons and > applications as root. But you can't create and manage the mechanisms > that are used to avoid running things as root wi

Re: [Puppet Users] Puppet 3.0 Puppet labs repo package problem on rhel5

2012-11-27 Thread Alaric
On Nov 27, 2012, at 9:45 AM, jcbollinger wrote: > > > On Tuesday, November 27, 2012 8:27:37 AM UTC-6, Matthew Burgess wrote: > On Tue, Nov 27, 2012 at 2:09 PM, Alaric wrote: > > Yup, I get the same error: > > > > /usr/bin/ruby: symbol lookup error: > > /usr/lib64/ruby/site_ruby/1.8/x86_64

Re: [Puppet Users] Puppet 3.0 Puppet labs repo package problem on rhel5

2012-11-27 Thread Matthew Burgess
On Tue, Nov 27, 2012 at 2:45 PM, jcbollinger wrote: > > > On Tuesday, November 27, 2012 8:27:37 AM UTC-6, Matthew Burgess wrote: >> >> On Tue, Nov 27, 2012 at 2:09 PM, Alaric wrote: >> > Yup, I get the same error: >> > >> > /usr/bin/ruby: symbol lookup error: >> > /usr/lib64/ruby/site_ruby/1.8/x8

Re: [Puppet Users] passenger used in puppet 3.0?

2012-11-27 Thread DJames
ahh i was hoping the puppet master on 3.0 could handle the transport on its own, well dealing with 1800+ plus production systems this mechanism could be an issue... On Tuesday, November 27, 2012 9:45:28 AM UTC-5, Matthew Burgess wrote: > > On Tue, Nov 27, 2012 at 2:27 PM, Dominic James > > > w

Re: [Puppet Users] puppet.conf questiosn

2012-11-27 Thread Ugo Bellavance
On Sunday, November 25, 2012 9:07:54 PM UTC-5, Ryan Coleman wrote: > > > > > On Sun, Nov 25, 2012 at 10:22 AM, Ugo Bellavance > > wrote: > >> Hi, >> >> I have 2 questions regarding puppet.conf file: >> >> >>1. What should I do to use puppet to deploy puppet.conf files? I have >>only one

Re: [Puppet Users] Puppet 3.0 Puppet labs repo package problem on rhel5

2012-11-27 Thread jcbollinger
On Tuesday, November 27, 2012 8:27:37 AM UTC-6, Matthew Burgess wrote: > > On Tue, Nov 27, 2012 at 2:09 PM, Alaric > > wrote: > > Yup, I get the same error: > > > > /usr/bin/ruby: symbol lookup error: > /usr/lib64/ruby/site_ruby/1.8/x86_64-linux/json/ext/parser.so: undefined > symbol: RSTRI

Re: [Puppet Users] passenger used in puppet 3.0?

2012-11-27 Thread Matthew Burgess
On Tue, Nov 27, 2012 at 2:27 PM, Dominic James wrote: > Question: on my current puppet setup 2.7.3-0 rhel 6.2 centos - passenger is > used to provide the throughput for the heavy delivery that puppet could not > do by itself, was this fix in version 3.0 puppet? I will be upgrading to 3.0 > and wil

[Puppet Users] Re: Puppet 3.0 Puppet labs repo package problem on rhel5

2012-11-27 Thread jcbollinger
On Friday, November 23, 2012 4:47:03 PM UTC-6, alaric wrote: > > After cleaning up some gems on my puppet master [...] > That you are working with gems on your RHEL system makes me pretty suspicious. I strongly discourage use of gem on systems such as RHEL that have decent package managers wi

[Puppet Users] passenger used in puppet 3.0?

2012-11-27 Thread Dominic James
Question: on my current puppet setup 2.7.3-0 rhel 6.2 centos - passenger is used to provide the throughput for the heavy delivery that puppet could not do by itself, was this fix in version 3.0 puppet? I will be upgrading to 3.0 and will like puppet master to push to multiple of clients without

Re: [Puppet Users] err: Could not retrieve catalog from remote server: Error 400 on SERVER: allocator undefined for Proc

2012-11-27 Thread Lee Boynton
I have run into this error on a few nodes. The only workaround I've found so far is to delete the host out of the MySQL table. Is there anything I can do to debug? Running CentOS 6.3 and Puppet 3.0.1 on master. Broken nodes are mostly running 3.0.0 and 3.0.1, but a mixture of CentOS 5.8 and 6.3

Re: [Puppet Users] Puppet 3.0 Puppet labs repo package problem on rhel5

2012-11-27 Thread Matthew Burgess
On Tue, Nov 27, 2012 at 2:09 PM, Alaric wrote: > Yup, I get the same error: > > /usr/bin/ruby: symbol lookup error: > /usr/lib64/ruby/site_ruby/1.8/x86_64-linux/json/ext/parser.so: undefined > symbol: RSTRING_PTR > > > My one thought is that maybe my version stdlib is old... I checked and it's

Re: [Puppet Users] Puppet 3.0 Puppet labs repo package problem on rhel5

2012-11-27 Thread Alaric
On Nov 26, 2012, at 10:29 PM, Michael Stahnke wrote: > On Mon, Nov 26, 2012 at 2:16 PM, Alaric wrote: >> >> On Nov 26, 2012, at 4:46 PM, Michael Stahnke wrote: >> >>> >>> I tried to reproduce this and just couldn't. Does this happen on >>> other systems? >>> >>> Is there any more informa

[Puppet Users] Right way to implement "roles" in hiera/puppet

2012-11-27 Thread Bret Wortman
I'm looking to implement a hiera backend for our Puppet installation, as we routinely deploy systems that are of varying hardware, OS, and which may have multiple roles they fill. I've figured out, I think, how to handle the OS question through facter, but implementing server roles isn't quite

Re: [Puppet Users] Puppet Agent on Windows and file paths 32 or 64 Bit

2012-11-27 Thread r0k5t4r
Hi Josh, thanks a lot for pointing this out. I will update the install on all windows machines to the latest puppet 2.7.x release. This updates facter and the architecture is correctly display unless it's running 32Bit on 64Bit hardware. Regards, Oliver On Monday, November 26, 2012 6:36:20 PM