Re: [Puppet Users] Run stages implicitly include classes, is this behavior intended?

2011-02-02 Thread Ben Lavender
On Wed, Feb 2, 2011 at 2:57 PM, Felix Frank wrote: >> Yes: the class statement in the equivalent of "include", as well as >> assigning that metadata. > > ...the workaround being: Use class instead of include in your ruby > manifest (is this available?) and select the desired stage right there. It

[Puppet Users] Run stages implicitly include classes, is this behavior intended?

2011-01-30 Thread Ben Lavender
So I am using a mix of old puppet and the Ruby DSL on a new project (loving it, new as it is!). But I've run into some behavior that surprised me. In my default node, (.pp), I have, among others, these lines: node "default" { class { 'amqp': stage => system } include roles } (It seems that w

[Puppet Users] Re: Problem with multiple requires in Ruby DSL

2011-01-10 Thread Ben Lavender
Yep, that did the trick. Seems I extrapolated the 'string that looks like puppet' one step too far. I added an example to the wiki. Thanks, Ben On Jan 10, 2:58 pm, Stefan Schulte wrote: > On Mon, Jan 10, 2011 at 12:27:13PM -0800, Ben Lavender wrote: > > I'm loving pla

[Puppet Users] Problem with multiple requires in Ruby DSL

2011-01-10 Thread Ben Lavender
I'm loving playing around with the DSL. There are some problems (ie 5237), but now that it's Ruby, I can fix them! woo! However, I'm stumped on this one, which may or may not be related to the DSL. When trying to have a resource have a simple dependency on two things at once, it simply fails, an

[Puppet Users] Running on EC2 without a puppetmaster?

2010-03-16 Thread Ben Lavender
Hi all, I'm setting up a buzzword-compliant auto-scaling thing on EC2, and I have something I'd like some more opinion on. Namely, I am going to be making my own AMI (getting the app set up takes ~20 mins otherwise), and it seems perfectly workable to store the entire config in /etc/puppet and ju

[Puppet Users] Re: ssh authorized keys fails

2010-03-05 Thread Ben Lavender
*slap forehead* This is on 0.25.4, the latest gem as of ~2 weeks ago. Thanks, Ben On Mar 5, 2:18 pm, Peter Meier wrote: > Zitat von Ben Lavender : > > > > > Can someone tell me what's wrong here?  Or should I reopen #2487, > >http://projects.

[Puppet Users] ssh authorized keys fails

2010-03-05 Thread Ben Lavender
Can someone tell me what's wrong here? Or should I reopen #2487, http://projects.reductivelabs.com/issues/2487 ? I have this config: === class devusers { dev_user { "ben": uid => 510, keytype => "ssh-rsa", keyname => "b...@7.106.cp", key => "blahblah" } dev_user { "yuri":

[Puppet Users] Cannot create authorized key and user in the same go?

2009-11-11 Thread Ben Lavender
Hi, I'm trying to create an authorized key and a user in one go and I'm not getting anywhere: class users { user { "ben" : ensure => present, uid => 1010, gid => "users", managehome => true, password => "blahblah" } ssh_authorized_key { "ben-key": ensure => present,

[Puppet Users] Re: ensure => true not working for sshd

2009-09-20 Thread Ben Lavender
>> That's exactly the reason (I presume) why the redhat provider doesn't >> set hasstatus. > > I run sshd under runit and wanted to ensure that there was no sshd > daemon started from the standard init script. > > I use this: > > status     => "pgrep -f '/usr/sbin/sshd' -P 1" > > ie. check for ssh

[Puppet Users] Re: ensure => true not working for sshd

2009-09-18 Thread Ben Lavender
I suppose this little gotcha is not a bad thing to have on the mailing list for google to find in any case. Thanks again for the help! Ben On Sep 18, 10:41 am, David Schmitt wrote: > Ben Lavender wrote: > > Hello, > > > I'm confused why puppet wont start a service I

[Puppet Users] ensure => true not working for sshd

2009-09-18 Thread Ben Lavender
Hello, I'm confused why puppet wont start a service I have configured. In the module, which is definitely being run (everything else in it works): service { ssh: name => 'sshd', ensure => true, enable => true } As I understand the docs, the ensure => true should start sshd if it is n

[Puppet Users] Re: Puppet cannot find custom functions

2009-09-15 Thread Ben Lavender
n Marcus > 505-667-5666 > > On Aug 5, 2009, at 10:52 PM, Ben Lavender wrote: > > > > > > > Actually, I take that back--it would not appear to be the same issue > > as #2494 at all. > > > I also have the functions file in this directory: > > /etc/pup

[Puppet Users] Re: Puppet cannot find custom functions

2009-08-05 Thread Ben Lavender
/WritingYourOwnFunctions , but it was not. I'm starting to worry that I'm missing something terribly simple and obvious. Ben On Aug 6, 1:47 am, Ben Lavender wrote: > Perhaps this is the same issue, but the workaround does not seem to > work.  Starting puppetmasterd with --libdir=/va

[Puppet Users] Re: Purging non-LDAP users, but ignore the LDAP users?

2009-08-05 Thread Ben Lavender
Thanks. This is a good idea to try and fix this. On Aug 5, 8:34 pm, Nicolas Szalay wrote: > Le mercredi 05 août 2009 à 04:01 -0700, Ben Lavender a écrit : > > > For the reasons you just explained, this won't do.  Users like daemon, > > cron, and various system accounts a

[Puppet Users] Re: Puppet cannot find custom functions

2009-08-05 Thread Ben Lavender
Perhaps this is the same issue, but the workaround does not seem to work. Starting puppetmasterd with --libdir=/var/lib/puppet/lib does not fix the problem. On Aug 5, 9:13 pm, Larry Ludwig wrote: > > Can someone tell me what I'm doing wrong here?  According to the link > > referenced above, pup

[Puppet Users] Re: Purging non-LDAP users, but ignore the LDAP users?

2009-08-05 Thread Ben Lavender
> If that's really what you want -- purging /etc/passwd -- using a File > would be much easier and directly capture your intent: > >         file { >                 "/etc/passwd": >                         ensure => absent; >         } > > I'd recommend to provide at least a few system users in

[Puppet Users] Purging non-LDAP users, but ignore the LDAP users?

2009-08-05 Thread Ben Lavender
I'm trying to manage my userbase in puppet and having some trouble. My setup: users exist in LDAP. Public keys exist in LDAP (I really recommend this patch, see http://code.google.com/p/openssh-lpk/wiki/Main). Some machines use NFS to mount an exported set of home directories; others do not. T

[Puppet Users] Puppet cannot find custom functions

2009-08-04 Thread Ben Lavender
Hello, I'm trying to do almost exactly what the cookbook at http://reductivelabs.com/trac/puppet/wiki/WritingYourOwnFunctions is doing, namely, adding a custom hash function to determine what time cron should run. However, I can't get puppet to find my function. I've got it symlinked all over:

[Puppet Users] Re: Ensure that nfs mounts are nosuid

2009-07-08 Thread Ben Lavender
On Jul 7, 6:17 pm, Scott Smith wrote: > Ben Lavender wrote: > > I'm not trying to define the mounts themselves in puppet. > > Why not? Because: * I do not see the point in doing necessarily per-machine configuration centrally. One day when it's all on a SAN, that mig

[Puppet Users] Ensuring NFS clients are suid

2009-07-07 Thread Ben Lavender
Hello, I'm having trouble finding a way to ensure that NFS clients on each of my managed machines are suid. I am not trying to manage the mount points themselves with puppet (another discussion, but I don't see the advantages to machine-specific configuration being done centrally). This means th

[Puppet Users] Ensure that nfs mounts are nosuid

2009-07-07 Thread Ben Lavender
Hello, I'm in the process of setting up puppet for my installation. One of the things I'm tasked with doing is making sure that all network mounts are nosuid. I'm not entirely sure how to do this. I don't think I want the 'mount' type; I'm not trying to define the mounts themselves in puppet.