Re: [Puppet Users] Running ENC alongside site.pp (node defn)

2013-03-26 Thread iamauser
Thanks Pete and Martin. Follow up question. Let's assume I have 3 nodes (A,B,C), and all of them have some class definitions in site.pp, and now, I just want to test my ENC based class definitions for only node-A. I have 'node-A.yaml' that has the extra class definitions. Should this be enough

Re: [Puppet Users] Running ENC alongside site.pp (node defn)

2013-03-26 Thread Peter Brown
On 27 March 2013 01:02, Martin Alfke wrote: > Hi. > On 26.03.2013, at 15:44, iamauser wrote: > > Hello, > > Is it possible to configure an ENC to provide class definition to a number > of nodes at the same time where a few other nodes are controlled in the > site.pp by node 'FQDN' {blah} for the

Re: [Puppet Users] Ruby (Rack) application could not be started

2013-03-26 Thread thinkwell
Still no luck. Installed from gems, installed from Puppet Apt, installed from brightbox. Some thing must be busted for each one. Puppet runs always generating scads of errors . Is Passenger enabled? I had to create these files manually since the package

Re: [Puppet Users] Ruby (Rack) application could not be started

2013-03-26 Thread Ramin K
On 3/26/2013 5:59 AM, thinkwell wrote: Hello Ramin. Thanks for your reply. I didn't install rvm, I'm only using system ruby. Regarding the use of gems vs puppet repositories, well, I installed Puppet from the official apt repos but I wasn't aware that passenger can be installed from there as wel

[Puppet Users] Re: Reference first member of array in manifest

2013-03-26 Thread Ellison Marks
It's just normal subscript notation. $ntpd_servers[0] http://docs.puppetlabs.com/puppet/3/reference/lang_datatypes.html#arrays Just as a note, ntpd has an option, -g I believe, that's used to set the time and start the service all at once. I think it's a little preferred over ntpdate these day

[Puppet Users] Re: Reassigning value of class declared in templates file

2013-03-26 Thread Sergio Jimenez
Not really sure about it (pretty new in puppet) but ... what about parametrized classes? You could define default values for parameters in the class or overwrite them when using the class. sjr. On Tuesday, March 26, 2013 3:14:51 AM UTC+1, Cesar Covarrubias wrote: > > I am trying to create a "

[Puppet Users] Reference first member of array in manifest

2013-03-26 Thread Willem Bos
Hi all, How do I reference the first member in the $ntpd_servers array in the code below. Any pointers to the official Puppet (or Ruby?) documentation would be much appreciated. class ntp { $ntpd_servers = [ "0.rhel.pool.ntp.org", "1.rhel.pool.ntp.org", "2.rhel.pool.ntp.org" ] exec { "se

Re: [Puppet Users] Running ENC alongside site.pp (node defn)

2013-03-26 Thread Martin Alfke
Hi. On 26.03.2013, at 15:44, iamauser wrote: > Hello, > > Is it possible to configure an ENC to provide class definition to a number of > nodes at the same time where a few other nodes are controlled in the site.pp > by node 'FQDN' {blah} for the same puppetmaster ? ENC and site.pp do not re

[Puppet Users] Running ENC alongside site.pp (node defn)

2013-03-26 Thread iamauser
Hello, Is it possible to configure an ENC to provide class definition to a number of nodes at the same time where a few other nodes are controlled in the site.pp by node 'FQDN' {blah} for the same puppetmaster ? I am wondering once parameters are set for the master to look for an ENC based d

[Puppet Users] Re: Reassigning value of class declared in templates file

2013-03-26 Thread jcbollinger
On Monday, March 25, 2013 9:14:51 PM UTC-5, Cesar Covarrubias wrote: > > I am trying to create a "template" for all my servers. I have 2 > configurations. An NTP client (which is taken care of in the baseclass > class. I want to create an override specific for the NTP servers by > declaring so

[Puppet Users] Re: Unexpected hash's behavior

2013-03-26 Thread jcbollinger
On Monday, March 25, 2013 9:53:50 AM UTC-5, Andrew E. wrote: > > Hi all. > I'm newbie. > Help me, please. > I write Puppet function > Piece of code : > > > n_if={} > over_if = arguments[1] > > over_if.each do |kk,vv| > weth={} > puts kk,vv,weth

Re: [Puppet Users] Ruby (Rack) application could not be started

2013-03-26 Thread thinkwell
Hello Ramin. Thanks for your reply. I didn't install rvm, I'm only using system ruby. Regarding the use of gems vs puppet repositories, well, I installed Puppet from the official apt repos but I wasn't aware that passenger can be installed from there as well. If that's the case, why is the doc

Re: [Puppet Users] Reassigning value of class declared in templates file

2013-03-26 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Does anyone have any ideas host to do this? Do not use node inheritance, simply don't - it will hurt you badly at some point. It does not work in the same way as class inheritance does. And also class inheritance should not used that widely (more o

Solved: [Puppet Users] Can't convert Puppet::Util::Log into Integer

2013-03-26 Thread Andrei-Florian Staicu
Hello, It seems that, for one reason or another, two thing happened: the postgres for puppetdb was dead, and the puppetmaster service was started, even though it's run from apache. After a bit of cleanup, everything works now. Thanks for your suggestion, and sorry for the stupid issue. On Tue, M

Re: [Puppet Users] Can't convert Puppet::Util::Log into Integer

2013-03-26 Thread Keith Burdis
The agent only writes logs under /var/log/puppet if you run it as a service - for example using: $ service puppet once (Note that due to buffering it may take a few seconds for entries to appear in puppet.log.) There are a number of existing issues that could be related to your problem (#17297

[Puppet Users] Reassigning value of class declared in templates file

2013-03-26 Thread Cesar Covarrubias
I am trying to create a "template" for all my servers. I have 2 configurations. An NTP client (which is taken care of in the baseclass class. I want to create an override specific for the NTP servers by declaring something specific in the node declaration. Something like "baseclass::ntp:restri

[Puppet Users] Re: Agent nodes not appearing in Enterprise live management

2013-03-26 Thread Steve F
Interesting that I didn't have MCollective installed on either agent. Is there any other service that I need to get this live management to "work"? MCollective is installed on both now, just trying to trawl through the limited README to configure it. I'm finding it perturbing that there's not a

[Puppet Users] Re: Export a file from one node and collect on another

2013-03-26 Thread Russell Parsloe
On Wednesday, 20 March 2013 18:04:41 UTC, jcbollinger wrote: > > > On Wednesday, March 20, 2013 5:41:47 AM UTC-5, Russell Parsloe wrote: >> >> I'm trying to use Puppet and PuppetDB to export a config file from one >> node, and collect it on another i.e. >> >> export */etc/app1/file1.cfg* from *no

[Puppet Users] Can't convert Puppet::Util::Log into Integer

2013-03-26 Thread Andrei-Florian Staicu
Hi all, Could anyone help me at least start debugging this issue? All agents have the same error, but i can't find anything on the master-side logs. And the agent-side logs are non-existent (/var/log/puppet is empty). Thanks. Versions: Master: Red Hat Enterprise Linux Server release 6.3 puppet-s