[Puppet Users] 0.25 and modulepath

2009-09-02 Thread Thomas Bellman
I'm trying to use a snapshot of the upcoming 0.25 release on nontrivial manifests for the first time, and I'm having some problems. Specifically, I'm using the stand-alone 'puppet' executable, and find that it seems to ignore the --modulepath option. Or, for that matter, the modulepath setting

[Puppet Users] Redmine not mailing puppet-bugs?

2009-08-28 Thread Thomas Bellman
Larry Ludwig wrote: Go back into your config and make sure emailing is re-enabled. I'm not sure if something was changed globally in our redmine config. James any idea? The mailings don't go out to the puppet-b...@googlegroups.com mailing list (which I subscribe to). There's nothing

[Puppet Users] Variables redefine

2009-08-27 Thread Thomas Bellman
Evan Hisey wrote: I think you should have class myclass ($passwd = 111) { file { this syntax is completely new to me, where is it documented? thanks and cheers pete It is document under variable scope in the puppet language guide. The short version or rule of thumb I use is

[Puppet Users] appending to arrays - bug?

2009-08-25 Thread Thomas Bellman
David Schmitt wrote: A possible workaround would be a puppet function which takes any number of arrays and returns their concatenation (or (distinct) union). Shameless plug: I have such a function in my 'nsc-puppet-utils' module at http://www.nsc.liu.se/~bellman/nsc-puppet-utils.git. :-)

[Puppet Users] Re: onlyif/unless vs. if

2009-08-25 Thread Thomas Bellman
Allan Marcus wrote: This has probably been discussed, but I would like an exec to only be executed if a facter variable is true. Seems there are two ways of doing this, but I can only get the if way to work. # $lanl_sav_defdate is a custom fact # make sure the live update file is

[Puppet Users] Re: managing ip addresses

2009-08-19 Thread Thomas Bellman
Chris Blumentritt wrote: I am trying to manage ip address aliases and I cannot come up with a good strategy. I have three webhead servers that are balanced via a hardware load balancer. I have a define that will be setting up website config on each server and one piece I need to sort

[Puppet Users] Alerts in puppet and puppetmaster

2009-08-17 Thread Thomas Bellman
James Turnbull wrote: Then have a look at piping the results of one of the reports (or designing your own report - they are very extensible) to something: They may be very extensible, but they aren't very well documented, so you need to be at least a couple levels higher on Puppet wizardry

[Puppet Users] variable variable naming

2009-08-12 Thread Thomas Bellman
Jan Werner wrote: eh. while writing the things above, i'd propably found a solution: node definitions says: $listenif = eth0 now the magic class comes to it's action and has the following code: case $listenif { eth0: $listenip = $ipaddress_eth0 eth1: $listenip = $ipaddress_eth1 tun0:

[Puppet Users] Re: arrays, loops, etc

2009-07-31 Thread Thomas Bellman
Paul Lathrop wrote: While it may seem clean to you, it doesn't map very well into Puppet. You can't just have a require hanging out like that in the middle of a define, just for example. Here's what I'd do (again, not really understanding the key and keystore here): [...] key { key1:

[Puppet Users] arrays, loops, etc

2009-07-31 Thread Thomas Bellman
David Schmitt wrote: Thomas Bellman wrote: Haven't you just shifted around the problem? You still have an array that you need to process each element of, only it is now a list of keystores per key, instead of a list of keys per keystore. The actual execution is always procedural (either

[Puppet Users] Re: xenserver and puppet ?

2009-07-30 Thread Thomas Bellman
paul matthews wrote: I've had a trawl through the archives and on the wiki and could not see any reference to this but has any one done any work on provisioning of xenserver vm's via puppet? If not, I'll look to create something and report back You mean defining Xen guests (domU) on a Xen

[Puppet Users] Managing upgrading of puppet recipes

2009-07-08 Thread Thomas Bellman
would like to not have to edit puppet.conf at all to add or remove environments. Being able to configure a wildcard environment in puppet.conf would be nice.) /Thomas Bellman --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Puppet Users] Re: Variable named memory in templates

2009-07-01 Thread Thomas Bellman
David Schmitt wrote: Peter Meier wrote: it looks like memory is somehow a special variable (dunno why), but if you don't name your variable memory, it works. $memory is a fact containing amount of memory on the client. No, it isn't. At least not a fact that facter (version 1.5.5)

[Puppet Users] Variable named memory in templates

2009-06-30 Thread Thomas Bellman
I tried to use a Puppet variable named $memory and access it from a template, like this: $memory = 4711 file { /tmp/test.txt: content = inline_template(memory = %= memory %\n); } One would think that my file would contain memory = 4711 after that, but

[Puppet Users] Automatically creating subdirectories?

2009-06-22 Thread Thomas Bellman
RijilV wrote: Yeah, this is an old and know issue (unfortunately). Original bug report: http://projects.reductivelabs.com/issues/86 You can work around it with a hackish exec: exec { mkdir -p /usr/share/openvpn/easy-rsa/2.0/keys: } then tack that exec as a require to your file

[Puppet Users] Re: Do you manage your /etc/hosts via puppet

2009-06-12 Thread Thomas Bellman
Rene wrote: I think this could be nice to do. For clusters (where every node should have the same entries) it would ease the handling. If so, how do you manage it? Static file, template, augeas, other? On the Beowulf clusters where we run Puppet, we use a template. Since we want over 150

[Puppet Users] Re: Specifying nodes by type

2009-06-04 Thread Thomas Bellman
schickb wrote: I'd like to have the client specify their own node names. Actually, what I really want is for clients to specify a node type. In other words, I don't care what the machine or domain name is... I just want to know the purpose of the node. Is a compute node or a database node,

[Puppet Users] updating user passwords with puppet

2009-04-06 Thread Thomas Bellman
Trevor Vaughan wrote: Interesting, this still seems...odd, but it should work, though I'm still skeptical of using a cipher versus a true one-way hash. The normal Unix crypt(3) method uses a variant of DES to make a one-way hash. Basically, you use the password as the key to encrypt a

[Puppet Users] Re: Is there a work around to sandbox the fileserver mounts?

2009-03-27 Thread Thomas Bellman
Nigel Kersten wrote: Honestly, you just want to put everything in modules if you're using environments, and not use fileserver mounts outside of modules. But not those that you use for plugins (custom facts and custom types). You will only get confused if you try to put them into

[Puppet Users] Re: module dependencies

2009-03-12 Thread Thomas Bellman
Keith Edmunds wrote: You can depend on a class: require = Class[thatclass], before = Class[thatotherclass] But can I cause a module (or class) to depend on a class? If so, I can't find the correct syntax. No. You need to let individual resources within that class or module

[Puppet Users] Re: module dependencies

2009-03-10 Thread Thomas Bellman
Keith Edmunds wrote: Is it possible to make a module a dependency? We have a base module that contains packages, configurations, etc, that should be processed before other modules, and I'm looking for a way of enforcing a dependency on everything in the base module without having to

[Puppet Users] Re: Are version 0.24.1 and 0.24.4 good enough?

2009-02-19 Thread Thomas Bellman
Kyle Cordes wrote: At the risk of being too far offtopic here on the Puppet list: I wonder if there are, or will be, any wide-use distributions that work differently, that update incrementally rather than a whole release at a time. I imagine a world where I installed once and never upgraded

[Puppet Users] Re: RHEL 5.1 + Puppet 0.24.7, iptables not stopping

2009-01-22 Thread Thomas Bellman
the service type doesn't use the init script to check the service's status. Instead it look in the process table for a process named iptables, and if it doesn't find it, it will assume the service is stopped. You need to specify 'hasstatus = true' for it to work the right way. /Thomas Bellman

[Puppet Users] Re: debugging

2009-01-22 Thread Thomas Bellman
the --noop option: # cat test.pp node kumiko { file { /tmp/foobar: content = gazonk; } } # puppet --noop test.pp notice: //Node[kumiko]/File[/tmp/foobar]/content: is absent, should be gazonk (noop) /Thomas Bellman

[Puppet Users] Re: Using deb package management for gems (was Re: NYC Puppet Meetup)

2009-01-19 Thread Thomas Bellman
command, I'd suggest the OP to try using that. /Thomas Bellman -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAkl0pisACgkQDGpP8Cv3aqJFgQCfTCRwg5gsof0okMR4KlHA79Sn DnAAni3HgyxNenj1U7Nw6JxIQFvFdses =X

[Puppet Users] Re: Using Augeas

2008-12-17 Thread Thomas Bellman
David Lutterkort wrote: On Tue, 2008-12-16 at 09:52 +0100, Thomas Bellman wrote: 1. Is it possible to specify what lens to use for editing a certain file? Can I for instance tell it to use the sshd lens to edit an sshd config file in a non-standard place? Add the directory

[Puppet Users] Using Augeas

2008-12-16 Thread Thomas Bellman
I'm reading about Augeas to see what can be done with it, and with the new 'augeas' resource type in 0.24.7. So far I have only played using augtool, not the Puppet integration, but I have a few questions: 1. Is it possible to specify what lens to use for editing a certain file? Can I for

[Puppet Users] Re: Recipes for RHEL / Interfaces

2008-12-04 Thread Thomas Bellman
Xavier Beaudouin wrote: Assuming I have eth0 given by a dhcp I'd like to setup it to static ip... and eth1 eth2 eth3 to another IP as well. For example facter gave me ipaddress = 172.16.20.11 http://172.16.20.11 so eth0 will have 172.16.20.11 http://172.16.20.11, with gateway

[Puppet Users] Re: file / notify / exec / subscribe

2008-11-18 Thread Thomas Bellman
Arnau Bria wrote: In the example I have notify and subscribe, but I've been playing with only one, with only the other and both, and ALWAYS exec yaim_conf is executed. You are missing the refreshonly parameter to the exec type. (Nice to see other LCG sites using Puppet, by the way. :-)

[Puppet Users] Re: Inter-device orchestration

2008-11-18 Thread Thomas Bellman
environment variables, if you want to trigger on something else on the machine. /Thomas Bellman --~--~-~--~~~---~--~~ 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

[Puppet Users] Re: Reference array values

2008-11-04 Thread Thomas Bellman
Marcin Owsiany wrote: On Tue, Nov 04, 2008 at 06:03:24AM -0800, Jeff wrote: How do I reference the values of the array in this block: notify { [bin, etc, lib, man, src, tmp, var] : message = jeff: $name } i.e., what do I use in place of $name? As far as I know, foo { [a, b, c]: } is

<    1   2