[Puppet Users] ERB template, both client and master data

2012-10-16 Thread Andrei-Florian Staicu
Hi all, I'm trying to build a motd template for all my linux machines. This should contain two type of variables: - client side (from facter), like operatingsystem and architecture - supplied by the master, after parsing a text file (or querying a mysql db), like description and location. So. Whe

Re: [Puppet Users] Re: Puppet 3.0.0 and Hiera

2012-10-16 Thread R.I.Pienaar
- Original Message - > From: "jcbollinger" > To: puppet-users@googlegroups.com > Sent: Monday, October 15, 2012 9:45:12 PM > Subject: Re: [Puppet Users] Re: Puppet 3.0.0 and Hiera > > > > Indeed, I personally look at it quite the other way around: hiera > integration makes parametr

[Puppet Users] Re: ERB template, both client and master data

2012-10-16 Thread Ger Apeldoorn
The template function is evaluated on the server, but you do have access to the facter variables that are generated on the client. Kind regards, Ger. Op dinsdag 16 oktober 2012 09:53:34 UTC+2 schreef SAF het volgende: > > Hi all, > > I'm trying to build a motd template for all my linux machines

Re: [Puppet Users] augeas only add if doesn't exist

2012-10-16 Thread Dominic Cleal
On 15/10/12 16:52, Eugene Vilensky wrote: > > On Oct 14, 2012, at 12:40 PM, Dominic Cleal > wrote: > >> You're missing quotes around "nrpe", the command should be: >> >> set /files/etc/hosts.allow/*[process='nrpe']/client[last()+1] 1.1.1.1 >> >> rodjek's example has the

Re: [Puppet Users] augeas only add if doesn't exist

2012-10-16 Thread Dominic Cleal
On 16/10/12 11:42, Dominic Cleal wrote: > On 15/10/12 16:52, Eugene Vilensky wrote: >> >> On Oct 14, 2012, at 12:40 PM, Dominic Cleal > > wrote: >> >>> You're missing quotes around "nrpe", the command should be: >>> >>> set /files/etc/hosts.allow/*[process='nrpe']/client[l

[Puppet Users] Re: $concat_basedir not defined

2012-10-16 Thread Linh Dart
hi. i fixed it after read the docs: Enabling Pluginsync After setting up the directory structure, we then need to turn on pluginsync in our puppet.conf configuration file on *both the master and the clients:* [main] pluginsync = true On Tuesday, July 31, 2012 11:06:04 PM UTC+7, Shannon McF

[Puppet Users] Setting up Java on Windows

2012-10-16 Thread wukong
Hi guys, I have been trying to bootstrap a windows machine with puppet. I need to install java and setup the JAVA_HOME and add bin to the path variable of windows. I have tried using the package resource with the jdk setup but everytime I run the manifest puppet opens the setup wizard and waits

[Puppet Users] Re: The free software tarballs are now difficult to find

2012-10-16 Thread jcbollinger
On Sunday, October 14, 2012 7:26:23 PM UTC-5, Nigel Kersten wrote: > > On Saturday, October 13, 2012 8:23:57 AM UTC-7, Paul Belanger wrote: > >> On Friday, October 12, 2012 10:10:54 AM UTC-4, windowsrefund wrote: >>> >>> Recently, there have been some changes made to the Puppetlabs website >>> w

Re: [Puppet Users] Setting up Java on Windows

2012-10-16 Thread Matthew Burgess
On Tue, Oct 16, 2012 at 5:45 AM, wukong wrote: > Also is there a way to do this as silent install? > > Here is my manifest. > > package {"java" : > ensure => installed, > provider => "windows", > source => "C:/Manifests/installables/jdk-6u35-windows-i586.exe", > } Launching that .exe

[Puppet Users] Unable to create the rrd graph

2012-10-16 Thread Nishant Jain
Hello Everybody, I have been trying to use the rrdgraph reporting feature available in puppet. After performing all the instruction maintained on the site http://docs.puppetlabs.com/references/latest/report.html , the rrd directory for the ag

[Puppet Users] Re: Puppet 3.0.0 and Hiera

2012-10-16 Thread jcbollinger
On Monday, October 15, 2012 4:32:28 PM UTC-5, Ellison Marks wrote: > > I don't intend to use parametrized declarations(Right now I'm simply using > hiera_include in the default node for everything and loving it). I do > however, very much like the convenience of the new syntax. In addition, my

[Puppet Users] Re: The free software tarballs are now difficult to find

2012-10-16 Thread Bezerker
Business logic aside the biggest issue for me is that it is "difficult" to find the free software version without knowing any better. As mentioned in this thread most distributions handle packaging Puppet nicely, as does rubygems. However a very good example is puppet 3.0 rc. I had been foll

Re: [Puppet Users] Re: Puppet 3.0.0 and Hiera

2012-10-16 Thread jcbollinger
On Monday, October 15, 2012 6:59:45 PM UTC-5, Nick Fagerlund wrote: > > > > On Monday, October 15, 2012 1:45:12 PM UTC-7, jcbollinger wrote: >> >> >> Indeed, I have taken a second look, and a third, and maybe more. I love >> the hiera integration with parametrized classes. It was a fabulous id

Re: [Puppet Users] Re: Puppet 3.0.0 and Hiera

2012-10-16 Thread R.I.Pienaar
- Original Message - > From: "jcbollinger" > To: puppet-users@googlegroups.com > Sent: Tuesday, October 16, 2012 3:11:55 PM > Subject: Re: [Puppet Users] Re: Puppet 3.0.0 and Hiera >> But parameters expose that info to more than humans -- for example, >> you can use the resource_type

[Puppet Users] Re: The free software tarballs are now difficult to find

2012-10-16 Thread James Turnbull
On Oct 16, 6:12 am, jcbollinger wrote: > For what it's worth, I always prefer to get source for third-party > software, and my absolute *least* favorite way to do so is from a > source-control repository.  I particularly like source RPMs, but tarballs > generally work just fine for me.  More gener

Re: [Puppet Users] Re: Puppet 3.0.0 and Hiera

2012-10-16 Thread jcbollinger
On Tuesday, October 16, 2012 3:23:14 AM UTC-5, R.I. Pienaar wrote: > > its a > shame we even have to come up with a style for working around problems > in something as key as class paramaterization. > I think it's a shame that prevailing opinion holds class parametrization to be a key featu

Re: [Puppet Users] Re: Puppet 3.0.0 and Hiera

2012-10-16 Thread jcbollinger
On Tuesday, October 16, 2012 9:16:43 AM UTC-5, R.I. Pienaar wrote: > > It would be great if you can set your email client to send plain text > emails as per list guidelines. > If I were using an e-mail client then I would be happy to do so, but I'm posting via Google's web interface. John --

[Puppet Users] PHP modules

2012-10-16 Thread Brent Clark
Good day. I would like to ask. Does anyone have an elegant way to manage the PHP modules that are not available via a repository, and that can only be installed via pecl or pear. Ideally, it would actually be better if Debians dh-make-(pear|pecl) was actually used in the manifest. Github is

[Puppet Users] Re: Puppet 3.0.0 and Hiera

2012-10-16 Thread Ellison Marks
No worries. I'm enjoying the discussion. On Tuesday, October 16, 2012 7:01:47 AM UTC-7, jcbollinger wrote: > > > > On Monday, October 15, 2012 4:32:28 PM UTC-5, Ellison Marks wrote: >> >> I don't intend to use parametrized declarations(Right now I'm simply >> using hiera_include in the default no

Re: [Puppet Users] Re: Wrapper classes, ordering & anchors

2012-10-16 Thread jcbollinger
On Thursday, October 11, 2012 6:27:07 PM UTC-5, Jeff McCune wrote: > > > Yeah, but sometimes the need to manage both sides of the wrapper class is > un-avoidable. I often find this to be the case when I'm dealing with > interpreter packages like java, ruby, perl, python, etc... The classes >

Re: [Puppet Users] yum.puppetlabs.com rsync problem

2012-10-16 Thread Jeff McCune
On Mon, Oct 15, 2012 at 11:45 PM, Andrey Kononov wrote: > rsync to yum.puppetlabs.com didn`t work now =( > > 22/tcp open ssh > 25/tcp closed smtp > 80/tcp open http > 443/tcp open https > 631/tcp closed ipp > /tcp closed unknown > 5666/tcp open nrpe It seems to be working for

[Puppet Users] How to trace puppet execution to troubleshoot odd problems

2012-10-16 Thread HPUX_PUPPET
What is the best way to get a full trace of what puppet is doing, with variable dumps and state, to troubleshoot problems like where a user's password keeps getting reset every time puppet runs even though the password hashes match? I want to hack out a way to get HPUX working like we have ou

[Puppet Users] Tracing puppet processing for HP-UX user passwords

2012-10-16 Thread HPUX_PUPPET
I have finally gotten Ruby 1.8.7 to compile properly with SSL libraries on HPUX so now I am fighting how to get puppet to manage passwords. First I modified the hpux.rb under the providers/user directory to have it use /usr/sam/lbin/useradd.sam to add users and that worked great right off th

Re: [Puppet Users] PHP modules

2012-10-16 Thread Jakov Sosic
On 10/16/2012 04:42 PM, Brent Clark wrote: > Good day. > > I would like to ask. Does anyone have an elegant way to manage the PHP > modules that are not available via a repository, and that can only be > installed via pecl or pear. > > Ideally, it would actually be better if Debians dh-make-(pear

Re: [Puppet Users] Setting up Java on Windows

2012-10-16 Thread Josh Cooper
On Tue, Oct 16, 2012 at 6:14 AM, Matthew Burgess wrote: > On Tue, Oct 16, 2012 at 5:45 AM, wukong wrote: > >> Also is there a way to do this as silent install? >> >> Here is my manifest. >> >> package {"java" : >> ensure => installed, >> provider => "windows", >> source => "C:/Manifes

Re: [Puppet Users] How to trace puppet execution to troubleshoot odd problems

2012-10-16 Thread Jeff McCune
On Tue, Oct 16, 2012 at 10:48 AM, HPUX_PUPPET wrote: > What is the best way to get a full trace of what puppet is doing, with > variable dumps and state, to troubleshoot problems like where a user's > password keeps getting reset every time puppet runs even though the > password hashes match? >

[Puppet Users] Custom Ruby

2012-10-16 Thread Jamie
Is it possible to tell Puppet (and Facter for that matter) to use a custom Ruby that exists alongside the Ruby 1.8.7 that comes with CentOS 5 without converting the entire host to only use the custom version? I'm in an environment where we're stuck on CentOS 5 for some time and it's ancient Ru

[Puppet Users] Re: Custom Ruby

2012-10-16 Thread Jamie
BTW, I want to do this so that I can upgrade to Puppet 3 On Tuesday, October 16, 2012 12:15:30 PM UTC-7, Jamie wrote: > > Is it possible to tell Puppet (and Facter for that matter) to use a > custom Ruby that exists alongside the Ruby 1.8.7 that comes with CentOS 5 > without converting the ent

[Puppet Users] puppet module and no internet connection

2012-10-16 Thread Dan
Hi, I managed to get a puppet module on a server and tried to install it but I got the following and am now lost on how to get round this: puppet module install puppetlabs-xinetd-1.1.0 Preparing to install into /etc/puppet/modules ... Downloading from http://forge.puppetlabs.com ... Error: Erro

[Puppet Users] Puppet dashboard over passenger: The environment must be purely alphanumeric, not ''

2012-10-16 Thread Andrew Gooding
Hello, I installed puppet-server, passenger and dashboard. I have tested every step in between to make sure all is running well and not errors are carrying forward. Dashboard worked well with my test in WEBrick. After configure the dashboard with passenger I got the message” The environm

Re: [Puppet Users] Custom Ruby

2012-10-16 Thread Matthaus Owens
You can rebuild puppet and/or facter to use the ruby you have available. It should only require modifying a couple of lines in the spec file. You'd need to modify the ruby dependencies and the rubylib. On Tue, Oct 16, 2012 at 12:15 PM, Jamie wrote: > Is it possible to tell Puppet (and Facter for

[Puppet Users] puppet windows importing manifests twice when using puppet apply

2012-10-16 Thread Corey Osman
I am trying to create a masterless local windows installer and I have run into an issue where puppet is importing my manfiests multiple times creating multiple declaration errors. You may notice the importing occurs twice but with different directory layouts. One import is via puppet while th

Re: [Puppet Users] Custom Ruby

2012-10-16 Thread Jamie
Awesome! I'll try that, thank you. On Tuesday, October 16, 2012 1:27:21 PM UTC-7, Matthaus Litteken wrote: > > You can rebuild puppet and/or facter to use the ruby you have > available. It should only require modifying a couple of lines in the > spec file. You'd need to modify the ruby depend

[Puppet Users] Re: Setting up Java on Windows

2012-10-16 Thread Corey Osman
I wasn't aware that you could use the package resource for exe files since it looked like it was limited to msi files. I ended up crafting up this solution using exec resource exec{"jdkinstaller": command => "${::installer_dir}/jdk-6u30-windows-i586.exe /s ADDLOCAL=\"ToolsFeature,DemosFeatu

[Puppet Users] Re: Unable to create the rrd graph

2012-10-16 Thread Nishant Jain
Can anybody reply on how to resolve this issue On Tuesday, October 16, 2012 9:45:49 AM UTC-4, Nishant Jain wrote: > > Hello Everybody, >I have been trying to use the rrdgraph > reporting feature available in puppet. >After performing all th

Re: [Puppet Users] puppet windows importing manifests twice when using puppet apply

2012-10-16 Thread Josh Cooper
Hi Corey, On Tue, Oct 16, 2012 at 1:34 PM, Corey Osman wrote: > I am trying to create a masterless local windows installer and I have run > into an issue where puppet is importing my manfiests multiple times creating > multiple declaration errors. > > You may notice the importing occurs twice but

Re: [Puppet Users] puppet module and no internet connection

2012-10-16 Thread Ryan Coleman
Hi Dan, If you can't connect to Forge from your node and using the http_proxy configuration option isn't viable, you can download the tarball directly from the Forge website and install it with the puppet module tool. First, download the tarball from the website: http://forge.puppetlabs.com/puppe

Re: [Puppet Users] Custom Ruby

2012-10-16 Thread Craig White
On Oct 16, 2012, at 12:15 PM, Jamie wrote: > Is it possible to tell Puppet (and Facter for that matter) to use a custom > Ruby that exists alongside the Ruby 1.8.7 that comes with CentOS 5 without > converting the entire host to only use the custom version? > > I'm in an environment where we'

Re: [Puppet Users] Custom Ruby

2012-10-16 Thread Jakov Sosic
On 10/17/2012 01:02 AM, Craig White wrote: The puppet server should probably be running on something newer than CentOS 5.x (a vm perhaps?) Can you run 3.0 server with 2.7 clients? -- Jakov Sosic www.srce.unizg.hr -- You received this message because you are subscribed to the Google Groups

[Puppet Users] Access to the Puppet open source tarballs

2012-10-16 Thread James Turnbull
Hi all There has been some discussion lately on the list about a change we made to the website. The change removed the link that allows you to bypass providing your email when downloading tarballs on this page: http://info.puppetlabs.com/download-puppet-open-source In light of that discussion we

Re: [Puppet Users] Custom Ruby

2012-10-16 Thread Michael Stahnke
On Tue, Oct 16, 2012 at 4:37 PM, Jakov Sosic wrote: > On 10/17/2012 01:02 AM, Craig White wrote: >> >> The puppet server should probably be running on something newer than >> CentOS 5.x (a vm perhaps?) > > > Can you run 3.0 server with 2.7 clients? Yes. > > > > -- > Jakov Sosic > www.srce.unizg.h

[Puppet Users] Re: Access to the Puppet open source tarballs

2012-10-16 Thread windowsrefund
James, Thanks for the discussions and speedy resolution. Much appreciated. All the best, Adam Kosmin -- 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/-/8Fc

[Puppet Users] Custom Provider not being loaded

2012-10-16 Thread Thomas Biddle
I am attempting to use Chocolatey ( http://chocolatey.org ) as a package provider for Puppet, but I continually get this error when running the Puppet agent on my Win 7 box. info: Caching catalog for ldap-windows-vm.localdomain err: Failed to apply catalog: Parameter provider failed: Invalid p

Re: [Puppet Users] Custom Ruby

2012-10-16 Thread Josh Cooper
On Tue, Oct 16, 2012 at 4:50 PM, Michael Stahnke wrote: > On Tue, Oct 16, 2012 at 4:37 PM, Jakov Sosic wrote: >> On 10/17/2012 01:02 AM, Craig White wrote: >>> >>> The puppet server should probably be running on something newer than >>> CentOS 5.x (a vm perhaps?) >> >> >> Can you run 3.0 server w

Re: [Puppet Users] Still fighting with "tidy"

2012-10-16 Thread Dan White
>> Is the behavior the same if you leave off the trailing '/' from the resource >> title? What if you use "matches => ['[^.]*', '.[^.]*', '..?*']" (i.e. >> everything except . and ..)? You shouldn't have to jump through such hoops, >> but I think it's clear that Puppet has some deficiencies h

[Puppet Users] Re: Custom Provider not being loaded

2012-10-16 Thread Thomas Biddle
Got it. Not sure if this is a bug, if I was placing it in the wrong scope and that's just bad practice - but: The provider needed to be in ` /etc/puppet/modules ` while I had it in ` /etc/puppet/environments/beta/modules ` (With the rest of the items in my beta environment). Would still love

Re: [Puppet Users] Re: Custom Provider not being loaded

2012-10-16 Thread Ryan Coleman
Hi TJ, On Tue, Oct 16, 2012 at 7:00 PM, Thomas Biddle wrote: > Got it. > > Not sure if this is a bug, if I was placing it in the wrong scope and > that's just bad practice - but: > > The provider needed to be in ` /etc/puppet/modules ` while I had it in ` > /etc/puppet/environments/beta/modules

[Puppet Users] want to find the agent utilization

2012-10-16 Thread SRIRAAM DHILIBAN
Is there any way to get the report about how much the agent is utilized and how much time the agent is powered ON using PE ? . Will the agent send any report when it is powering ON and powering OFF ..Will the uptime of each agent gets saved anywhere in the master's database -- You received t