Re: [Puppet Users] Official puppetlabs position on cron vs puppet as a service?

2011-09-30 Thread Joshua Anderson
Are you using custom facts? If so, you should check to see if any of them are unintentionally doing Bad Things, e.g., modifying global state like environment variables. -Josh On Sep 24, 2011, at 7:22 AM, treydock wrote: > > > On Sep 23, 5:42 pm, Brian Gupta wrote: >> Over the years many sho

Re: [Puppet Users] Managing a "complex" directory structure

2010-11-18 Thread Joshua Anderson
Hi Lars, Take a look at virtual resources: http://projects.puppetlabs.com/projects/1/wiki/Virtual_Resources -Josh On Nov 18, 2010, at 3:28 PM, Lars Francke wrote: > Hi, > > I'm trying to manage our Hadoop cluster with Puppet but there are a > few challenges. The one I'm facing now is managing

Re: [Puppet Users] Re: Exec doesn't work with Ubuntu Server 10.04 (Lucid Lynx) 64bit

2010-02-13 Thread Joshua Anderson
I'm afraid that I couldn't reproduce this on a Debian VM with Kai's example. Here's my attempt: j...@debian:~$ uname -a Linux debian 2.6.18.8-x86_64-linode10 #1 SMP Tue Nov 10 16:29:17 UTC 2009 x86_64 GNU/Linux j...@debian:~$ ruby -v ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux] j...@deb

Re: [Puppet Users] Re: How to disable file checksums?

2010-02-12 Thread Joshua Anderson
On Feb 9, 2010, at 11:12 AM, Tim Stoop wrote: > file { "/tmp": mode => 1777 } I think you're seeing odd behavior because Puppet doesn't know that /tmp is supposed to be a directory. Try this instead: file { "/tmp": ensure => directory, mode => 1777 } -Josh -- You received this message becau

Re: [Puppet Users] Re: puppet logging with passenger

2010-01-07 Thread Joshua Anderson
Adding --logdest /path/to/your/log to your config.ru file should work. Here's what I'm using with 0.25.1 and Passenger 2.2.7: # a config.ru, for use with every rack-compatible webserver. # SSL needs to be handled outside this, though. # if puppet is not i

[Puppet Users] Re: Puppetd downloading sourced file on *every* run

2009-09-10 Thread Joshua Anderson
Nevermind, I fooled myself. Initially, I had set checksum => mtime on my test file (to try to avoid the disk I/O of checksumming a 30MB file). I didn't realize that using the source parameter forced an MD5 checksum, and that was why I saw the file content being read in truss. I did find a

[Puppet Users] Puppetd downloading sourced file on *every* run

2009-09-10 Thread Joshua Anderson
Hi all, I'm testing fileserving performance under 0.25 and I noticed that processing large files seems to take much longer than it should. Here's what I've got: class filetest { file { "/var/tmp/test.tar": source => "puppet:///filetest/test.tar", backup

[Puppet Users] Re: watching a file remotely / trigger a command?

2009-03-17 Thread Joshua Anderson
> Been racking my brain and I don't think there is a way to do it so I > come to the experts. I have a puppet server and a client. Pretty > simple - so here is the problem. I have a job that runs on the CLIENT > and creates a file. I want puppet to notice when this file changes on > the CLIENT and

[Puppet Users] Re: Puppet ensure file statement pointing to earlier defined file

2009-03-17 Thread Joshua Anderson
On Mar 17, 2009, at 7:45 AM, Ivo van der Meer wrote: > Is my syntax wrong or isn't it possible yet to use the "ensure" > statement > like this ? > > >"sym_ldap.conf": > path => $operatingsystem ? { >"FreeBSD" => "/usr/local/etc/ldap.conf", >"Debian" => "/etc/ldap.conf"

[Puppet Users] Re: Expert Idempotency Question: Multi-Mysql Installation File System Creation Question

2009-03-16 Thread Joshua Anderson
Having to work around defining parent directories multiple times is kind of annoying. It'd be nice to be able to say something like: file { "/usr/local/something": ensure => directory, createparent => true } This would be the equivalent of doing a mkdir -p. The parent directory (or dir

[Puppet Users] Re: Puppet best practices: location specific configuration...

2009-03-12 Thread Joshua Anderson
Hi, Daniel. > So, we have these machine configurations: > > NTP master: fetch from an upstream server, serve local subnet > NTP client: fetch from local server, serve no one > > We need, for each host, to configure it as either an NTP master or > client, talking to the appropriate servers — and

[Puppet Users] Re: More fun with conditionals and structure...

2009-03-09 Thread Joshua Anderson
Case statements don't work inside of resource definitions. There are three ways I can think of do what you're doing: 1. Use multiple inline selectors. (Very long and ugly.) 2. Write four different definitions of the NTP service and wrap them in a case statement (Not as long, but still ugly.)

[Puppet Users] Re: custom facts not working

2009-03-09 Thread Joshua Anderson
You have to run facter with the "-p" argument if you want to see facts distributed by Puppet. -Josh On Mar 9, 2009, at 1:50 PM, Steve Wray wrote: > > Hi there, > > I'm trying to use a fact to tell whether the machine is virtualised. > > I found this and, in testing, its been ok: > http://redu

[Puppet Users] Re: creating symlinks?

2009-03-09 Thread Joshua Anderson
That's rather odd. I just tested it with 0.24.7 on my workstation, and the "ensure => [link target]" syntax works for me. Do you see anything odd in the logs? -Josh On Mar 9, 2009, at 1:10 PM, Steve Wray wrote: > > Based on the documentation I had thought that this: > > file { "/var/puppe

[Puppet Users] Re: Connection timeout calling fileserver.describe: socket read timeout

2009-03-02 Thread Joshua Anderson
On Mar 2, 2009, at 6:18 AM, Arnau Bria wrote: > So, when all hosts connect, I get 100 connections per daemon, more or > less. (When I started I did it with 3 puppetmasters and I got too many > connections, and I got " Connection timeout calling > puppetmaster.getconfig" many times, now it happens

[Puppet Users] Multiple certificate authorities?

2009-02-24 Thread Joshua Anderson
Hi, everyone. I'm trying to set up multiple CAs as described on the wiki at http://reductivelabs.com/trac/puppet/wiki/MultipleCertificateAuthorities , but I've run into an annoying problem. I followed the instructions on the page exactly and openssl s_client/ s_server is able to verify the cer