Re: [Puppet Users] Puppet + APT, I am lost...

2010-09-05 Thread Marcin Owsiany
034 #445035 regards, -- Marcin Owsiany http://marcin.owsiany.pl/ GnuPG: 1024D/60F41216 FE67 DA2D 0ACA FC5E 3F75 D6F6 3A0D 8AA0 60F4 1216 "Every program in development at MIT expands until it can read mail."

Re: [Puppet Users] Puppet + OpenVZ

2010-08-17 Thread Marcin Owsiany
27;ll find there something you'd like to reuse. -- Marcin Owsiany http://marcin.owsiany.pl/ GnuPG: 1024D/60F41216 FE67 DA2D 0ACA FC5E 3F75 D6F6 3A0D 8AA0 60F4 1216 "Every program in development at MIT expa

Re: [Puppet Users] Using Puppet for application deployment

2010-03-19 Thread Marcin Owsiany
ive a database restart, degrading gracefully (serving from cache or whatever). You would not want to degrade ungracefully by shutting it down with the DB. -- Marcin Owsiany http://marcin.owsiany.pl/ GnuPG: 1024D/60F41216 FE67 DA2D 0ACA FC5E 3F75 D6F6 3A0D 8AA0 60F4 1216 "Eve

Re: [Puppet Users] Re: Magazine article comparing CPU usage of Puppet vs. Cfengine

2010-02-25 Thread Marcin Owsiany
em. The RAM > > usage could be a more significant problem in smaller systems. > > > Using nice is not an option with puppet, as all services/daemons that puppet > will start would be in the same nice level as puppet. If only there was SMF for Linux.. ;-) -- Marcin Owsiany

Re: [Puppet Users] My first type/provider - does nothing...

2010-02-17 Thread Marcin Owsiany
roject for literally years now. I guess if I don't take the opportunity to send it out now, the code might never see daylight. I hope someone finds it useful, and perhaps even give it some love. It's been quite a while since I used them, so I'm not sure if they work with modern puppet.

Re: [Puppet Users] Puppet 0.25.4 and Facter 1.5.7 debs available in debian unstable.

2010-02-11 Thread Marcin Owsiany
ble | source, all > > facter |1.5.7-1 | unstable | source, all > > > > they're both up there now. > > > > -- > > nigel > > > What is rmadison??? $ whatis rmadison rmadison (1) - - Remotely query the Debian archive database abo

Re: [Puppet Users] Class vs. definition

2010-01-31 Thread Marcin Owsiany
er per node, then the "set variable + include class" approach simply will not work. You have to use a define. (But note that you will have to vary the ${name}s of the resources in that case as well.) regards, -- Marcin Owsiany

[Puppet Users] Re: Failed to retrieve current state of resource: No child processes

2009-08-12 Thread Marcin Owsiany
On Tue, Aug 11, 2009 at 06:11:35PM +0100, Paul Nasrat wrote: > > 2009/8/11 Marcin Owsiany : > > > > Hi, > > > > I don't know whether this is a ruby, puppet, or facter bug. The whole > > issue is one of the "really weird" ones. > > Not ha

[Puppet Users] Failed to retrieve current state of resource: No child processes

2009-08-11 Thread Marcin Owsiany
;/sbin/ip", "link", "show", "eth0"], [/* 18 vars */]) = 0 10809 execve("/sbin/ifconfig", ["/sbin/ifconfig", "eth0"], [/* 18 vars */]) = 0 10811 execve("/usr/bin/which", ["which", "uptime"], [/* 21 vars

[Puppet Users] Re: exec : creates parameter does not create the file

2009-06-28 Thread Marcin Owsiany
github.com', > } > > which is more idempotent. > > /tmp is thought only for temporary files. on the different systems this > file will be missing after a certain amount of time or after a reboot. > hence puppet would rerun the exec again. Also, if "gem sources -a&qu

[Puppet Users] Re: Puppet

2009-06-15 Thread Marcin Owsiany
On Mon, Jun 15, 2009 at 09:09:03AM -0700, Jean-Michel Philippon-Nadeau wrote: > Any ideas how I can troubleshoot my issue? Perhaps run puppetd in nodaemon mode under strace. -- Marcin Owsiany http://marcin.owsiany.pl/ GnuPG: 1024D/60F41216 FE67 DA2D 0ACA FC5E 3F75 D6F6 3

[Puppet Users] Re: set password of root

2009-05-06 Thread Marcin Owsiany
I haven't > > done this yet, but assuming you have installed ruby-shadow package, > > you just need to specify the crypted string. > > > > > It's easy enough to just use sed in a exec to updatet the hash in shadow. Sounds like a recipe for a race condition :-/

[Puppet Users] Re: set password of root

2009-05-06 Thread Marcin Owsiany
On Wed, May 06, 2009 at 09:24:41AM -0500, Evan Hisey wrote: > openssl passwd -crypt $passwd [...] > encrypted password so it will go over the wire encrypted. It will now But it will still show up unencrypted in processlist. -- Marcin Owsiany http://marcin.owsiany.pl/ GnuPG:

[Puppet Users] Re: /etc/init.d/puppet on debian

2009-05-03 Thread Marcin Owsiany
if that has not been done properly. -- Marcin Owsiany http://marcin.owsiany.pl/ GnuPG: 1024D/60F41216 FE67 DA2D 0ACA FC5E 3F75 D6F6 3A0D 8AA0 60F4 1216 "Every program in development at MIT expands until it can read mail."

[Puppet Users] Re: /etc/init.d/puppet on debian

2009-04-10 Thread Marcin Owsiany
On Wed, Apr 08, 2009 at 07:44:07PM +0100, Gary Law wrote: > 2009/4/6 Marcin Owsiany > > > > > On Mon, Apr 06, 2009 at 10:50:17AM +0100, Gary Law wrote: > > > + start-stop-daemon --stop --quiet --pidfile /var/run/puppet/puppetd.pid > > [...] > > > g...@

[Puppet Users] Re: /etc/init.d/puppet on debian

2009-04-06 Thread Marcin Owsiany
d. -p, --pidfile pid-file Check whether a process has created the file pid-file. My guess would be that you need more arguments, perhaps "--name"? -- Marcin Owsiany http://marcin.owsiany.pl/ GnuPG: 1024D/60F41216 FE67 DA2D 0ACA FC5E 3F75 D6F6 3A0D 8AA0 60F4 1216

[Puppet Users] Re: Strange behaviour in OpenVZ container

2009-04-04 Thread Marcin Owsiany
t runs in the same OpenVZ container. > > When I stop puppetd, all thing goes allright. > > My puppetd/puppetmaster versions is 0.24.5 from Debian/Lenny > distribution. > > How can I find what is goes wrong? Use strace and/or tcpdump to find out what the programs

[Puppet Users] Re: /etc/init.d/puppet on debian

2009-04-04 Thread Marcin Owsiany
On Fri, Apr 03, 2009 at 05:58:45PM +0100, Gary Law wrote: > g...@dv01:/ $ sudo /etc/init.d/puppet stop [...] > I can't see any obvious reason why this isn't working sudo bash -x /etc/init.d/puppet stop might be enlightening.. -- Marcin Owsiany http://marcin.o

[Puppet Users] Re: Controlling gconf values

2009-02-21 Thread Marcin Owsiany
;: You probably want "set $name to $value for $user" to avoid duplicates... Also, perhaps an "onlyif" parameter to avoid setting this every time (unless gconftool already checks current value and no-ops if no change is required). -- Marcin Owsiany http://marcin.owsi

[Puppet Users] Re: Puppet playing badly with Debian etch rubygems

2009-01-29 Thread Marcin Owsiany
_preferences -- Marcin Owsiany http://marcin.owsiany.pl/ GnuPG: 1024D/60F41216 FE67 DA2D 0ACA FC5E 3F75 D6F6 3A0D 8AA0 60F4 1216 "Every program in development at MIT expands until it can read mail."

[Puppet Users] Re: changing "name" of resource without changing the title

2008-12-19 Thread Marcin Owsiany
=> installed, > > require => Package["vim-purge"] > > } > > Excellent suggestion. That, of course, fixed the problem. That is not ideal, though, as it leaves you with a window of not having any vim installed. It would be better if puppet just decided to install

[Puppet Users] Re: [Puppet-dev] Puppet Inside Information

2008-12-02 Thread Marcin Owsiany
e the file resource "notify" a command resource which could do anything you wanted. -- Marcin Owsiany <[EMAIL PROTECTED]> http://marcin.owsiany.pl/ GnuPG: 1024D/60F41216 FE67 DA2D 0ACA FC5E 3F75 D6F6 3A0D 8AA0 60F4 1216 "Every program in d

[Puppet Users] Re: Two files with no change trying to be modified

2008-11-26 Thread Marcin Owsiany
On Tue, Nov 25, 2008 at 06:51:02PM -0800, jrojas wrote: > > The first part I am not sure on, the second part is interesting. > Net-SNMP always does weird things. > Can you get a diff of the two files? Yes, adding --noop does that. -- Marcin Owsiany <[EMAIL PROTECTED]>

[Puppet Users] Re: Could not write crontab for root: Invalid user: root

2008-11-25 Thread Marcin Owsiany
On Tue, Nov 25, 2008 at 02:51:51AM -0800, Bruno B wrote: > > After restarting this zone it finally works. Maybe nscd got hosed? -- Marcin Owsiany <[EMAIL PROTECTED]> http://marcin.owsiany.pl/ GnuPG: 1024D/60F41216 FE67 DA2D 0ACA FC5E 3F75 D6F6 3A0D 8AA0 60F4 1

[Puppet Users] Re: Potentially dangerous behaviour of puppet with facter timeouts

2008-11-23 Thread Marcin Owsiany
> I never considered needing a default) One way is to use selectors instead of case statement in such case. In this case it would just fail with: No matching value for selector param '' at file.pp:N And all would be well. -- Marcin Owsiany <[EMAIL PROTECTED]>

[Puppet Users] Re: use of arrays with templates

2008-11-08 Thread Marcin Owsiany
file somewhere (try sticking another dummy nameserver into the array and see if it appears on the client). If you rule this out, then I definitely think this is a bug. -- Marcin Owsiany <[EMAIL PROTECTED]> http://marcin.owsiany.pl/ GnuPG: 1024D/60F41216 FE67 DA2D 0ACA FC5E

[Puppet Users] Re: use of arrays with templates

2008-11-07 Thread Marcin Owsiany
array elements to a single array. Please show a minimal example of what you do. -- Marcin Owsiany <[EMAIL PROTECTED]> http://marcin.owsiany.pl/ GnuPG: 1024D/60F41216 FE67 DA2D 0ACA FC5E 3F75 D6F6 3A0D 8AA0 60F4 1216 "Every program in development at MIT expa

[Puppet Users] Re: service not starting

2008-11-05 Thread Marcin Owsiany
othing. Have a closer look at http://reductivelabs.com/trac/puppet/wiki/TypeReference#service to see how the service type checks for running services and how you can tweak that. -- Marcin Owsiany <[EMAIL PROTECTED]> http://marcin.owsiany.pl/ GnuPG: 1024D/60F41216 FE67 DA2D 0ACA FC5E

[Puppet Users] Re: Reference array values

2008-11-04 Thread Marcin Owsiany
On Tue, Nov 04, 2008 at 04:01:06PM +0100, Thomas Bellman wrote: > > 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 { [&quo

[Puppet Users] Re: Reference array values

2008-11-04 Thread Marcin Owsiany
f: $name" > } > > i.e., what do I use in place of "$name"? As far as I know, foo { [a, b, c]: } is purely a syntactic shortcut for: foo { a: } foo { b: } foo { c: } In other words, there are actually 7 different resources in your example. -- Marcin Owsiany <[EMAIL PROT

[Puppet Users] Re: How to duplicate the 'parameter absent' behavior of user

2008-11-03 Thread Marcin Owsiany
auto-assign it. However, passing uid => null, If memory serves me, it should be uid => nil -- Marcin Owsiany <[EMAIL PROTECTED]> http://marcin.owsiany.pl/ GnuPG: 1024D/60F41216 FE67 DA2D 0ACA FC5E 3F75 D6F6 3A0D 8AA0 60F4 1216 "Every program in

[Puppet Users] Re: language trouble with metaparameters

2008-10-16 Thread Marcin Owsiany
On Thu, Oct 16, 2008 at 07:16:39AM -0700, zoniguana wrote: > Is if possible to include a class, onlyif a given file exists? Currently not, this is bug http://projects.reductivelabs.com/issues/show/651 on which I'm going to start work Really Soon Now (tm). -- Marcin Owsiany <[EMAI

[Puppet Users] test 2, please disregard

2008-09-29 Thread Marcin Owsiany
I'm having problems with google groups -- Marcin Owsiany <[EMAIL PROTECTED]> http://marcin.owsiany.pl/ GnuPG: 1024D/60F41216 FE67 DA2D 0ACA FC5E 3F75 D6F6 3A0D 8AA0 60F4 1216 "Every program in development at MIT expands until

[Puppet Users] test, please disregard

2008-09-29 Thread Marcin Owsiany
I'm having problems with google groups -- Marcin Owsiany <[EMAIL PROTECTED]> http://marcin.owsiany.pl/ GnuPG: 1024D/60F41216 FE67 DA2D 0ACA FC5E 3F75 D6F6 3A0D 8AA0 60F4 1216 "Every program in development at MIT expands until