Re: [Puppet Users] All nodes are showing unresponsive

2013-02-04 Thread Mamta Garg
Hi Mark, Thanks for reply! Now internal server error issue has been resolved but still showing all nodes as unresponsive under puppet dashboard. All the task are showing pending. Thanks, Mamta On Mon, Feb 4, 2013 at 9:18 PM, Mark Whaite wrote: > Hello > > That looks like a 500 error from Apac

Re: [Puppet Users] Re: Installing Operating systems

2013-02-04 Thread Johan De Wit
We did a presentation about razor on puppetcamp ghent last friday. (kind of an introduction and a small demo). https://puppetlabs.com/community/puppet-camp/#previous video will be online soon The video and slides will be available soon. Grt johan On 02/04/2013 07:40 PM, Daniel Pittman wro

Re: [Puppet Users] How do I generate a sequence number in a template

2013-02-04 Thread David Kerr
yeah, i saw that, and fixed it, but still no good. i had thought/hoped that i deleted this post and posted my next one which you also kindly answered. On Monday, February 4, 2013 9:05:24 PM UTC-8, Aaron Russo wrote: > > > On Mon, Feb 4, 2013 at 5:41 PM, David Kerr > > wrote: > >> My template fo

Re: [Puppet Users] Is it possible to generate a sequence in a template?

2013-02-04 Thread David Kerr
On Monday, February 4, 2013 9:07:49 PM UTC-8, Aaron Russo wrote: > > > On Mon, Feb 4, 2013 at 7:37 PM, David Kerr > > wrote: > >> <% @foo = 0 %> >> <% Array(bar).each do |flan| -%> >> value <%= @foo %> >> <% @foo += 1 %> >> <% end %> >> > > This code worked for me. I just used an inline templat

Re: [Puppet Users] Is it possible to generate a sequence in a template?

2013-02-04 Thread Aaron Russo
On Mon, Feb 4, 2013 at 7:37 PM, David Kerr wrote: > <% @foo = 0 %> > <% Array(bar).each do |flan| -%> > value <%= @foo %> > <% @foo += 1 %> > <% end %> > This code worked for me. I just used an inline template, but otherwise I had exactly what you had: link: https://gist.github.com/arusso23/47

Re: [Puppet Users] How do I generate a sequence number in a template

2013-02-04 Thread Aaron Russo
On Mon, Feb 4, 2013 at 5:41 PM, David Kerr wrote: > My template for this chunk looks like: > <% Array(ipaddress).zip(Array(pgport)).each do |ipaddress,port| -%> > <% backend = 0 %> > backend_hostname<%= backend -%> = <%= ipaddress %> > backend_port<%= backend -%> = <%= port %> > backend_weight<%=

[Puppet Users] Is it possible to generate a sequence in a template?

2013-02-04 Thread David Kerr
Howdy! Is it possible to generate a sequence in a loop in a puppet template? I'm trying something like: <% @foo = 0 %> <% Array(bar).each do |flan| -%> value <%= @foo %> <% @foo += 1 %> <% end %> But that's not working. (i just get a bunch of 0's) Any ideas? Thanks -- You received this mess

Re: [Puppet Users] Re: Announce: Puppet 3.1.0 Available

2013-02-04 Thread Matthaus Owens
Absolutely right. Apologies. That was a copy/paste error on my part from a previous 3.1.0-rc release email. Thanks for catching that Jeff! On Mon, Feb 4, 2013 at 5:47 PM, Jeff McCune wrote: > On Mon, Feb 4, 2013 at 12:07 PM, Matthaus Owens > wrote: >> >> Available in native package format in the

Re: [Puppet Users] hiera query yaml parameters

2013-02-04 Thread Dan White
Thanks, Steven. I will try it out On Feb 3, 2013, at 10:21 PM, Steven Nemetz wrote: > You can read the hash directly, create_resource is not needed (may or may not > be desired) > > $user_defs = hiera('os_users') will give you the full hash > > What I tend to do for this type of data structure

[Puppet Users] Re: Announce: Puppet 3.1.0 Available

2013-02-04 Thread Jeff McCune
On Mon, Feb 4, 2013 at 12:07 PM, Matthaus Owens wrote: > Available in native package format in the pre-release repositories at: > http://yum.puppetlabs.com and http://apt.puppetlabs.com Puppet 3.1.0 is in the "main" repository that is enabled by default and not the pre-release repository, right?

[Puppet Users] How do I generate a sequence number in a template

2013-02-04 Thread David Kerr
I'm trying to puppetize my PgPool install. PgPool uses the convention: backend_hostname0 = backend_port0 = backend_weight0 = backend_data_directory0 = backend_flag0 = I'm using exported resources and concat to auto-detect postgres instances. My template for this chunk looks like: <% Array(i

Re: [Puppet Users] Recent RoR Vulns and puppet 3x on RHEL 6?

2013-02-04 Thread Michael Stahnke
Unless you've elected to use legacy storeconfigs (with activerecord), you are correct, your system should not be vulnerable. stahnma On Mon, Feb 4, 2013 at 6:15 AM, Kodiak Firesmith wrote: > Hello fellow Puppet users! > > I'm trying to perform due diligence to make sure that our Puppet > insta

Re: [Puppet Users] Re: Split node definition into multiple files

2013-02-04 Thread Andre Keller
Hi thank you for your inputs. Am 04.02.2013 16:53, schrieb jcbollinger: > On Saturday, February 2, 2013 10:25:14 AM UTC-6, Jared Curtis wrote: > > Couldn't you just add a new include to sites.pp called zones.pp > then build a class within it to include on your DNS nodes? > > > and (separ

Re: [Puppet Users] Is it possible to enable SSL tracing on the master and agent?

2013-02-04 Thread Keith Burdis
If you are running the master under mod_passenger then you can set 'LogLevel debug'. On 3 February 2013 04:29, Schofield wrote: > I would like to see the SSL handshake between the master and agent. How > do I enable this? > > -- > You received this message because you are subscribed to the Goo

[Puppet Users] Announce: Puppet 3.1.0 Available

2013-02-04 Thread Matthaus Owens
Puppet 3.1.0 is a feature release for the 3.x series of Puppet. To see a list of the issues addressed by this release, check out the 3.1.0 version in our issue tracker at: https://projects.puppetlabs.com/versions/288 This is the first "minor" release in the Puppet 3 series. It introduces some new

[Puppet Users] Announce: PuppetDB 1.1.1 Available!

2013-02-04 Thread Matthaus Owens
PuppetDB 1.1.1 is now available for download! This is a bug-fix release of PuppetDB. For details on the new features in PuppetDB 1.1.x, check out the blog post at https://puppetlabs.com/blog/announcing-puppetdb-1-1-do-more-with-your-data/ = ### Downloads###

Re: [Puppet Users] OS provisionning of physical server usinsg puppet ?

2013-02-04 Thread Ohad Levy
On Mon, Feb 4, 2013 at 5:59 PM, ml wrote: > Hi all, > > I'm a newbie in puppet > I read the documentation and according to me, puppet is a language to > manage OS and to check compliance to OS template. > > I read that puppet enterprise can deploy Vmware vm template and Amazon EC2 > VM. > > But i

Re: [Puppet Users] Re: Installing Operating systems

2013-02-04 Thread Daniel Pittman
Razor is still pretty experimental, so I wouldn't recommend it unless you are comfortable with alpha software. It does integrate with provisioning, in the sense that it will hand off through a broker to Puppet (or Chef, or other tools), so it should have a smooth transition between provisioning an

[Puppet Users] Re: Debugging a facter problem

2013-02-04 Thread jcbollinger
On Friday, February 1, 2013 8:16:12 AM UTC-6, Bernhard Schmidt wrote: > > --- > require 'facter' > require 'facter/util/ip' > > if not FileTest.exists?("/usr/sbin/lldpctl") > nil > end > That last bit probably doesn't do what you want. That is to say, it evaluates to nil in every case

[Puppet Users] Re: Installing Operating systems

2013-02-04 Thread joe
There is also razor (https://puppetlabs.com/solutions/next-generation-provisioning/). It is only for provisioning (not assigning classes) and is the future of provisioning and puppet. On Monday, February 4, 2013 11:29:33 AM UTC-7, joe wrote: > > Puppet doesn't do OS provisioning itself. You'd n

[Puppet Users] Re: Installing Operating systems

2013-02-04 Thread joe
Puppet doesn't do OS provisioning itself. You'd need a separate system to do that part, then hand off to puppet after a minimal install has been completed. You can use a tool like Foreman (http://theforeman.org/). It will handle the provisioning of the systems and also integrates with puppet t

[Puppet Users] Re: Puppet custom recursive directory synchronization

2013-02-04 Thread jcbollinger
On Monday, February 4, 2013 9:40:41 AM UTC-6, Andriy Yurchuk wrote: > > To be able to do this with purge I need to pass the list of subdirectories > I want to exist to source attribute, but I'm not sure I can do this > > On Monday, February 4, 2013 2:57:20 PM UTC+2, 刘长元 wrote: >> >> "but this do

[Puppet Users] Installing Operating systems

2013-02-04 Thread Manish Singh
Hello All, I am new to puppet and was trying to figure out whether puppet can handle the requirement I had. The requirement is to reinstall an OS (Windows, distributions of Linux) on slave machines before a job is executed. This is needed as we need a clean OS before executing the jobs on the

Re: [Puppet Users] All nodes are showing unresponsive

2013-02-04 Thread Mark Whaite
Hello That looks like a 500 error from Apache, which is a Internal server error. You need to have a look at the apache logs on the vm to see what the problem is. The logs *should* be in /var/log/httpd This is the centos guide to logs http://www.centos.org/docs/5/html/Deployment_Guide-en-US/ch-l

[Puppet Users] OS provisionning of physical server usinsg puppet ?

2013-02-04 Thread ml
Hi all, I'm a newbie in puppet I read the documentation and according to me, puppet is a language to manage OS and to check compliance to OS template. I read that puppet enterprise can deploy Vmware vm template and Amazon EC2 VM. But it seem's that puppet core can't deploy physical server The

[Puppet Users] Re: Puppet Starting error

2013-02-04 Thread jcbollinger
On Saturday, February 2, 2013 1:31:28 AM UTC-6, teste...@gmail.com wrote: > > Hello, > > I have got the following error while starting the puppet client, please > find the following > > = > root@epsilon [/usr/src]# /etc/init.d/puppet start > Starting puppet: /usr/sbin/puppetd

[Puppet Users] LogStash Book released

2013-02-04 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all I've just released 'The LogStash Book' (http://www.logstashbook.com/). It's a new book designed for SysAdmins, Operations staff, Developers and DevOps who are interested in deploying a log management solution using the open source tool LogStash

[Puppet Users] Re: Split node definition into multiple files

2013-02-04 Thread jcbollinger
On Saturday, February 2, 2013 10:25:14 AM UTC-6, Jared Curtis wrote: > > Couldn't you just add a new include to sites.pp called zones.pp then build > a class within it to include on your DNS nodes? > > class myzones { > nsd::zone { ... } > . > } > > node DNS { > include myzones

[Puppet Users] Re: Possible to evaluate embedded variables?

2013-02-04 Thread jcbollinger
On Saturday, February 2, 2013 12:55:56 PM UTC-6, Schofield wrote: > > Given a variable that holds a class name is it possible to resolve the > value of a variable within that class? Yes, via an inline_template, but it's a bad idea. > For example > > class classes::myclass{ > $install_

[Puppet Users] Re: Puppet custom recursive directory synchronization

2013-02-04 Thread Andriy Yurchuk
To be able to do this with purge I need to pass the list of subdirectories I want to exist to source attribute, but I'm not sure I can do this On Monday, February 4, 2013 2:57:20 PM UTC+2, 刘长元 wrote: > > "but this does not remove the directories from the node if I remove them > from deployment.y

Re: [Puppet Users] creating file locations from hiera

2013-02-04 Thread jcbollinger
On Friday, February 1, 2013 5:57:50 AM UTC-6, blalor wrote: > > On Jan 25, 2013, at 9:25 AM, Peter De Cleyn > > wrote: > > I ran again against a long standing bug / feature request but from a new > angle: creating directories with parents ( > http://projects.puppetlabs.com/issues/86). > > > I

[Puppet Users] Recent RoR Vulns and puppet 3x on RHEL 6?

2013-02-04 Thread Kodiak Firesmith
Hello fellow Puppet users! I'm trying to perform due diligence to make sure that our Puppet installations aren't affected by all the RoR vulns in the news recently. (http://www.kalzumeus.com/2013/01/31/what-the-rails-security-issue-means-for-your-startup/) (http://www.informationweek.com/securi

Re: [Puppet Users] storeconfigs and exported resources?

2013-02-04 Thread Ken Barber
>> Also your routes.yaml doesn't match the documentation I gave you >> either, nor should you be setting thin_storeconfigs any more as stated >> in another section. > > Yeah, but if I remove the section for catalog, I don't get "replacing > catalogs" in puppetdb log... But since my initial problem

[Puppet Users] Integration testing infrastructure

2013-02-04 Thread Gareth Rushgrove
Bryan Berry gave a talk at FOSDEM a couple of days ago about integration testing for infrastructure. He talked about a tool that's come out of the Chef community called Test Kitchen, and pointed out it should be possible to use it to test Puppet code too. I've put together a quick demo of doing th

[Puppet Users] Re: Puppet custom recursive directory synchronization

2013-02-04 Thread 刘长元
"but this does not remove the directories from the node if I remove them from deployment.yml. maybe purge attribute can do this. On Monday, February 4, 2013 7:58:37 PM UTC+8, Andriy Yurchuk wrote: > > I'm trying to implement a custom recursive directory synchronization > resource in Puppet. W

[Puppet Users] Puppet custom recursive directory synchronization

2013-02-04 Thread Andriy Yurchuk
I'm trying to implement a custom recursive directory synchronization resource in Puppet. What I need to do is the following. I have a YAML file with the list of hostnames and the list of directories that should exist on each hostname inside, say, `/var/lib/my_app` directory (`deployment.yml`):

[Puppet Users] Re: puppet client 0.22.1-1 unable to communicate with master on 3.0.2-1

2013-02-04 Thread Chux
Nick, This is not looking promising .. dapper is on ruby 1.8.4, and the nearest ubuntu version that could get me up to ruby 1.8.5 is feisty .. So, I modified apt preferences, to try and pull in the right versions of ruby from feisty (had to do the same for puppet and facter) .. However, the

Re: [Puppet Users] Re: Another "function does not return a value" problem

2013-02-04 Thread Andriy Yurchuk
Yes, that was the reason perhaps. Thanks. On Sunday, February 3, 2013 10:32:32 PM UTC+2, R.I. Pienaar wrote: > > > > - Original Message - > > From: "Andriy Yurchuk" > > > To: puppet...@googlegroups.com > > Sent: Sunday, February 3, 2013 9:28:58 PM > > Subject: [Puppet Users] Re: Anoth

[Puppet Users] Re: puppet client 0.22.1-1 unable to communicate with master on 3.0.2-1

2013-02-04 Thread Chux
Million thanks, Nick .. That is enough pointers for me to consider .. Will come back with some feedback on what has worked (if any). rgds. On Saturday, 2 February 2013 01:51:03 UTC, Nick Fagerlund wrote: > > You're in a gnarly situation. DistroWatch is telling me that you're > probably running