Re: [Puppet Users] Re: Looping in Ruby DSL

2012-02-09 Thread Felix Frank
On 02/09/2012 05:50 AM, Eric Shamow wrote: Sateesh, It is better if you don't look at it as a loop. A loop is a very procedural concept. You are working with a machine that you are trying to get into a fixed state. So better to think I want to have a bunch of similar-looking resources

[Puppet Users] How to add Node Description as extra column in table overview

2012-02-09 Thread Dig Deeper
Hi, I have about 20+ nodes managed with Puppet, and they all have names like xyz-123. I added a description to each of them (e.g. like test build server, production DB 1, etc.). Now what I would like, is to have these description strings displayed in the dashboard tables (e.g. All,

Re: [Puppet Users] Re: Schedule for own resources?

2012-02-09 Thread Felix Frank
Hi, On 02/03/2012 08:38 AM, Os wrote: On Feb 2, 9:43 pm, jcbollinger john.bollin...@stjude.org wrote: Hmm. That statement may have been overly optimistic. I think it's pretty clear clear cut that schedules *should* work for defined type instances, but perhaps Puppet is buggy in that

[Puppet Users] Time interval within execution of scripts from the server

2012-02-09 Thread mukulm
Hi, I have multiple script to be copied executed from the puppet server on the client systems but i want to execute each script within a timeframe such as hourly, weekly or monthly from the puppet server as i dont want to execute all scripts on the same frequency. Any help will be greatly

[Puppet Users] Cache for the local system while offline

2012-02-09 Thread mukulm
Hi, I want to cache the updates for the users system received from the server so that the users can get the updates from the local system cache while offline. Any idea how can server updates be stored on the users system while offline ? Thanks mukulm -- You received this message because you

[Puppet Users] Re: puppet, virtualenv, and .bashrc

2012-02-09 Thread jcbollinger
On Feb 8, 2:13 pm, kevin c kcalla...@gmail.com wrote: Thanks John,     exec { 'panama-eggs':         path    = [/bin,/usr/bin,/usr/local/python/bin],         environment = ['WORKON_HOME=/home/panama/.virtualenvs', 'PIP_LOG_FILE=/tmp/pip-freeze-prod.log', 'PIP_VIRTUALENV_BASE=/home/

[Puppet Users] Odd behavior with hiera 0.3.0

2012-02-09 Thread windowsrefund
$ cat /etc/hiera.yaml --- :hierarchy: - %{operatingsystem} - common :backends: - yaml :yaml: :datadir: /tmp/hieradata $ cat /tmp/hieradata/Debian.yaml --- kitty : 'Handsome' $ cat /tmp/hieradata/common.yaml --- kitty : 'Evil' $ facter operatingsystem Debian $ hiera -d kitty DEBUG: Thu

Re: [Puppet Users] Odd behavior with hiera 0.3.0

2012-02-09 Thread Eric Shamow
Hiera as a command line tool is unaware of the $::operatingsystem variable available to Puppet as a fact. So when running through puppet, operatingsystem would be a known value, but when running through the command line, you need to specify whatever information hiera needs to parse. -Eric

Re: [Puppet Users] Odd behavior with hiera 0.3.0

2012-02-09 Thread Eric Shamow
To add: there's a reason for this - you are likely running the command line tool on the master, where facter output does not match what it would be when evaluating a client. So you are essentially saying for a client that looks like X, what would hiera tell me? One thought would be to write a

[Puppet Users] Re: Odd behavior with hiera 0.3.0

2012-02-09 Thread windowsrefund
Excellent. I didn't realize this behavior of the standalone hiera binary. Thanks again. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email

[Puppet Users] Re: Newbie: Confused about where to start managing users...

2012-02-09 Thread jcbollinger
On Feb 8, 11:02 am, Peter Valdemar Mørch pmo...@gmail.com wrote: On Wed, Feb 8, 2012 at 4:23 PM, jcbollinger john.bollin...@stjude.org wrote: To give you a good answer, I need to understand this a bit better, and I'm having trouble with that statement.  On Unix-like systems the user name

Re: [Puppet Users] Using LDAP with puppet

2012-02-09 Thread Daniel Bahena
Sorry to ask but, what's ECN? Best regards, -- Kwame On Jan 26, 2012 11:45 AM, Matt Ackerman m...@808.org wrote: Does anyone have experience using LDAP as the ENC at medium to large scale? We have around 600 nodes but will quickly grow that to 2000 or so in short order. If so, is it working

Re: [Puppet Users] Using LDAP with puppet

2012-02-09 Thread Throwe, Jesse
ENC is the external node classifier. http://docs.puppetlabs.com/guides/external_nodes.html On Thu, Feb 9, 2012 at 2:15 PM, Daniel Bahena informa...@gmail.com wrote: Sorry to ask but, what's ECN? Best regards, -- Kwame On Jan 26, 2012 11:45 AM, Matt Ackerman m...@808.org wrote: Does

Re: [Puppet Users] Re: Strange behavior by service

2012-02-09 Thread Aaron Grewell
On 02/09/2012 06:16 AM, jcbollinger wrote: On Feb 8, 5:34 pm, Aaron Grewell aaron.grew...@gmail.com wrote: I've got a bit of a head-scratcher here, though I'm sure it must be something small. I'm trying to enable a service for next boot without starting it. That usually just works but

[Puppet Users] Puppet master can not find file_metadata for my puppet module

2012-02-09 Thread Duain Christensen
Hello, I am running a puppet master version 2.7.5 on Centos 5.7 and a puppet agent version 2.7.5. I am simply trying to apply changes to files by defining a file resource in my manifest. When I execute my puppet agent to do the installation it complains it can not find the file meta data. Here

Re: [Puppet Users] Cache for the local system while offline

2012-02-09 Thread Daniel Pittman
On Thu, Feb 9, 2012 at 06:12, mukulm smilemukul2...@gmail.com wrote: I want to cache the updates for the users system received from the server so that the users can get the updates from the local system cache while offline. Any idea how can server updates be stored on the users system while

Re: [Puppet Users] How to add Node Description as extra column in table overview

2012-02-09 Thread Daniel Pittman
On Thu, Feb 9, 2012 at 01:18, Dig Deeper deeepdig...@googlemail.com wrote: I have about 20+ nodes managed with Puppet, and they all have names like xyz-123. I added a description to each of them (e.g. like test build server, production DB 1, etc.). Now what I would like, is to have these

Re: [Puppet Users] Re: Strange behavior by service

2012-02-09 Thread Aaron Grewell
On 02/09/2012 11:39 AM, Daniel Pittman wrote: I would try adding ensure = undef to the service's parameters. If that doesn't work then I can't imagine what would. Thanks John, that did the trick. I'm not sure if I've got a service default set somewhere I didn't realize or what but at least

Re: [Puppet Users] Questions regarding Puppet with httpd.conf

2012-02-09 Thread Russell Van Tassell
On Wed, Feb 8, 2012 at 3:46 PM, the_fonz tim_stockf...@hotmail.com wrote: Hi, I'd like to start using Puppet to manage an httpd.conf file across several webservers. Others have already correctly steered you towards templates for this sort of thing, but I have one aside... each httpd.conf

Re: [Puppet Users] Why are not the reports uploading?

2012-02-09 Thread Russell Van Tassell
The silly question... that's in the agent's puppet.conf, not just in the agent section of the puppet.conf on the puppet master? Have you restarted the server and agents? Do you see anything written to /var/lib/puppet/reports at all? Is it writable by the puppet user? Do you see any obvious errors

[Puppet Users] Re: Puppet master can not find file_metadata for my puppet module

2012-02-09 Thread Duain Christensen
Thanks. That was my problem. On Feb 9, 3:14 pm, Denmat tu2bg...@gmail.com wrote: Hi, You've got a typo for your source name. puppet:///modules/neospeech/vmwrcpd at /etc/puppet/modules/neospeech/manifests/config.pp:12 notice: -rwxr-xr-x 1 puppet puppet 1172424 Dec 21 10:51 vwmrcpd

[Puppet Users] hiera failed dependencies

2012-02-09 Thread Berry Sizemore
Hi all. Even though hiera is working for my manifests (does what it should) the agents are complaining in their logs. http://pastebin.com/PKQDfPmN Can anyone suggest what might be going on? TIA -- You received this message because you are subscribed to the Google Groups Puppet Users group.

Re: [Puppet Users] hiera failed dependencies

2012-02-09 Thread Gary Larizza
Do you have an example of the code that's being run? Are you just starting to play with Hiera, or did you suddenly have issues? Are the permissions set correctly on the hiera-puppet module on your Master? I think we need a bit more information here about how you have this setup. On Thu, Feb

[Puppet Users] Re: hiera failed dependencies

2012-02-09 Thread Berry Sizemore
I found the problem. The pluginsync was not in [main]. Thanks. On Feb 9, 3:24 pm, Gary Larizza g...@puppetlabs.com wrote: Do you have an example of the code that's being run?  Are you just starting to play with Hiera, or did you suddenly have issues?  Are the permissions set correctly on the

Re: [Puppet Users] puppetd hanging on some nodes

2012-02-09 Thread Gonzalo Servat
On Thu, Feb 9, 2012 at 5:08 PM, Gonzalo Servat gser...@gmail.com wrote: Damn. Well, at least we eliminated one possible cause. Is there any chance you can run with `--debug` enabled on one of the failed machines, and see if that points to the right place? Otherwise we have to start to get

[Puppet Users] Example42 MySQL puppet-module

2012-02-09 Thread Will S. G.
Hi there, I thought I understood how this module works, but I guess I missed something. Here is what I have in my nodes.pp node 'mysql' inherits default { include mysql mysql::user { db1: mysql_password_hash = db1, mysql_user = db1,

[Puppet Users] Hiera data unusable in a class with an array parameter

2012-02-09 Thread Vlad
Given the following hiera hash: common.yaml: --- *allowed_ips:* * First IP: 1.2.3.4* * Second IP: 5.6.7.8* and the module: *class iptables ($role) {* * file {/tmp/test:* *content = template(iptables/test.erb)* * }* *}* with the corresponding template test.erb: *% role.each do |role| -% *

Re: [Puppet Users] Hiera data unusable in a class with an array parameter

2012-02-09 Thread Nan Liu
What you want is the hiera_array instead of hiera function. There's also a hiera_hash function. Thanks Nan On Feb 9, 2012, at 19:49, Vlad v...@vladgh.com wrote: Given the following hiera hash: common.yaml: --- *allowed_ips:* * First IP: 1.2.3.4* * Second IP: 5.6.7.8* and the module: *class

[Puppet Users] opensource VPN modules

2012-02-09 Thread Gabriel Filion
Hey there, Do you guys know of opensourced puppet modules for managing VPN services? I've only found a handful of modules for openvpn that seemed less than complete. -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to

Re: [Puppet Users] Hiera data unusable in a class with an array parameter

2012-02-09 Thread Vlad
Thanks Nan, I've tried them all (hiera, hiera_array and hiera_hash), unfortunately with no luck. Like I mentioned above, it doesn't have to be necessarily a hiera hash. Even a simple var: name inside the yaml file gives that error. As long as you have an array defined as a parameter, together

Re: [Puppet Users] Hiera data unusable in a class with an array parameter

2012-02-09 Thread Gary Larizza
Vlad, Have you tried setting the variable inside your Puppet manifest before you call it in the template? Something like: $ips = hiera_hash('allowed_ips') file {/tmp/test: content = template(iptables/test.erb) } And then in the template: *% ips.each do |comment, ip| -% * * code %= ip %

Re: [Puppet Users] Hiera data unusable in a class with an array parameter

2012-02-09 Thread Gabriel Filion
try adding this in your template above the call to scope.function_hiera_array(): % Puppet::Parser::Functions.function('hiera_array') -% On 12-02-09 11:47 PM, Vlad wrote: Thanks Nan, I've tried them all (hiera, hiera_array and hiera_hash), unfortunately with no luck. Like I mentioned above, it

Re: [Puppet Users] Hiera data unusable in a class with an array parameter

2012-02-09 Thread Vlad
Thanks Gary and Lelutin. Gary: That was the first thing I tried, and no luck there either. I even took out the template out of the equation and called a simple variable like: common.yaml: *--- **test: testvar* *class test ($role) {* *$ips = hiera('test') **notify {${ips}:}* } No

[Puppet Users] Hudson/Jenkins updating host parameter?

2012-02-09 Thread mkochco
Hello, We have constructed the following class for deploying some_service; class some_service { include platform_common platform_common::deployWarService { 'some_service': repo = our-repo-name, service = $some_service_name, version = $some_service_version,

Re: [Puppet Users] Hiera data unusable in a class with an array parameter

2012-02-09 Thread Nan Liu
On Thu, Feb 9, 2012 at 9:09 PM, Vlad v...@vladgh.com wrote: Thanks Gary and Lelutin. Gary: That was the first thing I tried, and no luck there either. I even took out the template out of the equation and called a simple variable like: common.yaml: --- test: testvar class test ($role) {

[Puppet Users] Re: How do I track updates to forge modules?

2012-02-09 Thread John Warburton
On 3 February 2012 09:55, John Warburton jwarbur...@gmail.com wrote: Is there a way to watch modules and be notified if they are updated? I can't see anything obvious in the documentation Anyone? Bueller? -- You received this message because you are subscribed to the Google Groups Puppet

Re: [Puppet Users] Hiera data unusable in a class with an array parameter

2012-02-09 Thread Vlad
That fixes it! Thanks. In all my debugging I assumed that can't convert Array into String referred to the hiera variables. And it was about the role variable all along. You were right, I had a top scope variable role defined in a custom fact, which was also in the hiera hierarchy, and

Re: [Puppet Users] SSL Errors - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B

2012-02-09 Thread Romeo Theriault
Hi Felix, thanks for your response to my question. It's taken me a while to get back to this issue but I finally figured it out tonight. I had a old puppetd process running in the background (I'd since moved to using cron to call puppet) that must have been holding open it's old cert files, etc...