Thursday, 2010-03-11

[2010/03/11 00:00:55] @ Log started by gepetto
[2010/03/11 00:00:55] @ artista_frustrad joined channel #puppet
[2010/03/11 00:06:08] @ Quit: artista_frustrad: Ping timeout: 265 seconds
[2010/03/11 00:12:24] @ Quit: bug_: Quit: bug_
[2010/03/11 00:15:25] @ pheezy joined channel #puppet
[2010/03/11 00:21:06] @ Quit: kolla: Remote host closed the connection
[2010/03/11 00:26:15] @ bodepd left channel #puppet ()
[2010/03/11 00:33:58] @ Quit: ahuman: Remote host closed the connection
[2010/03/11 00:36:00] @ erm_ joined channel #puppet
[2010/03/11 00:44:04] @ Quit: pheezy: Remote host closed the connection
[2010/03/11 00:45:36] <jY> i'm having issues with dashboard.. i am getting warning: No report named 'puppet_dashboard' i put puppet_dashboard.rb in /var/lib/puppet/lib
[2010/03/11 00:46:04] <jY> puppetd --configprint libdir lists /var/lib/puppet/lib
[2010/03/11 00:49:41] @ Quit: stevenjenkins: Ping timeout: 245 seconds
[2010/03/11 01:02:29] @ stevenjenkins joined channel #puppet
[2010/03/11 01:03:10] @ Quit: OpenMedia: Quit: Leaving.
[2010/03/11 01:04:39] <jY> ok.. seems like i need to put the file in /usr/lib/ruby/site_ruby/1.8/puppet/reports
[2010/03/11 01:04:48] <jY> doesn't seem like it honors the libdir
[2010/03/11 01:05:12] @ ahuman joined channel #puppet
[2010/03/11 01:10:18] @ ezmobius joined channel #puppet
[2010/03/11 01:13:42] @ Quit: tuf: Quit: Look whos tuf now..
[2010/03/11 01:34:00] @ Quit: ahuman: Remote host closed the connection
[2010/03/11 01:35:02] @ Quit: jes5: Quit: Leaving.
[2010/03/11 01:46:24] @ tuf joined channel #puppet
[2010/03/11 01:55:01] @ Quit: pting: Quit: Ex-Chat
[2010/03/11 01:58:32] @ Quit: ezmobius: Remote host closed the connection
[2010/03/11 02:03:32] @ rmiller4pi81 joined channel #puppet
[2010/03/11 02:04:06] @ cbrinke1 joined channel #puppet
[2010/03/11 02:05:09] @ Quit: rmiller4pi8: Ping timeout: 240 seconds
[2010/03/11 02:05:50] <cbrinke1> Hello, I have a class that has a syntax of package {"apache2": ensure => installed} . If I run this class however, the package does not actually get installed, what am I missing?
[2010/03/11 02:06:43] @ tjoe joined channel #puppet
[2010/03/11 02:09:49] @ Quit: tjoe: Client Quit
[2010/03/11 02:09:55] <abien> start the client with --test --debug to check for more information on whats going on
[2010/03/11 02:10:29] <cbrinke1> is there a way to get at that info with the standalone puppet executable? I am not using puppetd
[2010/03/11 02:10:53] <abien> not sure
[2010/03/11 02:12:16] <ohadlevy> abien: the same way, puppet --debug
[2010/03/11 02:15:20] <cbrinke1> ohadlevy: is there a way to do a "dry run/test" as well?
[2010/03/11 02:15:32] <ohadlevy> --noop
[2010/03/11 02:16:09] <abien> you should consider installing the rdoc package and checkout the man page to puppetd. It contains several options and switches
[2010/03/11 02:16:56] <cbrinke1> right I have read through the puppet --help quite a bit and missed the noop/debug flags there
[2010/03/11 02:22:35] @ JJA joined channel #puppet
[2010/03/11 02:28:25] @ kolla joined channel #puppet
[2010/03/11 02:28:52] @ PsychoSid joined channel #puppet
[2010/03/11 02:30:11] @ ahuman joined channel #puppet
[2010/03/11 02:30:32] @ Quit: alban2: Quit: Leaving.
[2010/03/11 02:30:32] @ pmorillo joined channel #puppet
[2010/03/11 02:33:24] @ maxagaz joined channel #puppet
[2010/03/11 02:40:47] @ MattyM joined channel #puppet
[2010/03/11 02:45:45] @ Quit: joe-mac: Ping timeout: 252 seconds
[2010/03/11 02:45:51] @ Quit: cbrinke1: Quit: Leaving.
[2010/03/11 02:46:25] @ giskard joined channel #puppet
[2010/03/11 02:50:43] @ Quit: giskard: Remote host closed the connection
[2010/03/11 02:53:24] @ mealstrom joined channel #puppet
[2010/03/11 03:02:49] @ Quit: choffee: Read error: Operation timed out
[2010/03/11 03:03:05] @ jaredrhine joined channel #puppet
[2010/03/11 03:03:22] @ rmiller4pi8 joined channel #puppet
[2010/03/11 03:04:37] @ joe-mac joined channel #puppet
[2010/03/11 03:05:33] @ Quit: rmiller4pi81: Ping timeout: 252 seconds
[2010/03/11 03:05:43] @ choffee joined channel #puppet
[2010/03/11 03:11:52] @ kubicek joined channel #puppet
[2010/03/11 03:14:07] @ Quit: Spads: Ping timeout: 276 seconds
[2010/03/11 03:21:10] @ felipe` joined channel #puppet
[2010/03/11 03:24:22] @ gebi joined channel #puppet
[2010/03/11 03:25:24] @ Quit: PsychoSid: Quit: Leaving.
[2010/03/11 03:25:47] @ PsychoSid joined channel #puppet
[2010/03/11 03:27:49] @ Quit: biertie: Ping timeout: 265 seconds
[2010/03/11 03:28:40] @ giskard joined channel #puppet
[2010/03/11 03:29:02] @ DavidS joined channel #puppet
[2010/03/11 03:30:06] <DavidS> another fine day to ya'll
[2010/03/11 03:34:02] @ Quit: pastie: Ping timeout: 264 seconds
[2010/03/11 03:35:44] <abien> and to you :)
[2010/03/11 03:37:41] @ tim|macbook joined channel #puppet
[2010/03/11 03:38:34] @ Quit: tim|macbook: Client Quit
[2010/03/11 03:45:35] @ Quit: rcrowley: Quit: rcrowley
[2010/03/11 03:46:01] @ suchu joined channel #puppet
[2010/03/11 03:46:16] @ tim|macbook joined channel #puppet
[2010/03/11 03:52:58] @ Quit: kubicek: Quit: kubicek
[2010/03/11 03:53:56] @ Quit: MattyM: Quit: ta ta
[2010/03/11 03:56:27] @ kubicek joined channel #puppet
[2010/03/11 03:59:13] @ Quit: dim0: Ping timeout: 264 seconds
[2010/03/11 04:24:17] @ Quit: maxagaz: Read error: Operation timed out
[2010/03/11 04:24:18] @ Quit: ptman: Ping timeout: 248 seconds
[2010/03/11 04:24:20] @ ptman joined channel #puppet
[2010/03/11 04:26:17] @ jab_doa joined channel #puppet
[2010/03/11 04:31:30] @ Quit: n0ts: Quit: Tiarra 0.1+svn-35634: SIGTERM received; exit
[2010/03/11 04:31:46] @ n0ts joined channel #puppet
[2010/03/11 04:32:12] @ Quit: n0ts: Client Quit
[2010/03/11 04:34:08] <tim|macbook> what's the name of the infra channel again?
[2010/03/11 04:35:01] <ohadlevy> ##infra-talk
[2010/03/11 04:35:04] @ TREllis joined channel #puppet
[2010/03/11 04:36:57] @ alban2 joined channel #puppet
[2010/03/11 04:37:27] <tim|macbook> thx ohadlevy
[2010/03/11 04:39:25] @ maxagaz joined channel #puppet
[2010/03/11 04:40:07] @ Quit: kubicek: Quit: kubicek
[2010/03/11 04:40:31] @ n0ts joined channel #puppet
[2010/03/11 04:45:39] @ Quit: nelsonfoo: Ping timeout: 252 seconds
[2010/03/11 04:46:08] @ Dyresen_ is now known as Dyresen
[2010/03/11 04:46:50] @ nexx joined channel #puppet
[2010/03/11 04:49:02] @ nelsonfoo joined channel #puppet
[2010/03/11 04:50:40] @ rene joined channel #puppet
[2010/03/11 04:51:08] @ rene is now known as Guest47039
[2010/03/11 05:01:01] <madduck> hacim: so I think I am just going to try it and create a debian-puppet-modules group of repositories on alioth with the intention to create Debian defaults.
[2010/03/11 05:06:17] @ MattyM joined channel #puppet
[2010/03/11 05:21:29] @ Guest47039 is now known as rmayr
[2010/03/11 05:27:54] <Volcane> DavidS: sort in the contact is configurable in the next version
[2010/03/11 05:31:30] <legooolas> Has ProviderApt disappeared? I can't get Ubuntu or Debian to work with package { } stanzas at all :/
[2010/03/11 05:33:30] <tim|macbook> legooolas: what error are you getting?
[2010/03/11 05:33:55] <legooolas> "err: //apt::prerequisites/Package[cron-apt]: Failed to retrieve current state of resource: Provider yum is not functional on this platform"
[2010/03/11 05:34:11] @ danielbln joined channel #puppet
[2010/03/11 05:34:13] <tim|macbook> did you set a default to provider => "yum"?
[2010/03/11 05:34:19] <legooolas> oh
[2010/03/11 05:34:20] <legooolas> er
[2010/03/11 05:34:22] * legooolas looks
[2010/03/11 05:34:46] <legooolas> doh.
[2010/03/11 05:34:48] <legooolas> haha
[2010/03/11 05:34:51] <legooolas> Thanks for that :)
[2010/03/11 05:34:53] <tim|macbook> :)
[2010/03/11 05:35:02] <tim|macbook> we call that "rule #1" here ;-)
[2010/03/11 05:35:02] <gepetto> tim|macbook: #1 is http://projects.reductivelabs.com/issues/show/1 "Puppet - Feature #1: Differentiate classes from definitions - ReductiveLabs.com"
[2010/03/11 05:35:08] <legooolas> I'll remember that :)
[2010/03/11 05:35:11] <tim|macbook> Assumption is the mother of all fuckups.
[2010/03/11 05:35:29] <legooolas> So should I not set it at all, or set it according to $operatingsystem or whatever?
[2010/03/11 05:35:50] <legooolas> (I even left myself a note next to that setting that I should fix it for Ubuntu/Debian too..)
[2010/03/11 05:35:51] <tim|macbook> not set it at all
[2010/03/11 05:35:55] <legooolas> Ok, ta.
[2010/03/11 05:36:09] <tim|macbook> unless you really want to use something that isn't the default for that platform
[2010/03/11 05:36:14] <tim|macbook> like aptitude on debian or something
[2010/03/11 05:36:23] <legooolas> Nah, I just want it to use the default.
[2010/03/11 05:36:46] @ m1nish joined channel #puppet
[2010/03/11 05:37:16] <tim|macbook> you could do that like so: provider => $operatingsystem ? { 'Debian' => "aptitude", default => undef }
[2010/03/11 05:39:44] @ pdilung joined channel #puppet
[2010/03/11 05:39:49] <pdilung> hello
[2010/03/11 05:40:00] <pdilung> one newbie question
[2010/03/11 05:40:23] <pdilung> i am trying to deploy a new custom function
[2010/03/11 05:41:01] <legooolas> tim|macbook: That's working now, thanks :)
[2010/03/11 05:41:15] <tim|macbook> legooolas: yw!
[2010/03/11 05:41:18] <legooolas> (I'll use grep first in future :)
[2010/03/11 05:41:19] <pdilung> its defined within the module : $confdir/<modulename>/lib/puppet/parser/functions/
[2010/03/11 05:41:32] <pdilung> the function name is getip and the file name is getip.rb
[2010/03/11 05:42:23] <pdilung> however when I launch a client (on a different than master runs), I got this error message: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Unknown function getip at /pkg/AMSY/AMSYmp/sfw/etc/puppet/modules/hostentry/manifests/base.pp:9 on node zzm1s01
[2010/03/11 05:42:27] <pdilung> any help?
[2010/03/11 05:42:47] <tim|macbook> pdilung: try doing a puppetrun on your server first
[2010/03/11 05:42:51] <tim|macbook> functions are run on the puppetmaster
[2010/03/11 05:42:57] <tim|macbook> so you need to make sure they are deployed there
[2010/03/11 05:43:01] <pdilung> yep
[2010/03/11 05:43:29] <pdilung> tim|macbook: I've read the http://reductivelabs.com/trac/puppet/wiki/PluginsInModules about deployment
[2010/03/11 05:43:50] <pdilung> it says, that the puppetclient should be ran on the server side
[2010/03/11 05:43:55] <pdilung> i did it
[2010/03/11 05:44:03] <pdilung> nothing though :(
[2010/03/11 05:44:18] <tim|macbook> check if the function is copied to /var/lib/puppet/lib/puppet/parser/functions/
[2010/03/11 05:44:39] <tim|macbook> also, the module the function is part of, is it in the same environment as the environment you use on your puppetmaster?
[2010/03/11 05:46:52] <pdilung> tim|macbook: I think it can be caused by complicated setup
[2010/03/11 05:47:37] <pdilung> tim|macbook: I run it on SunOS an the master and clients are separated by means of packages and config files
[2010/03/11 05:48:31] <tim|macbook> you need to make sure the module that contains the function is available to the puppetmaster, like, it needs to be in its modulepath somewhere
[2010/03/11 05:49:41] <pdilung> tim|macbook: it is
[2010/03/11 05:50:06] <pdilung> tim|macbook: if i do not refer to the function within the module, the module works
[2010/03/11 05:51:07] <tim|macbook> on the puppetmaster?
[2010/03/11 05:51:07] <pdilung> tim|macbook: the thing is that even on puppet master node, I run "two" puppets by means of package install location
[2010/03/11 05:51:23] <tim|macbook> did you check the directory? is the function in there? on the puppetmaster?
[2010/03/11 05:51:31] <pdilung> tim|macbook: yep
[2010/03/11 05:51:35] <pdilung> I've checked
[2010/03/11 05:51:45] @ kubicek joined channel #puppet
[2010/03/11 05:51:59] <pdilung> tim|macbook: so my puppet master is located at /pkg/AMSY/AMSYmp/sfw
[2010/03/11 05:52:04] <tim|macbook> ok, as a last resort, I'd try simply restarting your puppetmaster (the daemon, not the entire machine, of course) and see if that works...
[2010/03/11 05:52:09] <tim|macbook> otherwise, I'd have no idea
[2010/03/11 05:52:22] <pdilung> tim|macbook: i did :(
[2010/03/11 05:52:44] <pdilung> tim|macbook: so my puppet client is located at /opt/puppet/sfw
[2010/03/11 05:52:59] <pdilung> tim|macbook: maybe that's why the function deployment strikes
[2010/03/11 05:53:36] <pdilung> tim|macbook: furthermore I use LDAP for storing nodes (which works after massive patches being applied to ruby-ldap)
[2010/03/11 05:53:49] @ Quit: kubicek: Client Quit
[2010/03/11 05:53:49] <pdilung> tim|macbook: and I also use mongrel
[2010/03/11 05:54:03] <pdilung> tim|macbook: but thnx for your time
[2010/03/11 05:54:10] <pdilung> tim|macbook: I'll try to figure it out
[2010/03/11 05:54:17] <pdilung> tim|macbook: and write back
[2010/03/11 06:02:38] @ biertie joined channel #puppet
[2010/03/11 06:05:23] <pdilung> tim|macbook: maybe the problem is that as I stated before, that I am using two different locations for either puppetmaster and puppe clients
[2010/03/11 06:06:11] <pdilung> tim|macbook: that means, that the "root" for puppet master software and config is /pkg/AMSY/AMSYmp/sfw
[2010/03/11 06:06:37] <pdilung> tim|macbook: whereas the "root" of client software is /pkg/puppet/sfw
[2010/03/11 06:07:43] <pdilung> so the client is likely not able to deploy the plugins, stored at /pkg/AMSY/AMSYmp/sfw/etc/puppet/modules/<modulename>/lib/puppet/parser/functions
[2010/03/11 06:08:08] @ artista_frustrad joined channel #puppet
[2010/03/11 06:08:49] <pdilung> tim|macbook: can you post me the $libdir subtree to have an idea about its structure pleas?
[2010/03/11 06:09:02] <pdilung> tim|macbook: so I copy it over manually and try
[2010/03/11 06:11:31] @ Quit: nelsonfoo: Read error: Operation timed out
[2010/03/11 06:12:19] @ Quit: vzctl_: Ping timeout: 268 seconds
[2010/03/11 06:12:39] @ vzctl_ joined channel #puppet
[2010/03/11 06:13:56] @ Quit: artista_frustrad: Ping timeout: 265 seconds
[2010/03/11 06:16:27] @ nelsonfoo joined channel #puppet
[2010/03/11 06:22:10] @ Spads joined channel #puppet
[2010/03/11 06:22:49] @ Quit: gebi: Ping timeout: 260 seconds
[2010/03/11 06:26:13] @ artista_frustrad joined channel #puppet
[2010/03/11 06:29:22] <DavidS> Volcane: what?
[2010/03/11 06:35:35] <Volcane> DavidS: i am a day late on replying - but you had a issue with sort on your system being elsewhere :)
[2010/03/11 06:35:39] <Volcane> DavidS: with my concat
[2010/03/11 06:39:39] <DavidS> ah, yeah
[2010/03/11 06:40:15] <DavidS> shouldn't scripts always rely on a proper $PATH?
[2010/03/11 06:40:34] @ Quit: suchu: Ping timeout: 264 seconds
[2010/03/11 06:40:44] <pdilung> all: I have problems loading custom functions
[2010/03/11 06:41:22] <pdilung> libdir = $vardir/lib
[2010/03/11 06:41:42] <pdilung> vardir = /pkg/AMSY/AMSYmp/sfw/var/puppet
[2010/03/11 06:41:49] <pdilung> ls -la $libdir
[2010/03/11 06:42:41] <pdilung> ls -l /pkg/AMSY/AMSYmp/sfw/var/puppet/lib/puppet/parser/functions/
[2010/03/11 06:42:55] <pdilung> getalias.rb getip.rb getname.rb
[2010/03/11 06:43:08] @ Pirate_Hunter joined channel #puppet
[2010/03/11 06:43:13] <pdilung> however the client says: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Unknown function getip at /pkg/AMSY/AMSYmp/sfw/etc/puppet/modules/hostentry/manifests/base.pp:9 on node zzm1s010
[2010/03/11 06:43:25] <pdilung> any ideas?
[2010/03/11 06:43:59] <DavidS> Volcane: anyways, removing the hardcoded paths made the script work for me
[2010/03/11 06:44:21] <DavidS> pdilung: can you pastie the contents of getip.rb (to a pastebin)
[2010/03/11 06:44:23] <DavidS> ?
[2010/03/11 06:44:52] @ Quit: artista_frustrad: Ping timeout: 265 seconds
[2010/03/11 06:45:17] <ReinH> Volcane: hi
[2010/03/11 06:46:24] <pdilung> DavidS: ok
[2010/03/11 06:46:55] <pdilung> DavidS: can you give me the pastebin url, please?
[2010/03/11 06:47:17] <DavidS> http://pastebin.org/
[2010/03/11 06:47:33] <pdilung> DavidS: ok ;)
[2010/03/11 06:49:37] <pdilung> DavidS: http://pastebin.org/109646
[2010/03/11 06:51:33] <DavidS> pdilung: strange, that looks ok. try restarting your puppetmaster and/or running under --verbose --trace
[2010/03/11 06:52:05] <pdilung> DavidS: I'll trye
[2010/03/11 06:52:11] <pdilung> DavidS: I'll try
[2010/03/11 06:52:25] <pdilung> DavidS: I've laready done restart however no trace
[2010/03/11 06:53:00] <DavidS> pdilung: what version are you running?
[2010/03/11 06:53:41] <pdilung> DavidS: 0.25.1
[2010/03/11 06:53:54] <pdilung> DavidS: But the setup is rather hacky
[2010/03/11 06:55:10] @ kubicek joined channel #puppet
[2010/03/11 06:55:10] <pdilung> DavidS: Here's the output of the client trace: http://pastebin.org/109648
[2010/03/11 06:56:37] @ bug_ joined channel #puppet
[2010/03/11 06:56:48] <DavidS> pdilung: server trace is probably more interesting, as the function is evaluated there (sorry, i wasn't specific enough)
[2010/03/11 06:57:26] @ artista_frustrad joined channel #puppet
[2010/03/11 06:57:54] @ tohi joined channel #puppet
[2010/03/11 06:57:59] @ Quit: kubicek: Client Quit
[2010/03/11 06:58:49] <tohi> hi guys; where are the manifests run? if i add a fact into a manifest like <%= hostname %> is that evaluated on the clients?
[2010/03/11 06:59:32] <DavidS> tohi: all functions and templates are evaluated on the server, **BUT** "hostname" is a *fact* that is filled from the client (see "facter" output from command line
[2010/03/11 06:59:33] <DavidS> )
[2010/03/11 07:00:07] <tohi> DavidS: how do i get the hostname of the puppetmaster?
[2010/03/11 07:00:16] <tohi> if i want something to only run on the puppetmaster
[2010/03/11 07:00:30] <pdilung> DavidS: no prob I'll paste to bin mmnt ...
[2010/03/11 07:01:04] <tim|macbook> tohi: only include that class on your puppetmaster is the best solution
[2010/03/11 07:01:06] <DavidS> tohi: add it in a class that is only included on the puppetmaster? set a flag?
[2010/03/11 07:01:10] <DavidS> race :-)
[2010/03/11 07:01:13] <tim|macbook> :D
[2010/03/11 07:01:56] <tohi> i am generating a configuration file with puppet, and i wanted to get the name of my puppetmaster from forexample a fact [just not hardcoded]
[2010/03/11 07:02:04] <tohi> perhaps i can make a exception this time
[2010/03/11 07:02:07] @ Quit: artista_frustrad: Ping timeout: 256 seconds
[2010/03/11 07:02:34] <DavidS> tohi: put $puppetmaster_hostname = "blah" on top of your site.pp
[2010/03/11 07:02:52] <tohi> yes
[2010/03/11 07:03:15] <DavidS> tohi: if you ever have multiple puppetmasters you'll have to only replace this one var with a more intelligent system
[2010/03/11 07:06:00] <tohi> DavidS: ok ill do that
[2010/03/11 07:06:13] <tohi> facts look like this: <%= hostname %> in my code i need to have quotes around it '<%= hostname %>' it seems not to get evaluated because of this
[2010/03/11 07:07:12] <DavidS> tohi: please pastebin your manifest
[2010/03/11 07:07:20] <DavidS> (and template)
[2010/03/11 07:09:15] @ Quit: PsychoSid: Quit: Leaving.
[2010/03/11 07:09:33] @ ahasenack joined channel #puppet
[2010/03/11 07:10:19] <DavidS> my puppetmaster is leaking postgres connections
[2010/03/11 07:10:36] <DavidS> err: FATAL: connection limit exceeded for non-superusers
[2010/03/11 07:13:53] @ suchu joined channel #puppet
[2010/03/11 07:15:25] <tim|macbook> DavidS: I had the same trouble with mysql some time ago
[2010/03/11 07:17:15] <tim|macbook> DavidS: #3238
[2010/03/11 07:17:16] <gepetto> tim|macbook: DavidS: #3238 is http://projects.reductivelabs.com/issues/show/3238 "Puppet - Bug #3238: puppetmaster uses to many mysql connections - ReductiveLabs.com"
[2010/03/11 07:17:51] <DavidS> tim|macbook: thanks!
[2010/03/11 07:18:02] <tim|macbook> well, might not be the same issue
[2010/03/11 07:18:38] <DavidS> I'll dare that risk :-)
[2010/03/11 07:20:39] @ Quit: morphic: Ping timeout: 276 seconds
[2010/03/11 07:20:49] <pdilung> DavidS: here's the output from puppetmasterd: http://pastebin.org/109659
[2010/03/11 07:21:14] @ PsychoSid joined channel #puppet
[2010/03/11 07:22:08] <DavidS> pdilung: ouch. you're missing a ":" in the first line: Puppet::Parser instead of Puppet:Parser
[2010/03/11 07:22:39] <DavidS> line #102 in the server trace was the pointer I needed ...
[2010/03/11 07:22:40] <gepetto> DavidS: #102 is http://projects.reductivelabs.com/issues/show/102 "Puppet - Bug #102: syslog application should not be &amp;amp;amp;amp;#34;puppet&amp;amp;amp;amp;#34; - ReductiveLabs.com"
[2010/03/11 07:22:55] @ kubicek joined channel #puppet
[2010/03/11 07:26:53] <Disconnect> grr. 'too many connections' stops it generating any manifests. (and "turn off stored configs" is not an option)
[2010/03/11 07:30:01] <DavidS> Disconnect: tim|macbook reports that upgrading to new rails version helps: see #3238
[2010/03/11 07:30:02] <gepetto> DavidS: Disconnect: #3238 is http://projects.reductivelabs.com/issues/show/3238 "Puppet - Bug #3238: puppetmaster uses to many mysql connections - ReductiveLabs.com"
[2010/03/11 07:30:38] <DavidS> I just upgraded and puppetmaster has stopped leaking connections
[2010/03/11 07:31:58] @ Quit: erm_: Ping timeout: 260 seconds
[2010/03/11 07:32:19] <tim|macbook> DavidS: good news, you might want to update the ticket to add that it solves the problem for postgresql too
[2010/03/11 07:32:55] <Disconnect> argh what was that ticket # again? client crashed
[2010/03/11 07:32:59] <DavidS> tim|macbook: already done :-)
[2010/03/11 07:33:06] <DavidS> Disconnect: #3238
[2010/03/11 07:33:07] <gepetto> DavidS: Disconnect: #3238 is http://projects.reductivelabs.com/issues/show/3238 "Puppet - Bug #3238: puppetmaster uses to many mysql connections - ReductiveLabs.com"
[2010/03/11 07:33:11] <tim|macbook> great DavidS :)
[2010/03/11 07:33:13] <Disconnect> thanks
[2010/03/11 07:33:33] <DavidS> tim|macbook: at least one thing i can do right (sometimes): bug reporting ]:-)
[2010/03/11 07:34:04] <tim|macbook> DavidS: I'm still using some of your modules, so I'm sure you can do more stuff right :P
[2010/03/11 07:34:06] @ Quit: ahuman: Remote host closed the connection
[2010/03/11 07:34:11] <tim|macbook> how's your windows app coming along?
[2010/03/11 07:34:40] <DavidS> tim|macbook: still in development :-)
[2010/03/11 07:35:07] @ Quit: kubicek: Quit: kubicek
[2010/03/11 07:35:13] <tim|macbook> been like that for a long time already, must become a super app! ;-)
[2010/03/11 07:36:07] <DavidS> tim|macbook: like debian, it'll be finished when it's ready. seriously though you might want to have a look at our roadmap: http://dasz.at/index.php/project/roadmap/ for a detailed view
[2010/03/11 07:36:43] <DavidS> today we have a visit from someone who'll help us get our marketing content on track. so there might be a few changes upcoming :)
[2010/03/11 07:36:59] <tim|macbook> love your motto... benutzbare technologie :)
[2010/03/11 07:37:26] <DavidS> thanks. it's really important for us.
[2010/03/11 07:41:27] @ kubicek joined channel #puppet
[2010/03/11 07:44:11] @ cliff-hm joined channel #puppet
[2010/03/11 07:46:05] @ c4rg joined channel #puppet
[2010/03/11 07:46:28] <c4rg> hello, I want to do the following: by default all nodes inherit from basenode... and that node includes firewall::client; however I want one node not to include this class - I thought I'll do include firewall::disabled (an empty class) but that doesn't work...
[2010/03/11 07:46:32] <c4rg> any hints?
[2010/03/11 07:46:51] @ Quit: tohi: Quit: Page closed
[2010/03/11 07:49:09] <DavidS> firewall::disables has to inherit from firewall::client and set the relevant resources to stopped/absent/disabled as needed
[2010/03/11 07:49:36] <DavidS> or put an if $firewall_enabled { } inside the firewall::client (but that sucks)
[2010/03/11 07:49:49] <DavidS> or use an external node classifier
[2010/03/11 07:54:08] @ Quit: maxagaz: Ping timeout: 265 seconds
[2010/03/11 07:57:19] <c4rg> DavidS: external node classifier?
[2010/03/11 07:58:20] <ohadlevy> c4rg: it allow you to store your node information (and variables) outside of puppet
[2010/03/11 08:01:06] <c4rg> ok, thanks
[2010/03/11 08:01:22] @ Quit: kubicek: Quit: kubicek
[2010/03/11 08:08:47] @ erm_ joined channel #puppet
[2010/03/11 08:09:14] <pdilung> DavidS: thnx
[2010/03/11 08:09:14] <pdilung> DavidS: :)
[2010/03/11 08:09:28] @ kubicek joined channel #puppet
[2010/03/11 08:10:53] @ ckauhaus joined channel #puppet
[2010/03/11 08:13:09] @ bug_ is now known as bug
[2010/03/11 08:16:02] <madduck> what does this mean?
[2010/03/11 08:16:02] <madduck> (//puppet/File[/etc/puppet/puppet.conf]/content) content
[2010/03/11 08:16:03] <madduck> changed '{md5}3255811856db31b99d0befda42de9770' to 'unknown checksum'
[2010/03/11 08:16:18] <madduck> unknown checksum, eh?
[2010/03/11 08:26:38] <chrisg> is puppet.conf coming from a template?
[2010/03/11 08:27:03] <DavidS> /usr/lib/ruby/1.8/yaml.rb:380: [BUG] Segmentation fault
[2010/03/11 08:27:10] <DavidS> don't ya love ruby?
[2010/03/11 08:28:34] <masterzen> DavidS: the problem is not ruby. The problem is the crappy C YAML parser that ruby embeds :-)
[2010/03/11 08:29:10] <chrisg> madduck: i think there was some oddness with templtaes checksums
[2010/03/11 08:30:01] <chrisg> http://projects.reductivelabs.com/issues/2615
[2010/03/11 08:30:02] <madduck> chrisg: yeah, template. okay, it works still…
[2010/03/11 08:30:07] <madduck> thanks
[2010/03/11 08:31:28] @ maxagaz joined channel #puppet
[2010/03/11 08:31:41] <masterzen> madduck: #3037
[2010/03/11 08:31:42] <gepetto> masterzen: madduck: #3037 is http://projects.reductivelabs.com/issues/show/3037 "Puppet - Bug #3037: file resource with content param outputs 'unknown checksum - ReductiveLabs.com"
[2010/03/11 08:31:59] <madduck> DavidS: the "undefined method `closed?' for nil:NilClass" is due to Ruby's HTTP request method being invoked with an empty socket. Call it exception handling outsourced by the ruby "devs" ;)
[2010/03/11 08:32:12] <madduck> masterzen: i just found that too. you were quicker. ;)
[2010/03/11 08:34:00] <DavidS> madduck: *cringe*
[2010/03/11 08:36:50] @ Bass10 joined channel #puppet
[2010/03/11 08:38:29] @ rasputnik joined channel #puppet
[2010/03/11 08:39:02] <rasputnik> anybody using camptocamps puppet-mysql module? Can't figure out how to setup a replication user.
[2010/03/11 08:41:27] @ danny_ left channel #puppet ()
[2010/03/11 08:42:40] @ gebi joined channel #puppet
[2010/03/11 08:44:53] @ Quit: m1nish: Ping timeout: 265 seconds
[2010/03/11 08:45:42] @ crazynuxer joined channel #puppet
[2010/03/11 08:50:47] @ stewartl421 left channel #puppet ()
[2010/03/11 08:51:30] @ Quit: erm_: Ping timeout: 252 seconds
[2010/03/11 08:53:49] <madduck> \o/ #1525 came back
[2010/03/11 08:53:50] <gepetto> madduck: #1525 is http://projects.reductivelabs.com/issues/show/1525 "Puppet - Bug #1525: local host fails to sync with mongrel/apache2 - ReductiveLabs.com"
[2010/03/11 08:53:58] <madduck> ruby, you are such a piece of shit.
[2010/03/11 08:54:06] @ joe-mac1 joined channel #puppet
[2010/03/11 08:55:08] @ Quit: verwilst: Quit: Ex-Chat
[2010/03/11 08:55:44] @ Quit: rmiller4pi8: Read error: Connection reset by peer
[2010/03/11 08:55:47] <madduck> Exception `ArgumentError' at /usr/lib/ruby/1.8/puppet/type/file/owner.rb:56 - invalid value for Integer: "root"
[2010/03/11 08:55:53] @ rmiller4pi8 joined channel #puppet
[2010/03/11 09:04:38] @ Jeff__ joined channel #puppet
[2010/03/11 09:05:11] @ Quit: Jeff__: Client Quit
[2010/03/11 09:05:28] @ inveratulo joined channel #puppet
[2010/03/11 09:07:30] @ qwebirc30774 joined channel #puppet
[2010/03/11 09:08:32] <qwebirc30774> Hello there... I am having a problem installing ruby 1.9.1 release 378. I get the Could not autoload (filebucket,report,etc) when trying to fire up puppetmasterd
[2010/03/11 09:08:52] <qwebirc30774> I have installing puppet as well
[2010/03/11 09:09:19] <qwebirc30774> Version is puppet-server-0.25.4
[2010/03/11 09:11:29] <qwebirc30774> any help would be great :)
[2010/03/11 09:11:43] <ohadlevy> it doesnt run on ruby 1.9 yet :)
[2010/03/11 09:12:08] @ Jeff__ joined channel #puppet
[2010/03/11 09:12:36] <qwebirc30774> seriously? From what I read it did run with it
[2010/03/11 09:12:39] <qwebirc30774> well shux
[2010/03/11 09:12:45] <qwebirc30774> since 0.25
[2010/03/11 09:13:41] @ Syn`work joined channel #puppet
[2010/03/11 09:14:52] <qwebirc30774> ruby 1.9 compatablity was said to be in puppet 0.25 back in Feburary 2009 via the mailing list archives
[2010/03/11 09:15:34] @ Quit: afletcher: Quit: afletcher
[2010/03/11 09:15:48] <Volcane> qwebirc30774: did you look at the tickets to see if any are open against 1.9 still?
[2010/03/11 09:16:02] @ unxfrek joined channel #puppet
[2010/03/11 09:16:03] <qwebirc30774> Said there are patches
[2010/03/11 09:16:05] @ jmccune joined channel #puppet
[2010/03/11 09:16:11] <qwebirc30774> But I haven't found the said patches
[2010/03/11 09:17:08] <qwebirc30774> This is an example : Could not autoload file: constant Puppet::Type::File not defined
[2010/03/11 09:17:46] <qwebirc30774> The bug is here : http://projects.reductivelabs.com/issues/2191
[2010/03/11 09:18:13] @ erm_ joined channel #puppet
[2010/03/11 09:18:48] <Volcane> unplanned, still open
[2010/03/11 09:18:54] @ ke4qqq joined channel #puppet
[2010/03/11 09:18:54] <Volcane> = no it doesnt work with 1.9
[2010/03/11 09:18:58] <qwebirc30774> :(
[2010/03/11 09:19:00] <qwebirc30774> sadness
[2010/03/11 09:19:28] <qwebirc30774> was hoping to take advantage of the speed of 1.9
[2010/03/11 09:19:31] <qwebirc30774> oh well
[2010/03/11 09:19:33] <qwebirc30774> thanks
[2010/03/11 09:25:03] @ themurph joined channel #puppet
[2010/03/11 09:25:12] @ pheezy joined channel #puppet
[2010/03/11 09:28:03] @ Quit: hggh: Ping timeout: 276 seconds
[2010/03/11 09:28:06] @ Quit: rasputnik: Quit: rasputnik
[2010/03/11 09:28:41] @ Quit: rmayr: Ping timeout: 258 seconds
[2010/03/11 09:31:06] @ shenson joined channel #puppet
[2010/03/11 09:37:35] <Disconnect> DavidS: new rails didn't solve it for me :(
[2010/03/11 09:41:59] @ khermans joined channel #puppet
[2010/03/11 09:42:02] <madduck> now *this* appears to be depressing. In a act of despair, I chose to move $ssldir out of the way on the puppetmaster, restarted it and verified that new CA and certs had been verified
[2010/03/11 09:42:10] <madduck> … and the clients are happily continuing to sync
[2010/03/11 09:42:41] @ afletcher joined channel #puppet
[2010/03/11 09:43:19] <madduck> PLEASE don't let this be true.
[2010/03/11 09:46:09] @ notbrien joined channel #puppet
[2010/03/11 09:47:09] @ Quit: Phibs: Quit: leaving
[2010/03/11 09:47:23] @ Phibs joined channel #puppet
[2010/03/11 09:50:27] <madduck> phew. an apache restart fixed it.
[2010/03/11 09:50:33] * madduck wipes sweat from forehear
[2010/03/11 09:50:36] <madduck> forehead even
[2010/03/11 09:56:26] @ uphillian joined channel #puppet
[2010/03/11 09:58:51] <pdilung> ALL: hi
[2010/03/11 09:59:04] @ Quit: JJA: Ping timeout: 276 seconds
[2010/03/11 09:59:05] @ Quit: erm_: Quit: leaving
[2010/03/11 09:59:06] <pdilung> ALL: a questions about multivalued LDAP attrs
[2010/03/11 09:59:13] @ erm_ joined channel #puppet
[2010/03/11 09:59:45] <tim|macbook> pdilung: the default mode is already "all", no need to specify that :P
[2010/03/11 10:00:21] @ swygue joined channel #puppet
[2010/03/11 10:01:58] <pdilung> tim|macbook: LOL
[2010/03/11 10:02:03] <pdilung> tim|macbook: :)
[2010/03/11 10:03:22] <pdilung> so continuing in default all mode, how can I get multivalued attributes from LDAP as an array into puppet? For example HostEntry attributes
[2010/03/11 10:03:27] <pdilung> ?
[2010/03/11 10:05:12] @ Quit: unxfrek: Quit: Leaving
[2010/03/11 10:05:25] @ Quit: rmiller4pi8: Quit: Leaving.
[2010/03/11 10:11:33] @ kaptk2 joined channel #puppet
[2010/03/11 10:12:02] <inveratulo> I'm trying to make a manually run puppet ensure that the puppet daemon is set to run. unfortunately, puppet misidentifies itself as the daemon that it is supposed to start so it never attempts to start. is there a way to get around this?
[2010/03/11 10:12:29] @ cwebber joined channel #puppet
[2010/03/11 10:15:36] <inveratulo> I guess I'll go down the mutual restart recipe route
[2010/03/11 10:15:52] <Volcane> inveratulo: does your os supoprt status on its rc scripts?
[2010/03/11 10:16:18] <inveratulo> yes
[2010/03/11 10:16:25] <Volcane> have you set hasstatus => true?
[2010/03/11 10:17:03] <inveratulo> No I haven't tried that. That falls within the service description?
[2010/03/11 10:17:05] @ Quit: blahdeblah: Remote host closed the connection
[2010/03/11 10:17:10] <Volcane> yeah
[2010/03/11 10:17:25] <tim|macbook> just wondering, because it's fairly easy to check, but can you call a defined type from the defined type itself? sorta like a recursive call?
[2010/03/11 10:17:56] @ blahdeblah joined channel #puppet
[2010/03/11 10:19:36] @ Quit: ckauhaus: Ping timeout: 268 seconds
[2010/03/11 10:20:02] <inveratulo> Well... that solves the problem of telling the OS to start this service on boot, but it does not actually ensure that the daemon is started.
[2010/03/11 10:24:32] @ mboyd left channel #puppet ()
[2010/03/11 10:25:29] @ Quit: PsychoSid: Quit: Leaving.
[2010/03/11 10:25:49] @ mboyd joined channel #puppet
[2010/03/11 10:26:32] <inveratulo> hmm. when it runs, it does a '/etc/init.d/puppet status' (which really exists on RH5), then "Service[puppet](provider=redhat): puppet status returned nil"
[2010/03/11 10:27:28] <tim|macbook> inveratulo: what's the exitcode when you do /etc/init.d/puppet status manually?
[2010/03/11 10:28:35] <inveratulo> 0
[2010/03/11 10:29:13] <inveratulo> it'll say "puppetd is stopped"
[2010/03/11 10:29:20] @ rmiller4pi8 joined channel #puppet
[2010/03/11 10:29:34] <inveratulo> chkconfig will say puppet is on for runlevels 2-5
[2010/03/11 10:31:44] <inveratulo> I believe the problem occurs when I invoke "puppetd" manually for the first time. it pulls down puppet configs, updates chkconfig, but then mistakes the manual invocation of puppetd for the real puppetd daemon.
[2010/03/11 10:31:52] <inveratulo> Using ps -ef is not enough to discriminate
[2010/03/11 10:32:49] <Volcane> you can fix the init script - best option - or specify your own pattern for the grep
[2010/03/11 10:33:25] <inveratulo> What's the harm in forcing an exec /etc/init.d/puppet start. The OS won't care
[2010/03/11 10:34:12] @ Quit: pdilung: Ping timeout: 252 seconds
[2010/03/11 10:34:45] <inveratulo> This avoids a recursive "Did I start? Okay restart" cycle heh
[2010/03/11 10:38:04] <inveratulo> The exec method ain't pretty, but it works. And there's no unintended recursion/restarting of services
[2010/03/11 10:41:54] @ mpdehaan joined channel #puppet
[2010/03/11 10:42:16] <joe-mac1> i use pattern fairly frequently, since debian init scripts rarely have status
[2010/03/11 10:42:41] <joe-mac1> works alright, unless it's some daemon that status is dependent on several processes running
[2010/03/11 10:46:34] @ nickanderson joined channel #puppet
[2010/03/11 10:46:41] <nickanderson> hello
[2010/03/11 10:46:49] <joe-mac1> hello
[2010/03/11 10:47:24] @ Quit: qwebirc30774: Ping timeout: 252 seconds
[2010/03/11 10:48:01] <inveratulo> joe-mac1: what does the pattern keyword actually return?
[2010/03/11 10:48:24] @ rasputnik joined channel #puppet
[2010/03/11 10:48:43] <joe-mac1> whatever ps -ef | grep #{pattern} is i assume
[2010/03/11 10:48:51] <inveratulo> ohhhh
[2010/03/11 10:48:54] <inveratulo> that's what it is
[2010/03/11 10:49:31] <madduck> where do I find out which file in $vardir belongs to puppetd and which belongs to puppetmasterd?
[2010/03/11 10:50:15] <joe-mac1> madduck: good question. i would guess ones owned by root are made by puppetd and ones owned by puppet are puppetmasterd, but that may not always be correct.
[2010/03/11 10:50:31] <madduck> good guess though
[2010/03/11 10:51:43] <madduck> seems to work for everything except /var/lib/puppet/ssl
[2010/03/11 10:51:48] <madduck> anyway, good enough.
[2010/03/11 10:52:03] <madduck> I want to device a recipe to split vardir on the puppetmaster
[2010/03/11 10:52:16] <joe-mac1> best to talk to someone from dev about that
[2010/03/11 10:52:19] <madduck> and in doing so, I want the client to create a new ssl identity anyway
[2010/03/11 10:52:44] <joe-mac1> you might want to even file a feature request... it seems kind of like a good idea
[2010/03/11 10:53:35] @ omry|work joined channel #puppet
[2010/03/11 10:53:53] <madduck> once i know how to
[2010/03/11 10:55:08] @ globalc left channel #puppet ("laters..")
[2010/03/11 10:55:20] <madduck> i think it's trivial: 1. stop everything; 2. mv /var/lib/puppet{,master}; 3. set vardir and ssldir in puppet.conf/[puppetmasterd]; 4. set vardir and ssldir in puppet.conf/[puppetd]; 5. start client; 6. sign request; 7. delete client-only files from /var/lib/puppetmaster
[2010/03/11 10:55:38] <madduck> 3.5 needs to be : start puppetmaster ;)
[2010/03/11 10:55:54] <madduck> and (3.) is also needed for puppetca
[2010/03/11 10:55:57] <joe-mac1> yea i forgot about qualifying the ssl dirs
[2010/03/11 10:56:02] <joe-mac1> in the [] stanzas
[2010/03/11 10:56:34] <madduck> i just don't yet know what [main] does and what precedence it has
[2010/03/11 10:58:49] @ jheiss joined channel #puppet
[2010/03/11 11:00:56] @ rmiller4pi81 joined channel #puppet
[2010/03/11 11:02:51] @ murkk joined channel #puppet
[2010/03/11 11:03:39] @ Quit: rmiller4pi8: Ping timeout: 240 seconds
[2010/03/11 11:03:43] <joe-mac1> madduck: yea i am not so sure you can truly separate all vars into separate namespaces. but it sounds like it might be possible
[2010/03/11 11:04:06] <madduck> i am determined to try because this convolution is just bad
[2010/03/11 11:04:13] <madduck> anyway, not today
[2010/03/11 11:04:16] * madduck waves goodbye
[2010/03/11 11:04:25] <joe-mac1> see ya
[2010/03/11 11:06:10] @ Quit: kubicek: Quit: kubicek
[2010/03/11 11:07:16] @ pdilung joined channel #puppet
[2010/03/11 11:07:38] <pdilung> How can I return undef from a custom function?
[2010/03/11 11:08:05] @ rcrowley joined channel #puppet
[2010/03/11 11:08:14] @ Quit: Cuchulain: Ping timeout: 264 seconds
[2010/03/11 11:09:57] @ ffrank joined channel #puppet
[2010/03/11 11:10:11] @ rmiller4pi8 joined channel #puppet
[2010/03/11 11:10:28] @ rgsteele joined channel #puppet
[2010/03/11 11:11:00] <ffrank> hi. just installed puppet as gem (0.25.4), but puppetd --test gives me "no such file to load -- puppet" and indeed, there is no puppet binary to be found. this is debian old-stable
[2010/03/11 11:11:13] @ rmiller4pi8 left channel #puppet ()
[2010/03/11 11:11:30] @ Cuchulain joined channel #puppet
[2010/03/11 11:11:48] <ffrank> rubygems is a backported package though, so not ancient (1.1.1)
[2010/03/11 11:12:38] @ Quit: rmiller4pi81: Ping timeout: 265 seconds
[2010/03/11 11:13:51] @ gaveen joined channel #puppet
[2010/03/11 11:13:56] @ Quit: gaveen: Changing host
[2010/03/11 11:13:56] @ gaveen joined channel #puppet
[2010/03/11 11:14:13] @ Quit: gaveen: Read error: Connection reset by peer
[2010/03/11 11:14:42] @ gaveen joined channel #puppet
[2010/03/11 11:15:07] @ bodepd joined channel #puppet
[2010/03/11 11:16:07] @ Quit: murkk: Quit: murkk
[2010/03/11 11:17:11] @ nigelk joined channel #puppet
[2010/03/11 11:17:48] @ Quit: gaveen: Client Quit
[2010/03/11 11:21:28] <ffrank> what may have gone wrong?
[2010/03/11 11:23:16] @ abatoo joined channel #puppet
[2010/03/11 11:24:16] <ffrank> ah - my bad. some old binaries in my path there. nm
[2010/03/11 11:24:19] * DavidS just sent in a proposal for puppet camp europe
[2010/03/11 11:24:39] <joe-mac1> pdilung: return nil maybe?
[2010/03/11 11:24:52] @ Quit: Cuchulain: Ping timeout: 276 seconds
[2010/03/11 11:28:15] @ Quit: maxagaz: Ping timeout: 252 seconds
[2010/03/11 11:28:59] <Volcane> ffrank: thats exactly why no sane person use gems
[2010/03/11 11:29:26] @ murkk joined channel #puppet
[2010/03/11 11:29:40] @ Cuchulain joined channel #puppet
[2010/03/11 11:30:15] @ alfism joined channel #puppet
[2010/03/11 11:32:37] <hacim> looking for an asterisk puppet module, anyone know of any?
[2010/03/11 11:32:58] <hacim> i can google of course, but figured some here might know which is the best already :)
[2010/03/11 11:33:07] @ sbrock__ joined channel #puppet
[2010/03/11 11:34:59] <ffrank> Volcane: is that so - i figured it might be less hassle than compiling...
[2010/03/11 11:35:25] <hacim> also, anyone know where these are at? all the links are 404: http://ra.reductivelabs.net:8080/community/Recipes/recipes/
[2010/03/11 11:35:45] @ nickanderson left channel #puppet ()
[2010/03/11 11:35:46] <Volcane> ffrank: there are debs that u can just download
[2010/03/11 11:36:12] <ffrank> Volcane: yes, but the version in etch is no good. won't work with our manifests...
[2010/03/11 11:36:25] @ Quit: sbrock_: Ping timeout: 264 seconds
[2010/03/11 11:37:02] @ Quit: coronel2_: Ping timeout: 264 seconds
[2010/03/11 11:37:29] <pheezy> I've found recently the documentation is a bear to sift through after the change to the new format tbh :-/
[2010/03/11 11:37:50] @ maxagaz joined channel #puppet
[2010/03/11 11:39:44] @ mrchucho joined channel #puppet
[2010/03/11 11:41:07] @ Alagar1 joined channel #puppet
[2010/03/11 11:41:07] @ Quit: Alagar1: Excess Flood
[2010/03/11 11:41:10] @ coronel2 joined channel #puppet
[2010/03/11 11:42:29] @ Quit: tim|macbook: Quit: tim|macbook
[2010/03/11 11:43:29] <pdilung> joe-mac1: in case I return nil the custom function fails to run with a message: err: Could not retrieve catalog from remote server: Error 400 on SERVER: value is a required option for Puppet::Parser::Resource::Param at /pkg/AMSY/AMSYmp/sfw/etc/puppet/modules/hostentry/manifests/base.pp:5 on node zzm1s010
[2010/03/11 11:43:30] @ Quit: kvick: Quit: leaving
[2010/03/11 11:44:25] @ labrown joined channel #puppet
[2010/03/11 11:44:26] @ Quit: maxagaz: Ping timeout: 260 seconds
[2010/03/11 11:44:50] @ Quit: Maliuta: Ping timeout: 248 seconds
[2010/03/11 11:45:49] <joe-mac1> pdilung well you are probably setting a variable then using trh variable without validation
[2010/03/11 11:45:56] <pdilung> joe-mac1: so IMHO the newfunction always should return some, but nil. I am looking for a way how to retun undef from ruby function to puppet
[2010/03/11 11:46:33] <pdilung> so i can use a cunstruct like: an_attribute => function(parameter)
[2010/03/11 11:46:33] <joe-mac1> easier way, but hacky, is return a string like "NO_VALUE" and use a selector on wahtever parameter you are setting to the variable
[2010/03/11 11:48:27] <mrchucho> if I have a class that creates some Groups and a class that creates a User, can I specify that the user is dependent on the groups setup by class that setup the groups? http://gist.github.com/329328
[2010/03/11 11:50:24] @ Quit: biertie: Ping timeout: 276 seconds
[2010/03/11 11:51:18] @ marti_martinez joined channel #puppet
[2010/03/11 11:51:31] <Brown|afk> mrchucho: Not sure... I think you need to define dependancies in the resource that is dependant
[2010/03/11 11:52:22] <mrchucho> Brown|afk: so, instead of saying require => App::Groups, I would say require => [Group[...], Group[....], etc. ?
[2010/03/11 11:52:58] @ Quit: khermans: Quit: khermans
[2010/03/11 11:53:54] <Brown|afk> That's what I was thinking, yeah, but in my case I define both the group and the user resources in one user class (module).
[2010/03/11 11:54:04] <jbooth> pdilung: try returning the symbol :undef from ruby?
[2010/03/11 11:54:10] <Brown|afk> I'm new to puppet, so take that for what it's worth :)
[2010/03/11 11:54:18] @ Quit: jheiss: Quit: jheiss
[2010/03/11 11:54:18] <mrchucho> Brown|afk: heh, k
[2010/03/11 11:54:19] @ Brown|afk is now known as Brownoxford
[2010/03/11 11:54:40] <ffrank> heh. now "undefined method `genconfig' for Puppet:Module", puppet 0.25.4
[2010/03/11 11:54:48] <ffrank> any ideas?
[2010/03/11 11:54:50] <Brownoxford> mrchucho: does the double-colon syntax represent?
[2010/03/11 11:56:07] <mrchucho> Brownoxford: isn't that how you refer to a class w/in a module?
[2010/03/11 11:56:18] @ Quit: xerxas: Quit: Leaving.
[2010/03/11 11:56:28] <mrchucho> Brownoxford: i.e. I have: "class app::groups"
[2010/03/11 11:56:32] <jbooth> mrchucho: require => Class[App::Groups]
[2010/03/11 11:56:45] <mrchucho> jbooth: perfect!
[2010/03/11 11:56:45] <jbooth> Probably better quote the App::Groups
[2010/03/11 11:56:57] <jbooth> Note: you will never be able to ensure=>absent that construct.
[2010/03/11 11:57:22] @ Alagar1 joined channel #puppet
[2010/03/11 11:57:23] @ Quit: Alagar1: Excess Flood
[2010/03/11 11:57:28] <mrchucho> jbooth: ?
[2010/03/11 11:57:29] <jbooth> The life-order of a user/group is: none, group create, user create (req group), time passes, user delete, group delete (req user)
[2010/03/11 11:57:58] <jbooth> If you don't care about the ability to ever ensure=>absent your user and group don't worry about it
[2010/03/11 11:58:10] @ Welsh_Dwarf joined channel #puppet
[2010/03/11 11:58:13] @ Quit: danielbln: Quit: Leaving.
[2010/03/11 11:58:42] <mrchucho> jbooth: k, thx
[2010/03/11 11:59:31] @ Maliuta joined channel #puppet
[2010/03/11 12:01:27] @ Alagar joined channel #puppet
[2010/03/11 12:01:28] @ Quit: Alagar: Excess Flood
[2010/03/11 12:03:08] @ jgh40 joined channel #puppet
[2010/03/11 12:03:11] @ jgh40 left channel #puppet ()
[2010/03/11 12:03:42] <pdilung> jbooth: did it but didn't work :(
[2010/03/11 12:03:45] @ lak joined channel #puppet
[2010/03/11 12:04:13] @ Quit: lak: Client Quit
[2010/03/11 12:04:17] @ Quit: rasputnik: Quit: rasputnik
[2010/03/11 12:04:43] @ Quit: nb: Quit: ZNC - http://znc.sourceforge.net
[2010/03/11 12:05:23] @ nb joined channel #puppet
[2010/03/11 12:05:25] <jbooth> pdilung: hmm. Could you use a template instead of the custom function? (you can do ruby in the template -- but that may not be an appropriate use of a template)
[2010/03/11 12:05:48] <pdilung> jbooth: nope, unfortunately not
[2010/03/11 12:07:13] <pdilung> jbooth: i am getting host entries from LDAP, stored in multivalued attributes as string of form <IP>:<FQDN>[<:ALIAS1>[<:ALIASN>]]
[2010/03/11 12:07:49] <pdilung> jbooth: however, local changes in the resulting /etc/hosts have to be preserved
[2010/03/11 12:08:49] @ Quit: zipkid: Read error: Operation timed out
[2010/03/11 12:09:36] <jbooth> pdilung: and your issue is if the aliases don't exist you're causing trouble with host { ... alias=> }?
[2010/03/11 12:09:48] <jbooth> pdilung: (and the function to access it returning nil)
[2010/03/11 12:11:01] @ nb_ joined channel #puppet
[2010/03/11 12:11:06] @ Quit: alban2: Ping timeout: 240 seconds
[2010/03/11 12:12:24] @ Quit: nb_: Client Quit
[2010/03/11 12:12:25] <pdilung> jbooth; exactly
[2010/03/11 12:13:04] @ zipkid joined channel #puppet
[2010/03/11 12:14:13] <jbooth> pdilung: Does returning the string "undef" work any better?
[2010/03/11 12:15:39] @ bodepd left channel #puppet ()
[2010/03/11 12:15:39] <jbooth> pdilung: otherwise I think joe-mac1's plan of a selector is all you have.
[2010/03/11 12:16:02] <jbooth> pdilung: (you might be able to use the augeas type but that scares me)
[2010/03/11 12:16:26] <pdilung> jbooth: nope, due to bug http://pastebin.org/109947 (which is closed, however I still use 0.25.1)
[2010/03/11 12:16:56] <pdilung> jbooth: ooops :) the bug no is #2818
[2010/03/11 12:16:56] <gepetto> pdilung: jbooth: #2818 is http://projects.reductivelabs.com/issues/show/2818 "Puppet - Feature #2818: case statements dont support undef - ReductiveLabs.com"
[2010/03/11 12:17:31] <pdilung> gepetto: :)))
[2010/03/11 12:18:01] <pdilung> jbooth: gepetto: http://pastebin.org/109947 is my intention / code I would like to use
[2010/03/11 12:18:44] @ Alagar joined channel #puppet
[2010/03/11 12:18:45] @ Quit: Alagar: Excess Flood
[2010/03/11 12:19:27] @ Quit: DavidS: Quit: Leaving.
[2010/03/11 12:19:51] @ DavidS joined channel #puppet
[2010/03/11 12:20:15] <jbooth> pdilung: how... would that be a problem here? Return some static (preferably invalid) value from your function instead of nil and case on that?
[2010/03/11 12:21:49] @ alexine_dsouza joined channel #puppet
[2010/03/11 12:22:20] @ Quit: jaredrhine: Ping timeout: 258 seconds
[2010/03/11 12:22:23] <joe-mac1> selectors most certainly can work on a string though
[2010/03/11 12:22:26] @ Quit: fox2mike: Ping timeout: 240 seconds
[2010/03/11 12:22:27] <joe-mac1> so return a string
[2010/03/11 12:22:31] <joe-mac1> and case, or select on that
[2010/03/11 12:22:51] @ Quit: Hollow: Ping timeout: 256 seconds
[2010/03/11 12:23:36] @ Hollow joined channel #puppet
[2010/03/11 12:24:36] <pdilung> jbooth: as I wrote, i hit this #2818 then :)
[2010/03/11 12:24:37] <gepetto> pdilung: jbooth: #2818 is http://projects.reductivelabs.com/issues/show/2818 "Puppet - Feature #2818: case statements dont support undef - ReductiveLabs.com"
[2010/03/11 12:24:39] @ Quit: DavidS: Ping timeout: 265 seconds
[2010/03/11 12:24:46] <jbooth> pdilung: no, you don't
[2010/03/11 12:25:00] <pdilung> gepetto: yep I found it
[2010/03/11 12:25:12] <jbooth> He's a bot.
[2010/03/11 12:25:20] @ Quit: nigelk: Ping timeout: 246 seconds
[2010/03/11 12:25:33] <pdilung> jbooth: heh, i am new to IRC :)))
[2010/03/11 12:26:02] <jbooth> pdilung: Ex: @group {$title: require=>$ensure?{absent=>User[$title],present=>undef};}
[2010/03/11 12:26:05] <pdilung> jbooth: ok going home... I'll rethink and come back tomorrow
[2010/03/11 12:26:22] <pdilung> jbooth: thnx for the answers
[2010/03/11 12:26:27] <pdilung> jbooth: :)
[2010/03/11 12:26:59] <jbooth> pdilung: just pick something invalid for present, add a default=>$ensure and it should work. Later!
[2010/03/11 12:27:04] @ kubicek joined channel #puppet
[2010/03/11 12:28:01] @ Quit: pdilung: Quit: Page closed
[2010/03/11 12:30:36] @ Quit: pmorillo: Quit: pmorillo
[2010/03/11 12:31:46] @ Quit: murkk: Remote host closed the connection
[2010/03/11 12:31:52] @ Quit: bug: Quit: bug
[2010/03/11 12:31:56] <mrchucho> tidy { "/etc/somedir": age => 0} should empty all the files from /etc/somedir, right?
[2010/03/11 12:32:05] @ murkk joined channel #puppet
[2010/03/11 12:34:05] <pheezy> Ok I've just discovered that if "/etc/puppet" is a symlink, and then you start the puppetmaster, the puppetmaster will destroy the symlink and create it's own directory
[2010/03/11 12:34:26] <barn> /etc/puppet can't be a symlink
[2010/03/11 12:34:42] <pheezy> why not?
[2010/03/11 12:34:58] * barn panics...
[2010/03/11 12:35:05] <barn> because it makes puppet sad?
[2010/03/11 12:35:14] <chrisg> lol
[2010/03/11 12:35:17] <chrisg> puppet has an emo streak>?
[2010/03/11 12:35:21] <chrisg> jet black hair
[2010/03/11 12:35:35] <barn> I don't know the details, but I just remember it being said, up until Volcane comes along and tells me otherwise as usual...
[2010/03/11 12:35:54] <pheezy> ahh you are right, i see there is a 2 year old bug already on it: http://projects.reductivelabs.com/issues/650
[2010/03/11 12:36:10] <barn> yay! I got something right!
[2010/03/11 12:36:21] <Volcane> 0.25.4 has a option to stop managing it :)
[2010/03/11 12:36:39] <barn> there we go!
[2010/03/11 12:36:40] <barn> (:
[2010/03/11 12:36:50] <Volcane> not tried it though
[2010/03/11 12:37:11] @ Quit: ffrank: Quit: leaving
[2010/03/11 12:37:11] <pheezy> well i just want to be able to roll out new puppet manifests via capistrano, so i was just symlinking /etc/puppet to /srv/puppet/releases/current :-/
[2010/03/11 12:37:28] <pheezy> seems I need to rethink how to do this o_O
[2010/03/11 12:37:37] @ andrewh joined channel #puppet
[2010/03/11 12:37:44] <|shad0w|> hardlink ?
[2010/03/11 12:37:47] <Volcane> so all you really want is to symlink your manifests dir, not the whole /etc/puppet?
[2010/03/11 12:38:23] <Volcane> :q
[2010/03/11 12:38:24] <Volcane> oops
[2010/03/11 12:38:25] <pheezy> No the whole thing, the manifests dir apparently has the same issue according to the that issue
[2010/03/11 12:38:47] <chrisg> this is why i specify manifestdir/modulepath etc
[2010/03/11 12:38:59] @ Quit: giskard: Remote host closed the connection
[2010/03/11 12:39:11] <pheezy> Yeah I do that too, but they are under /etc/puppet, and there are different ones for different environments
[2010/03/11 12:39:18] <chrisg> yeah
[2010/03/11 12:39:25] <chrisg> i point mine to another location though, not in /etc/
[2010/03/11 12:39:38] <pheezy> Hmm
[2010/03/11 12:39:46] <pheezy> will have to play around with it after lunchie munchies, thanks ya'll
[2010/03/11 12:39:53] @ Alagar joined channel #puppet
[2010/03/11 12:39:54] @ Quit: Alagar: Excess Flood
[2010/03/11 12:40:25] <chrisg> pheezy: http://pastebin.ca/1834070
[2010/03/11 12:40:31] <chrisg> is how I do it
[2010/03/11 12:44:34] @ Alagar joined channel #puppet
[2010/03/11 12:47:05] @ Quit: alfism: Quit: http://opensolaris.com/
[2010/03/11 12:48:39] @ C00l_Sam03 joined channel #puppet
[2010/03/11 12:50:03] @ Quit: gebi: Ping timeout: 256 seconds
[2010/03/11 12:50:14] @ Quit: C00l_Sam03: Remote host closed the connection
[2010/03/11 12:55:01] @ Quit: cwebber: Quit: cwebber
[2010/03/11 12:57:13] @ cwebber joined channel #puppet
[2010/03/11 12:59:01] @ lilmatt joined channel #puppet
[2010/03/11 12:59:59] @ JJA joined channel #puppet
[2010/03/11 13:02:43] @ plathrop-away is now known as plathrop
[2010/03/11 13:03:40] @ jes5 joined channel #puppet
[2010/03/11 13:04:26] @ Quit: TREllis: Quit: ciao
[2010/03/11 13:04:44] <madduck> joe-mac1: http://madduck.net/blog/2010.03.11:splitting-puppetd-from-puppetmaster/ — comments welcome
[2010/03/11 13:04:49] <madduck> now i *am* calling it a night. ;)
[2010/03/11 13:04:53] <joe-mac1> lol
[2010/03/11 13:08:22] @ pting joined channel #puppet
[2010/03/11 13:09:34] @ hggh joined channel #puppet
[2010/03/11 13:09:53] @ Quit: Welsh_Dwarf: Read error: Connection reset by peer
[2010/03/11 13:10:16] @ lak joined channel #puppet
[2010/03/11 13:11:00] @ Quit: MattyM: Quit: ta ta
[2010/03/11 13:11:54] @ giskard joined channel #puppet
[2010/03/11 13:11:57] @ Quit: andrewh: Quit: Leaving
[2010/03/11 13:13:43] @ plathrop is now known as plathrop-away
[2010/03/11 13:18:53] @ redonk joined channel #puppet
[2010/03/11 13:19:06] <redonk> i keep getting this error in my logs; err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of resource: can't convert nil into String Could not describe /plugins: can't convert nil into String
[2010/03/11 13:20:10] <redonk> does anybody have a clue why?
[2010/03/11 13:20:11] @ jaredrhine joined channel #puppet
[2010/03/11 13:21:09] @ alfism joined channel #puppet
[2010/03/11 13:24:32] @ Quit: lak: Quit: lak
[2010/03/11 13:26:10] @ Quit: JJA: Ping timeout: 248 seconds
[2010/03/11 13:30:29] @ Quit: suchu: Quit: ChatZilla 0.9.86 [Firefox 3.5.8/20100202165920]
[2010/03/11 13:31:31] <jbooth> Read permission problems? And/or a 0.24 upgrade to 0.25 and plugins got renamed lib?
[2010/03/11 13:33:49] <redonk> jbooth: read permission problems?
[2010/03/11 13:35:05] <jbooth> redonk: yes. General permission problems reading to that directory on the server or client it isn't clear which the error is from, etc.
[2010/03/11 13:35:50] <redonk> drwxr-xr-x 11 puppet puppet 4.0K 2010-02-02 14:14 ..
[2010/03/11 13:35:56] <redonk> looks ok
[2010/03/11 13:36:05] @ Quit: cwebber: Quit: cwebber
[2010/03/11 13:37:10] @ Quit: mikepea: Quit: mikepea
[2010/03/11 13:38:19] @ cwebber joined channel #puppet
[2010/03/11 13:38:31] @ Quit: cwebber: Remote host closed the connection
[2010/03/11 13:38:36] @ cwebber joined channel #puppet
[2010/03/11 13:39:11] @ bug joined channel #puppet
[2010/03/11 13:41:43] <jbooth> redonk: and the dir above it? above that? Selinux enabled?
[2010/03/11 13:42:09] <redonk> jbooth: setting pluginsync to false fixed it
[2010/03/11 13:42:24] <redonk> i will look into it in more detail when i have time, for now this will do
[2010/03/11 13:42:28] <redonk> thanks
[2010/03/11 13:44:45] @ bodepd joined channel #puppet
[2010/03/11 13:44:53] <mrchucho> I guess I don't understand the order of evaluation in a class... if I have an resource tidy{"/etc/somedir": age => 0} before a service resource, should the directory be cleared before the service is examined?
[2010/03/11 13:45:13] <bodepd> no, you have to specify deps explicitly.
[2010/03/11 13:45:27] <jbooth> mrchucho: does the service require=>Tidy["/etc/somedir"]? If not, then order is undefined.
[2010/03/11 13:45:54] <mrchucho> jbooth: I tried that... and it still seemed to have no effect.
[2010/03/11 13:46:08] <jbooth> mrchucho: puppet's configuration language isn't procedural. Earlier/later doesn't define the order things evaluate in.
[2010/03/11 13:47:09] <mrchucho> jbooth: ok, I think I understand that. But if I have a resource tidy{/etc/somedir... under what circumstances woudl that directory be tidied?
[2010/03/11 13:47:31] <jbooth> mrchucho: every time puppet runs? I don't think I understand the question.
[2010/03/11 13:47:58] <mrchucho> jbooth: ok, then given that... how come the directory isn't being tidied? ;)
[2010/03/11 13:48:09] @ jgh40 joined channel #puppet
[2010/03/11 13:48:49] @ russell_h joined channel #puppet
[2010/03/11 13:48:53] <bodepd> mrchucho: can you show the exact resource declaration?
[2010/03/11 13:49:09] @ jgh40 left channel #puppet ()
[2010/03/11 13:49:51] <mrchucho> jbooth: http://gist.github.com/329503
[2010/03/11 13:50:20] @ Quit: redonk: Quit: Page closed
[2010/03/11 13:53:09] <bodepd> strange, my test for tidy just failed (on mac). Ill try ubuntu
[2010/03/11 13:53:42] <jbooth> mrchucho: and puppet isn't outputing any errors or such when run? (with --debug)
[2010/03/11 13:54:07] <bodepd> you can get the same behavior with file{'/etc/blah/': ensure=> directory, purge=>true}
[2010/03/11 13:55:06] @ lak joined channel #puppet
[2010/03/11 13:55:24] <mrchucho> jbooth: ah, I do see debug: //Node[web2.localdomain]/app_server/baseclass/monit/Tidy[/etc/monit.d]/ensure: Not tidying directories
[2010/03/11 13:55:57] <mrchucho> jbooth: do I need to append a slash to the file/dir name?
[2010/03/11 13:56:01] <mrchucho> bodepd: oh?
[2010/03/11 13:56:11] <bodepd> it looks like a bug.
[2010/03/11 13:57:31] <bodepd> http://pastie.org/865361
[2010/03/11 13:58:26] <mrchucho> bodepd: doh (plus also, I didn't know you could do puppet -e .... !!)
[2010/03/11 13:58:53] <bodepd> will you open a ticket?
[2010/03/11 13:59:04] <bodepd> I dont mind opening one.
[2010/03/11 13:59:09] <mrchucho> will do
[2010/03/11 13:59:14] <mrchucho> thanks!
[2010/03/11 13:59:32] <mrchucho> bodepd: so I can use file{} w/ purge => true?
[2010/03/11 13:59:53] @ mw44118-work joined channel #puppet
[2010/03/11 13:59:55] <bodepd> mrchucho: it means something slightly different, but it will work
[2010/03/11 14:00:10] <bodepd> it means delete any files in this dir not explicity declared by puppet
[2010/03/11 14:00:21] <mrchucho> bodepd: ok, thx. that'll work for now
[2010/03/11 14:00:22] <jbooth> mrchucho: I suspect you just need recurse=>true
[2010/03/11 14:00:28] <bodepd> s/delete/ensure absent/
[2010/03/11 14:00:37] <mrchucho> jbooth: lemme try
[2010/03/11 14:00:40] <bodepd> depending on if you want to purge recursivelly.
[2010/03/11 14:01:46] <jbooth> bodepd's suggestion will also work, but Tidy should work...
[2010/03/11 14:01:47] <mrchucho> jbooth: ah ha
[2010/03/11 14:02:05] <bodepd> I am filing a bug now on tidy.
[2010/03/11 14:02:33] <mrchucho> jbooth: it did w/ the recurse => true. "If target is a directory, recursively descend into the directory looking for files to tidy."
[2010/03/11 14:02:49] <mrchucho> jbooth: to me, that doesn't imply that files directly in the dir wouldn't be tidied
[2010/03/11 14:03:52] <bodepd> http://projects.reductivelabs.com/issues/3364
[2010/03/11 14:04:23] <bodepd> interesting, tidy works with recurse
[2010/03/11 14:04:45] <mrchucho> jbooth: I would think tidy w/o recurse would get /etc/somedir/file but not /etc/somedir/anotherdir/file
[2010/03/11 14:05:15] <mrchucho> well, it's working w/ recurse, so A+
[2010/03/11 14:05:41] <mw44118-work> Does anyone in here work at reductive labs?
[2010/03/11 14:05:44] <jbooth> mrchucho: you might need a trailing / to get files within /etc/somedir -- otherwise it probably thinks you want to tidy the somedir directory in etc, not the contents of it.
[2010/03/11 14:06:10] @ rmiller4pi8 joined channel #puppet
[2010/03/11 14:06:35] <bodepd> mw44118-work: I do :)
[2010/03/11 14:08:54] @ plathrop-away is now known as plathrop
[2010/03/11 14:10:59] <mrchucho> jbooth: k, thx
[2010/03/11 14:11:47] @ Quit: murkk: Quit: murkk
[2010/03/11 14:12:09] @ khadrin joined channel #puppet
[2010/03/11 14:12:38] <khadrin> so i have a simple patch to add virtual box support to facter/virtual
[2010/03/11 14:12:38] @ fox2mike joined channel #puppet
[2010/03/11 14:13:04] <khadrin> what should i do with it? it's one line
[2010/03/11 14:13:40] <khadrin> also, is there any way to override the builtin facter/virtual.rb other than moving it out of the way?
[2010/03/11 14:14:28] <mw44118-work> bodepd: I'm fascinated by the idea of businesses based on open source. How do you guys make $$$? Consulting? Training?
[2010/03/11 14:14:29] <khadrin> i followed the instructions at ( bhttp://reductivelabs.com/trac/puppet/wiki/AddingFacts ) ut id didnt take effect until i moved the implementation that came with facter out of the way
[2010/03/11 14:14:39] @ WALoeIII joined channel #puppet
[2010/03/11 14:14:47] @ Quit: crazynuxer: Read error: No route to host
[2010/03/11 14:14:53] <khadrin> sigh cant type.. but it
[2010/03/11 14:15:09] <bodepd> khadrin: can you post the patch in the dev forum.
[2010/03/11 14:15:15] <khadrin> sure
[2010/03/11 14:15:51] <Volcane> mw44118-work: the usual ways are training, consulting on how best to impliment, custom development, support contracts etc
[2010/03/11 14:15:52] <bodepd> then Luke, James, Markus, can have a look at it.
[2010/03/11 14:15:55] <jbooth> Considering I just installed my 3rd vbox test machine that could be handy to get integrated upstream. :-)
[2010/03/11 14:16:06] <khadrin> would that be here? http://groups.google.com/group/puppet-dev
[2010/03/11 14:16:09] <bodepd> there is a well defined process for submitting patches, they can help you there.
[2010/03/11 14:16:53] <bodepd> puppet-dev.googlegroups.com
[2010/03/11 14:16:56] <bodepd> yep.
[2010/03/11 14:17:08] <khadrin> alright thanks
[2010/03/11 14:17:14] @ plathrop is now known as plathrop-away
[2010/03/11 14:17:16] <jbooth> bodepd: is said well defined process documented anywhere?
[2010/03/11 14:17:24] @ plathrop-away is now known as plathrop
[2010/03/11 14:17:37] <khadrin> any suggestions for overriding the virtual.rb that came with facter without deleting it?
[2010/03/11 14:17:40] <bodepd> mw44118-work: Volcane is correct (as always :) )
[2010/03/11 14:17:51] <bodepd> yeah, let me find it.
[2010/03/11 14:18:27] <bodepd> http://reductivelabs.com/trac/puppet/wiki/Development/DevelopmentLifecycle
[2010/03/11 14:18:36] @ toi joined channel #puppet
[2010/03/11 14:19:06] <bodepd> I think that one in a module would override the existing one.
[2010/03/11 14:19:17] @ jheiss joined channel #puppet
[2010/03/11 14:19:23] <khadrin> hmm didnt seem to
[2010/03/11 14:19:29] <bodepd> or you could give it a different name: working_virtual
[2010/03/11 14:19:31] <eric0> hiya dan
[2010/03/11 14:19:36] <khadrin> heh true
[2010/03/11 14:19:39] <bodepd> hi.
[2010/03/11 14:19:45] <khadrin> lemme test if it overrides once more
[2010/03/11 14:22:43] <Disconnect> weaselkeeper: still arguing with that mysql connection issue from yesterday :( puppet has been running about 3 hours and its climbing near 1000 connections
[2010/03/11 14:23:02] @ Quit: khadrin: Quit: Ex-Chat
[2010/03/11 14:23:12] <weaselkeeper> Disconnect: are old connections being terminated?
[2010/03/11 14:23:16] <Disconnect> nope
[2010/03/11 14:23:17] @ khadrin joined channel #puppet
[2010/03/11 14:23:28] <Disconnect> but i upgraded rails, didn't seem to have any effect
[2010/03/11 14:23:49] <weaselkeeper> how are you using puppet w/mysql? (I don't use that, I use flat files here, so don't know any specifics)
[2010/03/11 14:24:06] <Disconnect> just for stored configs
[2010/03/11 14:24:10] <weaselkeeper> there may be a time to live or other reaper option in the config somewhere
[2010/03/11 14:24:25] <khadrin> bodepd, pretty sure it doesnt override. anyway, went with working_virtual for now.
[2010/03/11 14:24:39] <khadrin> thanks for the dev process info
[2010/03/11 14:25:53] <Disconnect> its almost certainly http://projects.reductivelabs.com/issues/3238 but upgrading rails didn't do any good
[2010/03/11 14:26:21] @ bodepd left channel #puppet ()
[2010/03/11 14:26:42] <mw44118-work> bodepd: does it work? Are you guys making money?
[2010/03/11 14:31:55] @ Quit: pheezy: Remote host closed the connection
[2010/03/11 14:31:58] <mealstrom> don't answer, he is task inspector :).
[2010/03/11 14:32:02] <mealstrom> *tax
[2010/03/11 14:34:25] @ Welsh_Dwarf joined channel #puppet
[2010/03/11 14:35:38] @ pheezy_ joined channel #puppet
[2010/03/11 14:35:45] @ plathrop is now known as plathrop-away
[2010/03/11 14:37:40] @ Quit: bug: Read error: Connection reset by peer
[2010/03/11 14:38:08] <mw44118-work> no, just somebody that wants to believe it IS possible.
[2010/03/11 14:40:14] @ Quit: joe-mac: Quit: Leaving.
[2010/03/11 14:40:43] @ joe-mac joined channel #puppet
[2010/03/11 14:43:31] <jbooth> If you believe consulting in general works, I don't see why there's even a question. Its just a very-domain-specific consulting organization. They just happen to develop software too.
[2010/03/11 14:44:48] @ bug joined channel #puppet
[2010/03/11 14:45:01] @ alfism_ joined channel #puppet
[2010/03/11 14:47:45] <mrchucho> when to use subscribe vs notify? e.g. should file {"config":} be notifying my service or vice versa w/ subscibe?
[2010/03/11 14:47:49] @ Quit: alfism: Ping timeout: 264 seconds
[2010/03/11 14:47:50] @ alfism_ is now known as alfism
[2010/03/11 14:48:26] <joe-mac1> mrchucho: matter of style for the most part
[2010/03/11 14:48:46] <mrchucho> joe-mac1: ok, so they're functionally equivalent (just opposites)?
[2010/03/11 14:49:19] <joe-mac1> yes
[2010/03/11 14:49:47] <jbooth> I thought (at one point) subscribe tended to get a service restarted multiple times if it subscribed to multiple config files, while notify didn't have that problem. That could be old, a bug, or misinformation on my part.
[2010/03/11 14:50:53] @ Quit: lak: Quit: lak
[2010/03/11 14:52:11] <mw44118-work> On another note, is there a package that I can use to make sure that a brand new ubuntu server has puppet installed?
[2010/03/11 14:52:58] <jbooth> apt-get install puppet ?
[2010/03/11 14:53:59] <mw44118-work> jbooth: oh, I mean something that will build an ubuntu server and automatically have puppet
[2010/03/11 14:54:11] @ Quit: bug: Quit: bug
[2010/03/11 14:55:29] <jbooth> I only use ubuntu on my desktop and don't try to kickstart (or their equivalent) it.
[2010/03/11 14:58:06] @ Quit: Spads: Ping timeout: 260 seconds
[2010/03/11 15:04:35] @ biertie joined channel #puppet
[2010/03/11 15:05:10] @ Quit: c4rg: Ping timeout: 264 seconds
[2010/03/11 15:05:41] <joe-mac1> mw44118-work: preseed files are the ubuntu/debian equivalent of kickstart files
[2010/03/11 15:06:42] @ themurph_ joined channel #puppet
[2010/03/11 15:08:54] @ lupi joined channel #puppet
[2010/03/11 15:09:02] <markl_> ok i have a question about customizing things based on what network the host is on
[2010/03/11 15:09:08] @ Quit: themurph_: Client Quit
[2010/03/11 15:09:38] <markl_> we use subdomains for different areas, e.g. hostname.staging.foo.com, hostname.prod.foo.com, etc
[2010/03/11 15:09:44] <markl_> is that easy to check for in puppet?
[2010/03/11 15:11:25] @ alban2 joined channel #puppet
[2010/03/11 15:11:47] <mrchucho> markl_: I think each node is identified by its FQDN
[2010/03/11 15:12:11] <jbooth> Or by a regex in 0.25 (I think) so yes you should be able to differentiate them.
[2010/03/11 15:12:19] <mrchucho> markl_: in newer versions of puppet you can use regex, e.g. node /.*staging*/
[2010/03/11 15:12:55] <markl_> ok regex may work, ty. some config files will be different on different networks, like resolv.conf
[2010/03/11 15:13:49] <jbooth> There's a number of ways to do that in a single node-configuration too.
[2010/03/11 15:13:56] @ Quit: cliff-hm: Ping timeout: 245 seconds
[2010/03/11 15:15:42] @ vraptor joined channel #puppet
[2010/03/11 15:15:47] <joe-mac1> there is a domain fact too
[2010/03/11 15:16:09] <joe-mac1> you can do if ($domain) = "whatever.yoursite.com" { include someclass }
[2010/03/11 15:16:16] <joe-mac1> syntax may be off, so check it
[2010/03/11 15:18:35] <jbooth> or file { source => [resolv.conf.$domain, resolv.conf] } type syntax
[2010/03/11 15:18:51] * jbooth wonders how many different ways we can find to do this...
[2010/03/11 15:21:27] @ Quit: jheiss: Quit: jheiss
[2010/03/11 15:21:50] @ jheiss joined channel #puppet
[2010/03/11 15:25:40] @ bug joined channel #puppet
[2010/03/11 15:28:37] @ tonyskapunk joined channel #puppet
[2010/03/11 15:28:43] @ artista_frustrad joined channel #puppet
[2010/03/11 15:29:40] @ Quit: nDuff: Ping timeout: 245 seconds
[2010/03/11 15:30:21] <mealstrom> how to import and use definition?
[2010/03/11 15:31:12] <mealstrom> site.pp-- import "definitions/mkuser.pp"
[2010/03/11 15:31:13] <mealstrom> node blabla {
[2010/03/11 15:31:13] <mealstrom> mkuser (user)} ?
[2010/03/11 15:33:37] @ Quit: artista_frustrad: Ping timeout: 265 seconds
[2010/03/11 15:34:55] * neek pokes augeas with a lightly chared stick.
[2010/03/11 15:35:06] <neek> someday I'll understand you enough to actually be able to use you.
[2010/03/11 15:35:17] <neek> in the meantime, file content=> it is.
[2010/03/11 15:37:47] <jbooth> neek: My observation is augeas is a nearly useless type. I've been told otherwise and seen perhaps one example of such, but... I've never found a case to use it.
[2010/03/11 15:39:55] <neek> well, when you want to support local as well as puppetized changes (say install defaults for different machines are different, and you just want to add/change some small part of that) it seems to be the only way to go.
[2010/03/11 15:40:06] <neek> or a lot of if/case statements.
[2010/03/11 15:40:57] <jbooth> But it seems to require knowledge of ordering and rule-exists-at-point-x that you can't get in puppet.
[2010/03/11 15:41:19] <neek> yeah
[2010/03/11 15:41:36] <neek> that's where I'm running into problems, give or tak.e
[2010/03/11 15:42:21] <jbooth> The one example I saw was some sort of search-then-alter magic.
[2010/03/11 15:42:29] @ Quit: mrchucho: Quit: mrchucho
[2010/03/11 15:42:45] <jbooth> But most magic of that form also exists as exec { "/bin/sed ..." } so I'm not clear how much is gained.
[2010/03/11 15:44:36] @ Quit: Welsh_Dwarf: Remote host closed the connection
[2010/03/11 15:45:07] <neek> well exec's suck. :)
[2010/03/11 15:45:33] <Brownoxford> hehe.
[2010/03/11 15:45:56] <Brownoxford> I'm looking to add a line in /etc/aliases for each user I create and was planning on using exec... any better options?
[2010/03/11 15:46:06] <neek> for one, they're not really platform portable (neither are file { content's... )
[2010/03/11 15:46:14] <neek> augeas. ;)
[2010/03/11 15:46:27] <neek> which I think there are examples for aliases that might make it sane.
[2010/03/11 15:48:33] <jbooth> Brownoxford: there is a mailalias{} type. I'd use that.
[2010/03/11 15:48:48] <Brownoxford> thanks jbooth, neek
[2010/03/11 15:49:23] <jbooth> To be specific: http://docs.reductivelabs.com/references/stable/type.html
[2010/03/11 15:49:28] <jbooth> is a good list of the types available
[2010/03/11 15:50:23] @ lak joined channel #puppet
[2010/03/11 15:50:23] <Brownoxford> bookmarked
[2010/03/11 15:50:45] <neek> jbooth: now I personally would love a "sed" type that lets me use sed "natively" :)
[2010/03/11 15:51:16] <whack> neek: you probably want augeas type
[2010/03/11 15:51:19] <tessier_> Does anyone here do things like use puppet to generate munin and nagios configs so they just add a host in one place and it is automatically set up in other systems via templates etc?
[2010/03/11 15:51:25] <tessier_> I'm wondering if that is a good idea or overkill.
[2010/03/11 15:51:26] <whack> but many would argue here that 'sed' with puppet is an antipattern
[2010/03/11 15:51:49] <neek> whack: no, not really. see earlier commentary about augeas. :)
[2010/03/11 15:52:10] <whack> tessier_: I generate configs from a database and deploy with puppet. Puppet also has a builtin set of nagios types that can be exported to a nagios server. You could do the same for munin configs
[2010/03/11 15:52:11] <tessier_> I know about the puppet nagios module. But I don't understand puppet well enough yet to really know what it does or be comfortable with deploying it.
[2010/03/11 15:52:28] <tessier_> whack: Builtin nagios types eh? I'll have to check that out.
[2010/03/11 15:52:44] <whack> there's nagios_<blah> types
[2010/03/11 15:55:42] @ Quit: boomshankerx: Quit: Leaving
[2010/03/11 15:58:31] @ OpenMedia joined channel #puppet
[2010/03/11 15:58:46] @ Spads joined channel #puppet
[2010/03/11 16:00:57] @ spencert joined channel #puppet
[2010/03/11 16:02:13] <spencert> do selectors allow for regex
[2010/03/11 16:07:46] @ nigelk joined channel #puppet
[2010/03/11 16:07:47] @ Peanut left channel #puppet ()
[2010/03/11 16:08:30] <joe-mac1> i don't think so, but i do believe there is an open feat request
[2010/03/11 16:09:22] <spencert> I finally opened the interweb and googled and found.. Starting with version 0.25, selectors now support regular expressions:
[2010/03/11 16:09:35] <spencert> cool, I guess it pays to rtm
[2010/03/11 16:10:02] @ aliver joined channel #puppet
[2010/03/11 16:14:27] <aliver> Can I upgrade my puppetmasterd to the latest stable version and leave my puppetd at 0.24.7 ?
[2010/03/11 16:14:53] <windo> worked for me
[2010/03/11 16:15:10] <aliver> That'd be sweet. I need regex.
[2010/03/11 16:17:27] @ Quit: bug: Quit: bug
[2010/03/11 16:20:46] @ murkk joined channel #puppet
[2010/03/11 16:22:37] @ Quit: jheiss: Ping timeout: 264 seconds
[2010/03/11 16:31:52] @ Quit: toi: Read error: Operation timed out
[2010/03/11 16:34:01] <aliver> If it's too nasty for me to upgrade (hard in my crappy job). Can I use external nodes scripts to classify some host and have others just fall through into "default"
[2010/03/11 16:34:03] <aliver> ?
[2010/03/11 16:34:09] @ gwar9999 left channel #puppet ()
[2010/03/11 16:39:15] @ jheiss joined channel #puppet
[2010/03/11 16:39:46] <rmiller4pi8> aliver: sure, your external node script can do whatever it wants with hosts it doesn't recognize
[2010/03/11 16:39:49] @ ezmobius joined channel #puppet
[2010/03/11 16:40:14] <rmiller4pi8> or if a node isn't recognized at all it will automatically get the config defined in base.pp
[2010/03/11 16:40:26] <rmiller4pi8> err, sorry, class base
[2010/03/11 16:41:54] @ jcape joined channel #puppet
[2010/03/11 16:42:44] <jcape> Question re: arrays: I've got a $repoarray variable defined globally as an array of Yumrepo resources, and I'd like to add a new repo to it for a particular class.
[2010/03/11 16:43:16] <jcape> I've got $repoarray += [Yumrepo["blah"]] in the particular class, but it dumps "Could not retrieve catalog: Puppet::Parser::AST::VarDef failed with error TypeError: can't convert Array into String at /etc/puppet/services/s_ca/manifests/init.pp:26 on node ca-01.chi2.ntkn.com"
[2010/03/11 16:43:29] <jcape> This is in 0.24.8
[2010/03/11 16:43:43] <nigelk> has anyone used the require *function* yet?
[2010/03/11 16:44:07] <nigelk> I'm not sure it's actually functional (no pun intended)
[2010/03/11 16:44:24] @ n9986 joined channel #puppet
[2010/03/11 16:44:30] <jamesturnbull> nigelk: I've used it a little
[2010/03/11 16:44:36] <nigelk> and it works?
[2010/03/11 16:45:00] <jamesturnbull> nigelk: some teething issues but works mostly - masterzen knows the current issues ... most of which are fixed in HEAD I think
[2010/03/11 16:45:09] <nigelk> ah
[2010/03/11 16:45:19] <nigelk> http://pastebin.com/LzKHVHyJ
[2010/03/11 16:45:22] <nigelk> this fails on 0.25.4
[2010/03/11 16:45:29] <nigelk> undefined method `downcase' for #<Puppet::Parser::Resource::Reference:0x101f55d78> at /Users/nigelk/Desktop/test.pp:10
[2010/03/11 16:45:37] * nigelk checks 0.25.x
[2010/03/11 16:45:52] @ littleidea joined channel #puppet
[2010/03/11 16:45:57] @ Quit: swygue: Quit: Ex-Chat
[2010/03/11 16:46:29] @ fzzzt joined channel #puppet
[2010/03/11 16:47:33] <nigelk> hrm. fails on the 0.25.x branch too
[2010/03/11 16:48:06] <jbooth> jcape: You can't in general alter variables like that. You can, but it has to be a different scope which is in general terribly inconvenient.
[2010/03/11 16:49:44] <nigelk> am I doing it wrong jamesturnbull ?
[2010/03/11 16:50:29] <jcape> jbooth: The docs are wrong, then. http://reductivelabs.com/trac/puppet/wiki/LanguageTutorial#id25
[2010/03/11 16:51:33] <nigelk> jcape: they're not wrong, they're misleading
[2010/03/11 16:51:37] <jbooth> jcape: I didn't say you couldn't, I said you can't in general. You can when your scope changes.
[2010/03/11 16:51:40] <nigelk> I think you can append to it in a different scope
[2010/03/11 16:51:49] <nigelk> but not within the same scope... what he said
[2010/03/11 16:52:18] <nigelk> but I think what I found frustrating was that I couldn't do
[2010/03/11 16:52:23] <nigelk> $a = [1,2,3]
[2010/03/11 16:52:32] <nigelk> $b = $a += 4
[2010/03/11 16:52:40] <jcape> Well, I'm doing what the docs have.
[2010/03/11 16:52:45] <nigelk> or something along those lines when you really do need to work within the same scope
[2010/03/11 16:53:14] <jcape> site.pp defines $repoarray globally
[2010/03/11 16:53:37] <jcape> class s_ca { $repoarray += [Yumrepo["blah"]] }
[2010/03/11 16:54:05] <jamesturnbull> nigelk: weird - do both the class and resource require fail?
[2010/03/11 16:54:11] <nigelk> yes
[2010/03/11 16:54:13] <nigelk> both the same way
[2010/03/11 16:54:37] <jamesturnbull> nigelk: masterzen any ideas?
[2010/03/11 16:54:38] <nigelk> about to dash off to do a call with Scott
[2010/03/11 16:54:43] <jamesturnbull> nigelk: can you please log a ticket then?
[2010/03/11 16:54:54] <nigelk> will do. in the meantime the debug trace is....
[2010/03/11 16:55:04] <nigelk> http://pastebin.com/SmF36Ljk
[2010/03/11 16:55:16] @ fzzzt left channel #puppet ()
[2010/03/11 17:00:06] <ReinH> jY: ping
[2010/03/11 17:00:21] <jcape> i.e. I think the problem is that it only deals with arrays of strings, and not arbitrary arrays.
[2010/03/11 17:02:05] @ Quit: uphillian: Quit: Leaving.
[2010/03/11 17:02:19] <jbooth> I don't think I've tried it with arbitrary arrays, so that could be true
[2010/03/11 17:04:55] @ padraig_lennon joined channel #puppet
[2010/03/11 17:05:25] @ padraig_lennon left channel #puppet ()
[2010/03/11 17:06:33] <jY> ReinH, hi
[2010/03/11 17:08:46] <neek> so, can "if" do regex compares? I'm not having much luck, and docu seems vague...
[2010/03/11 17:09:09] <neek> like if $hostname == 'tibtwo-.*'
[2010/03/11 17:10:03] <Volcane> neek: the language tutorial even shows an example.
[2010/03/11 17:10:34] <neek> urm hrm. you mean http://reductivelabs.com/trac/puppet/wiki/LanguageTutorial#conditionals ?
[2010/03/11 17:10:54] <neek> it kinda doesnt mention anything for if.
[2010/03/11 17:11:01] <neek> unless I'm blind today, which is entirely possible.
[2010/03/11 17:17:45] @ Brownoxford is now known as Brown|afk
[2010/03/11 17:18:30] @ padraig_lennon joined channel #puppet
[2010/03/11 17:19:17] @ Quit: labrown: Quit: Leaving
[2010/03/11 17:19:35] <neek> ok, looks like, best I can tell, regex matching for if only arrived in 0.25
[2010/03/11 17:19:43] <neek> "# and starting with 0.25, regexes matches with the help of the regex match operator: =~ and !~"
[2010/03/11 17:20:04] <jbooth> Stupid question: Why doesn't user{} look through /etc/shells and try to match what you request as a shell?
[2010/03/11 17:20:17] @ Quit: rgsteele: Quit: ChatZilla 0.9.86 [Firefox 3.0.7/2009030423]
[2010/03/11 17:20:33] <neek> and you'll find that in http://reductivelabs.com/trac/puppet/wiki/LanguageTutorial#expressions
[2010/03/11 17:20:57] <jamesturnbull> jbooth: because it doesn't? :) Feature request if you'd like that or even better a patch.
[2010/03/11 17:21:21] <jbooth> jamesturnbull: I might have to.
[2010/03/11 17:21:39] <jamesturnbull> jbooth: is a valid shell mandatory on all OSes?
[2010/03/11 17:21:40] <neek> which returns me to zero.
[2010/03/11 17:21:48] * neek kicks augeas and if too.
[2010/03/11 17:22:42] @ piir joined channel #puppet
[2010/03/11 17:22:55] <jbooth> jamesturnbull: not strictly, but commands don't have a mandatory path either but both are supported.
[2010/03/11 17:23:09] @ morphic joined channel #puppet
[2010/03/11 17:23:42] <neek> so it looks like before .25 pretty much I have no way to conditional against a regex.
[2010/03/11 17:23:43] <jbooth> jamesturnbull: /etc/shells is kinda a search path for shells, much like $PATH is for commands.
[2010/03/11 17:23:57] <neek> no selectors, no if, no case
[2010/03/11 17:24:30] <piir> hello all, I'm new to puppet and ruby. i have this message while trying to code my own functions "value is a required option for Puppet::Parser::Resource::Param" What does it means?
[2010/03/11 17:25:05] @ Quit: alfism: Quit: alfism
[2010/03/11 17:25:21] <neek> so i guess I'll just split these up into different classes and manually include them in the appropriate nodes. @#$%@#$%!@#$!@#
[2010/03/11 17:25:36] @ Quit: littleidea: Ping timeout: 245 seconds
[2010/03/11 17:25:55] <jbooth> jamesturnbull: Actually the type claims the shell must exist and be executable, so the type believes it is more strict than mandatory.
[2010/03/11 17:26:14] <jbooth> On the down side the user providers look like they won't be fun to make that change in.
[2010/03/11 17:26:49] @ littleidea joined channel #puppet
[2010/03/11 17:26:51] <jbooth> piir: functions shouldn't have params. Are you writing a type?
[2010/03/11 17:28:20] <piir> jbooth: no it is a function, i'm following http://reductivelabs.com/trac/puppet/wiki/WritingYourOwnFunctions
[2010/03/11 17:28:25] @ Quit: alban2: Ping timeout: 240 seconds
[2010/03/11 17:28:54] <jamesturnbull> jbooth: let me check the code
[2010/03/11 17:29:22] @ wbruce joined channel #puppet
[2010/03/11 17:29:51] <jamesturnbull> jbooth: that type doco is incorrect
[2010/03/11 17:30:08] <jamesturnbull> jbooth: I can't find evidence that shell is checked
[2010/03/11 17:32:41] @ Quit: erm_: Ping timeout: 265 seconds
[2010/03/11 17:34:32] <jbooth> jamesturnbull: I couldn't either but I didn't dig real deep. Gets into lots of parent classes pretty quick.
[2010/03/11 17:34:58] <jbooth> jamesturnbull: Which is a pity; if it was it'd be easy to modify that a non-root path matches against /etc/shells
[2010/03/11 17:35:20] @ padraig_lennon left channel #puppet ()
[2010/03/11 17:35:44] @ stevenjenkins1 joined channel #puppet
[2010/03/11 17:35:45] <jbooth> piir: I'd have to see your funciton to guess further then. I guess params are probably reused in the function code, makes sense not to repeat
[2010/03/11 17:36:44] <eric0> piir: if you are really new, it's worth taking some time make sure you aren't reinventing some wheel before getting too deep in the weeds of custom code
[2010/03/11 17:37:29] @ Quit: stevenjenkins1: Remote host closed the connection
[2010/03/11 17:37:54] @ Quit: stevenjenkins: Ping timeout: 248 seconds
[2010/03/11 17:40:26] <n9986> hi, has anyone used puppet with ejabberd? I am trying to simply refresh ejabberd on a cfg file change. The error that I get from puppetd is "Execution of /sbin/service ejabberd restart' returned 127". (this is on a CentOS system)
[2010/03/11 17:40:45] @ Quit: aliver: Remote host closed the connection
[2010/03/11 17:40:46] <n9986> meanwhile when I manually run /sbin/service ejabberd restart it works perfectly fine.
[2010/03/11 17:41:01] @ aliver joined channel #puppet
[2010/03/11 17:41:02] <markl_> is it an environment problem or something?
[2010/03/11 17:41:30] <jbooth> piir: pastie.org man!
[2010/03/11 17:41:32] <piir> eric0, I'm trying to configure ~/.gitconfig for devs, in the file I need informations like mail, mail servers ....
[2010/03/11 17:41:58] <jbooth> piir: that said... what are you even trying to do there? I doubt your array is actually multi-dimensioned?
[2010/03/11 17:42:07] <markl_> ok is there an example somewhere of doing a regexp on a FQDN to try to grab different files?
[2010/03/11 17:42:53] <n9986> markl_: actually despite that error, the ejabberd server seems to be running ok
[2010/03/11 17:42:56] <piir> jbooth, sorry http://pastebin.org/110213
[2010/03/11 17:43:28] <jbooth> piir: what data are you passing in?
[2010/03/11 17:44:36] <piir> jbooth, something like defined in my file users.pp like, $myuser = ["mail_adress","fullname"]
[2010/03/11 17:45:02] @ DmosEmp joined channel #puppet
[2010/03/11 17:45:09] <piir> jbooth, and the second parameter is the index of this array that i want
[2010/03/11 17:46:03] <jbooth> piir: How does $myuser[0][$myuser[1]] make any sense with what you defined $myuser as?
[2010/03/11 17:46:52] <piir> jbooth, i think i have arg[0] = $myuser and arg[1] = $myindex
[2010/03/11 17:46:55] <n9986> ah well, I guess I can live with the error message for now. but somehow seems incomplete :(
[2010/03/11 17:47:15] <markl_> i want to do something like /[^\.]+\.(.+).domain.com/
[2010/03/11 17:47:27] <markl_> and then use $1 to choose which set of files to load
[2010/03/11 17:47:51] <markl_> is this possible? regexp node matching isn't really doing to cut it in this case
[2010/03/11 17:47:54] <jbooth> piir: So $myuser isn't what you're passing in. I think if you want help you have got to show whole code snippets that make it clear what you're trying to do, otherwise I'm just left guessing.
[2010/03/11 17:50:24] <dan__t> awesome.... turns out that hotfix hasn't been merged to trunk properly for the past six months.
[2010/03/11 17:50:29] <dan__t> that's COOL.
[2010/03/11 17:50:42] <dan__t> So there's a few bits of code in production that don't exist in svn.
[2010/03/11 17:50:56] @ Quit: littleidea: Quit: littleidea
[2010/03/11 17:53:14] <piir> jbooth, http://pastebin.org/110221
[2010/03/11 17:53:49] <jbooth> piir: quoting the array under group is a bad plan
[2010/03/11 17:53:57] @ Quit: WALoeIII: Read error: Connection reset by peer
[2010/03/11 17:54:31] @ WALoeIII joined channel #puppet
[2010/03/11 17:55:11] <piir> jbooth, ok but i tried both, and i still have the same error
[2010/03/11 17:56:35] <jbooth> piir: in any case, Volcane solved this probably nicer: http://www.devco.net/archives/2009/08/31/complex_data_and_puppet.php
[2010/03/11 17:56:46] @ mattwynne joined channel #puppet
[2010/03/11 17:57:07] <eric0> piir: really i dont think you need a new function and trying to do that will lead to pain. i'd just use an erb template, maybe in a define if you want to loop through a lot of users
[2010/03/11 17:58:02] @ Quit: mattwynne: Remote host closed the connection
[2010/03/11 17:58:38] @ Quit: pheezy_: Remote host closed the connection
[2010/03/11 17:59:06] @ mattwynne joined channel #puppet
[2010/03/11 17:59:11] @ pheezy joined channel #puppet
[2010/03/11 17:59:15] @ littleidea joined channel #puppet
[2010/03/11 17:59:31] <piir> jbooth, nice i'm sure that will do the trick.
[2010/03/11 18:02:49] @ Quit: mattwynne: Remote host closed the connection
[2010/03/11 18:02:54] <eric0> i.e. check this class for copying peoples dotfiles and ssh keys : http://pastie.org/865789
[2010/03/11 18:03:32] @ mattwynne joined channel #puppet
[2010/03/11 18:03:50] @ Quit: pheezy: Ping timeout: 260 seconds
[2010/03/11 18:04:15] <piir> eric0, I tried to but there's a lot of data used in the erb, and I don't know another solution than having a class per client. and that is not a solution IMHO
[2010/03/11 18:04:19] @ Quit: mattwynne: Remote host closed the connection
[2010/03/11 18:05:09] @ mattwynne joined channel #puppet
[2010/03/11 18:05:14] <eric0> ok, jus' chkcing
[2010/03/11 18:06:14] @ Quit: kolla: Remote host closed the connection
[2010/03/11 18:06:21] @ Quit: mattwynne: Remote host closed the connection
[2010/03/11 18:08:01] @ alfism joined channel #puppet
[2010/03/11 18:08:03] @ Quit: morphic: Ping timeout: 276 seconds
[2010/03/11 18:08:46] @ Quit: kaptk2: Remote host closed the connection
[2010/03/11 18:08:47] <vraptor> jbooth: thanks for the URL, looks helpful for situations where you have a wide variation in some aspect of your systems
[2010/03/11 18:09:15] <piir> eric0, your solutions is interesting, having all the files already in a repo.
[2010/03/11 18:10:31] @ Quit: p3rror: Read error: Operation timed out
[2010/03/11 18:11:06] <piir> eric0, but I still have to generate them.
[2010/03/11 18:13:17] @ Quit: littleidea: Quit: littleidea
[2010/03/11 18:13:36] @ erm_ joined channel #puppet
[2010/03/11 18:14:11] <eric0> yes in this case we let everyone manage their own .bashrc or whatnot. if they vary a lot maybe that is a solution for you. my thought was that you could also add another file resource below dot-ssh-$name that had content => template("homes/myconfig.erb") , so it would iterated over for each user with $name set to the username each time.
[2010/03/11 18:14:30] <eric0> ^it would get iterated over
[2010/03/11 18:15:48] <n9986> can I use a client's file and copy it to another client? like puppet://someclient/some/file
[2010/03/11 18:16:03] <markl_> is it possible to have my puppet class print some output to check my regexp matching
[2010/03/11 18:16:31] <n9986> markl_: you could use notify to print arbitrary strings
[2010/03/11 18:16:42] <markl_> ok ty
[2010/03/11 18:16:44] @ littleidea joined channel #puppet
[2010/03/11 18:17:18] <piir> eric0, jbooth, thanks a lot.
[2010/03/11 18:17:59] <markl_> n9986: i thought notify is what i would use to let a package know to restart or something like that
[2010/03/11 18:18:21] <n9986> markl_: no there is just a plain notify as well
[2010/03/11 18:18:26] @ Quit: piir: Quit: Quitte
[2010/03/11 18:18:31] <n9986> markl_: http://docs.reductivelabs.com/references/stable/type.html#notify
[2010/03/11 18:18:56] <markl_> ah cool
[2010/03/11 18:19:03] @ tjoe joined channel #puppet
[2010/03/11 18:21:36] @ kaptk2 joined channel #puppet
[2010/03/11 18:23:43] <n9986> I am having this particular usecase. In an ejabberd cluster, I need to have all .erlang_cookie files on each node carrying the same value. what would be the best way to handle that in puppet?
[2010/03/11 18:24:22] @ Quit: littleidea: Ping timeout: 256 seconds
[2010/03/11 18:24:33] @ littleidea joined channel #puppet
[2010/03/11 18:27:01] @ p3rror joined channel #puppet
[2010/03/11 18:28:48] @ Quit: afletcher: Read error: Connection reset by peer
[2010/03/11 18:28:51] @ Quit: kaptk2: Quit: Leaving.
[2010/03/11 18:29:01] @ afletcher joined channel #puppet
[2010/03/11 18:29:36] @ Quit: mealstrom: Quit: Leaving.
[2010/03/11 18:29:55] @ Quit: ahasenack: Quit: Leaving
[2010/03/11 18:31:58] @ Quit: erm_: Ping timeout: 265 seconds
[2010/03/11 18:33:40] <eric0> n9986: is it something that you know on the server and can copy to the clients? or one of your clients has the right known-good value and you want to distribute that everywhere?
[2010/03/11 18:35:02] @ spencert left channel #puppet ()
[2010/03/11 18:35:20] <beelzebob> so I'm trying to use extlookup with environments/modules... where do I specify $extlookup_datadir and $extlookup_precedence? I don't think site.pp is the place
[2010/03/11 18:35:21] <n9986> eric0: right. thats pretty much the setup. only caveat is that, the master ejabberd server (whose cookie needs to be synced with the clients), is actually a puppet client.
[2010/03/11 18:35:28] @ Quit: littleidea: Quit: littleidea
[2010/03/11 18:37:57] <n9986> so syncing files across clients is the issue. I could hack around it by manually copying the cookie to erlang master.
[2010/03/11 18:37:58] <beelzebob> n9986: sounds like a job for storeconfigs
[2010/03/11 18:38:06] <n9986> oh
[2010/03/11 18:38:14] <eric0> yes so you'll want to check out http://reductivelabs.com/trac/puppet/wiki/ExportedResources , unfortunately that imposes a requirement of storeconfigs, but this is exactly what you're describing
[2010/03/11 18:38:29] * n9986 reads
[2010/03/11 18:39:59] <beelzebob> I suppose I should add to my question that I'm using external nodes
[2010/03/11 18:40:27] <beelzebob> so I'm trying to use extlookup with environments/modules/external nodes... where do I specify $extlookup_datadir and $extlookup_precedence? I don't think site.pp is the place
[2010/03/11 18:41:07] <beelzebob> I've tried to stick modulepath in there somehow...
[2010/03/11 18:41:40] @ Quit: jheiss: Ping timeout: 276 seconds
[2010/03/11 18:42:33] <beelzebob> it seems like I want $modulepath/extdata or $modulepath/$module/extdata even... but it seems like extlookup.rb doesn't have access to these vars?
[2010/03/11 18:42:34] @ Quit: nexx: Quit: quit
[2010/03/11 18:43:30] <n9986> seems storedconfigs will need more work. will continue with this tomorrow. thanks eric0, beelzebob
[2010/03/11 18:43:44] <eric0> beelzebob: not using extlookup but i thought those were puppet.conf config parameters, not manifest/puppet-language variables
[2010/03/11 18:44:34] <beelzebob> eric0: so it seems... but I didn't know what the lookupvar function in extlookup.rb has access to
[2010/03/11 18:45:04] <beelzebob> since that's where they seem to be assigned
[2010/03/11 18:48:12] @ Quit: mpdehaan: Quit: mpdehaan
[2010/03/11 18:52:13] @ kazoo joined channel #puppet
[2010/03/11 18:52:27] @ jheiss joined channel #puppet
[2010/03/11 19:03:31] @ Quit: jcape: Ping timeout: 245 seconds
[2010/03/11 19:04:46] @ kazoo left channel #puppet ()
[2010/03/11 19:05:32] @ erm_ joined channel #puppet
[2010/03/11 19:06:25] <markl_> is this syntax obsolete:
[2010/03/11 19:06:28] <markl_> notice("Welcome $1!")
[2010/03/11 19:09:03] <markl_> and what regex type does it use, can i do perl things?
[2010/03/11 19:14:46] @ littleidea joined channel #puppet
[2010/03/11 19:15:46] @ Quit: jes5: Quit: Leaving.
[2010/03/11 19:15:47] <markl_> hmm is it possible to take a regex of $fqdn and then do a case on $1 ?
[2010/03/11 19:19:14] <markl_> looks like i can't just do: $fqdn =~ /regexp/
[2010/03/11 19:20:03] <eric0> pastie the syntax you think ought to work
[2010/03/11 19:20:27] @ tonysk8 joined channel #puppet
[2010/03/11 19:21:13] <markl_> ok got it, works like perl if i wrap it in an if statement
[2010/03/11 19:21:54] <markl_> is there an equivalent to die if the expression doesn't match?
[2010/03/11 19:23:20] @ Quit: giskard: Remote host closed the connection
[2010/03/11 19:23:27] @ Quit: jab_doa: Quit: Verlassend
[2010/03/11 19:23:35] @ Quit: tonyskapunk: Ping timeout: 246 seconds
[2010/03/11 19:26:05] @ Quit: rmiller4pi8: Ping timeout: 240 seconds
[2010/03/11 19:26:21] <eric0> die? its not a program, it's a description of system state.
[2010/03/11 19:27:47] <tmz> eric0: I've wanted more than a few systems to just die. But that's a different matter. :)
[2010/03/11 19:31:15] @ Quit: littleidea: Ping timeout: 276 seconds
[2010/03/11 19:32:53] <markl_> well maybe i can do one of those error notifications
[2010/03/11 19:33:05] <markl_> something to let the user know that this class failed for the host
[2010/03/11 19:33:23] @ bug joined channel #puppet
[2010/03/11 19:33:32] @ jgartrel joined channel #puppet
[2010/03/11 19:38:14] @ littleidea joined channel #puppet
[2010/03/11 19:46:33] @ Quit: tonysk8: Quit: Leaving
[2010/03/11 19:47:12] @ tonyskapunk joined channel #puppet
[2010/03/11 19:47:48] @ Quit: cwebber: Quit: cwebber
[2010/03/11 19:49:46] @ Quit: murkk: Quit: murkk
[2010/03/11 19:51:38] <tonyskapunk> hi there
[2010/03/11 19:52:19] <tonyskapunk> I'm looking a strange behavior in puppet, I'm using 0.24.8 client and server with passenger
[2010/03/11 19:53:21] <tonyskapunk> I have multiple environments, so a dup definition was sent to prod and I've fixed in dev, then I attempt to run the client pointing to dev but seems like is still looking at prod
[2010/03/11 19:54:05] <tonyskapunk> http://fpaste.org/SnYV/ there is the output of client and server
[2010/03/11 19:54:25] <tonyskapunk> hopefully somebody could point me to the right direction
[2010/03/11 20:02:30] @ jcape joined channel #puppet
[2010/03/11 20:02:37] @ swygue joined channel #puppet
[2010/03/11 20:05:14] @ Quit: bug: Ping timeout: 246 seconds
[2010/03/11 20:05:33] <eric0> you using external nodes by chance? #2748 looks interesting
[2010/03/11 20:05:33] <gepetto> eric0: #2748 is http://projects.reductivelabs.com/issues/show/2748 "Puppet - Bug #2748: config file takes priority over external_nodes in 0.25.x - ReductiveLabs.com"
[2010/03/11 20:09:47] @ Quit: Alagar: Ping timeout: 268 seconds
[2010/03/11 20:13:26] @ rmiller4pi81 joined channel #puppet
[2010/03/11 20:15:47] @ Ned_ joined channel #puppet
[2010/03/11 20:15:54] <Ned_> how do you escape a '$' symbol in a puppet string ?
[2010/03/11 20:16:09] <Ned_> Hmmm, a \ seems to work
[2010/03/11 20:21:05] <Ned_> is there a way to specify >= $version when doing packages ?
[2010/03/11 20:21:13] <Ned_> rather than specifying a specific version ?
[2010/03/11 20:21:33] <tonyskapunk> ensure => "$version"
[2010/03/11 20:21:47] <Ned_> tonyskapunk: that's = not >=
[2010/03/11 20:21:58] <Ned_> sorry, not clear
[2010/03/11 20:22:12] <Ned_> I'm looking to say package greater than this version, rather than equal to this version
[2010/03/11 20:24:29] <tonyskapunk> Ned_: not sure.. as puppet language is declarative I think you have to define which version do you want to have
[2010/03/11 20:24:43] <Ned_> right
[2010/03/11 20:24:43] <Ned_> :-(
[2010/03/11 20:24:45] <Ned_> never to mind
[2010/03/11 20:24:48] * Ned_ will use exec for this
[2010/03/11 20:25:17] @ cliff-hm joined channel #puppet
[2010/03/11 20:27:07] @ Quit: lak: Quit: lak
[2010/03/11 20:30:04] @ Quit: jheiss: Quit: jheiss
[2010/03/11 20:32:57] @ Quit: littleidea: Quit: littleidea
[2010/03/11 20:40:36] @ Quit: alfism: Quit: http://opensolaris.com/
[2010/03/11 20:42:18] @ maxagaz joined channel #puppet
[2010/03/11 20:45:45] <ReinH> jY: ping again :)
[2010/03/11 20:48:44] @ Quit: tjoe: Quit: leaving
[2010/03/11 20:55:18] <tonyskapunk> is possible that an ArgumentError in a environment affects the catalog of another environment when the puppetmaster is serving multiple environments ?
[2010/03/11 20:56:03] <ohadlevy> morning :)
[2010/03/11 20:56:13] <ohadlevy> tonyskapunk: not likely
[2010/03/11 20:56:38] <tonyskapunk> I got a situation that looks like that
[2010/03/11 20:57:02] @ Quit: ezmobius: Remote host closed the connection
[2010/03/11 20:57:11] <tonyskapunk> if you have some time to look: http://fpaste.org/SnYV/
[2010/03/11 20:58:59] <ohadlevy> tonyskapunk: you have a duplicate resource - see line 10
[2010/03/11 20:59:43] <tonyskapunk> ohadlevy: yeah I know, but is on production ;) I've fixed that in dev, that's why I'm pointing that machine to dev but still getting the catalog of prod
[2010/03/11 21:00:43] <ohadlevy> tonyskapunk: hmm.. do you use external nodes?
[2010/03/11 21:00:54] <tonyskapunk> ohadlevy: nope
[2010/03/11 21:01:22] @ Quit: lilmatt: Ping timeout: 258 seconds
[2010/03/11 21:01:22] <ohadlevy> tonyskapunk: because if a environment which is defined in a external node override the client settings...
[2010/03/11 21:01:43] <ohadlevy> check the server node yaml file to see in which env it is
[2010/03/11 21:01:48] @ bug joined channel #puppet
[2010/03/11 21:03:17] <dan__t> hrmhrmrhmrmrhrmmm....
[2010/03/11 21:03:32] @ jcape left channel #puppet ()
[2010/03/11 21:03:35] <dan__t> So I use --environment on all my machines, then I have separate environments that machines pull from
[2010/03/11 21:03:41] <tonyskapunk> ohadlevy: yup pointing to prod: environment: production.. few min ago in a desperate way to solve it.. I deleted the node and facts form the server, on the client reinstalled puppet
[2010/03/11 21:03:44] <dan__t> dev, test, qa, prod, ops etc etc.
[2010/03/11 21:03:56] <dan__t> Is there a way to exempt a particular module from a specific machine?
[2010/03/11 21:04:11] <dan__t> Like, hey even though this is inside of 'default', include it on every machine, except.... that one over there.
[2010/03/11 21:04:39] <ohadlevy> dan__t: you can do it with ugly if conditions on the class level, or move your class selection into external nodes
[2010/03/11 21:04:51] <dan__t> Yea, that's narsty
[2010/03/11 21:05:10] <dan__t> shuold prolly just make a new environment for this specific machine
[2010/03/11 21:05:48] <dan__t> but puppet manages /etc/sysconfig/puppet on the puppetized machine, so puppet actually sets the environment based on the hostname
[2010/03/11 21:06:08] <dan__t> Guess I can temporarily write in an if $fqdn != machinename..a...asd.s.da.s...local whatever
[2010/03/11 21:06:10] <ohadlevy> dan__t: do you use external nodes?
[2010/03/11 21:06:27] <dan__t> I do not.
[2010/03/11 21:06:31] <dan__t> I need to. Way bad.
[2010/03/11 21:06:50] <ohadlevy> dan_t: not bad, but it will allow you to define the env in the external nodes rather then in the local puppet.conf
[2010/03/11 21:07:20] <dan__t> Yea it would wouldn'tit.
[2010/03/11 21:07:42] <tonyskapunk> what I do is using in /etc/sysconfig/puppet passing the --environment flag, as I'm running the deamon
[2010/03/11 21:08:18] @ Quit: afletcher: Quit: afletcher
[2010/03/11 21:08:20] <tonyskapunk> but right now I've stopped the deamon and forcing to use that specific environment, but refuses to pull the catalog from there
[2010/03/11 21:08:34] <dan__t> yea that's what i need to do.
[2010/03/11 21:08:37] <ohadlevy> tonyskapunk: hmm.. any chance its running the catalog cache instead?
[2010/03/11 21:08:43] <dan__t> but I am trying to write a manifest for this specific machine.
[2010/03/11 21:08:52] <dan__t> I know, kidna bass-ackwards way of doing it but that's what i've got right now.
[2010/03/11 21:09:17] <dan__t> heh. know what. i'l just dev in my qa trunk... only apply that module to this specific machine. duh.
[2010/03/11 21:09:27] <dan__t> just gotta remember that this module is being, well, dev'd in qa
[2010/03/11 21:09:30] <ohadlevy> dan__t: there are few good external nodes scripts and framework around, you might want to give them a shot
[2010/03/11 21:09:44] <dan__t> Too many moving parts, and I need to learn more LDAP.
[2010/03/11 21:09:56] <dan__t> It gets better. We don't really use LDAP any more. We use AD, which exposes its junk via ADAM.
[2010/03/11 21:10:12] <dan__t> Yeah I said that.
[2010/03/11 21:11:33] <dan__t> This is the first run: puppetd --waitforcert 600 --tags=initialization --runinterval=60
[2010/03/11 21:11:46] <dan__t> This is the second run: puppetd --waitforcert 600 --environment=$envname --runinterval=60
[2010/03/11 21:12:01] <dan__t> lied. runinterval after puppet takes over is 300
[2010/03/11 21:13:01] @ littleidea joined channel #puppet
[2010/03/11 21:14:08] @ Quit: alexine_dsouza: Read error: Connection reset by peer
[2010/03/11 21:15:10] <tonyskapunk> ohadlevy: Don't think it is using anymore, I deleted on the client the vardir and reinstalled the client to discard that possibility, same did with the nodes and facts on the server side
[2010/03/11 21:15:28] @ Quit: WALoeIII: Quit: Bai.
[2010/03/11 21:15:40] <ohadlevy> tonyskapunk: are you 100% sure you are not using external nodes then? (e.g. dashboard, foreman) :)
[2010/03/11 21:16:11] <tonyskapunk> ohadlevy: yup, I wish I were using foreman ;)
[2010/03/11 21:16:48] <ohadlevy> tonyskapunk: thats another story ;) hmm.. is your master 0.24x or 0.25x?
[2010/03/11 21:16:56] <tonyskapunk> 0.24
[2010/03/11 21:17:33] <ohadlevy> I remember a problem with 0.24 where puppet would cache the modules in the env, (e.g. if you changed a module), did you try to restart your master?
[2010/03/11 21:18:08] <tonyskapunk> actually yes I tried restarted it also, I should've said that before.. also I'm using passenger
[2010/03/11 21:21:47] <ohadlevy> tonyskapunk: and you are 100% sure that you actually fix the duplicate definition error ? :)
[2010/03/11 21:24:46] <tonyskapunk> that's actually a good point.. even if I haven't fixed it(I did, just checked again) why if I defined two diff environments in the puppet.conf in master and I'm telling the client use --environment=development is grabbing the catalog that lives in prod ?
[2010/03/11 21:25:39] <tonyskapunk> The line 10 that has that error shows: in file /opt/puppet/production/profiles/one.pp at line 197; cannot redefine at /opt/puppet/production/nodegroups/one.pp:9095
[2010/03/11 21:26:07] <jY> ReinH, hi again
[2010/03/11 21:26:18] <tonyskapunk> /opt/puppet/production is the path of my modules and manifest
[2010/03/11 21:26:24] <ReinH> jY: was that your article on installing dashboard?
[2010/03/11 21:26:37] <jY> yes
[2010/03/11 21:26:57] <jY> i figured it might help people that ran into my issues
[2010/03/11 21:31:17] @ Quit: jaredrhine: Ping timeout: 265 seconds
[2010/03/11 21:32:58] @ afletcher joined channel #puppet
[2010/03/11 21:34:27] @ notbrien left channel #puppet ()
[2010/03/11 21:36:44] @ Quit: wbruce: Ping timeout: 240 seconds
[2010/03/11 21:40:28] @ jheiss_ joined channel #puppet
[2010/03/11 21:41:43] <dan__t> So what's my best bet for kernel options?
[2010/03/11 21:42:16] <dan__t> maintain a template of grub.conf or something?
[2010/03/11 21:42:27] <ohadlevy> or use augeas
[2010/03/11 21:43:56] <dan__t> hrm,
[2010/03/11 21:45:00] @ wbruce joined channel #puppet
[2010/03/11 21:46:35] <ReinH> jY: Thanks :) BTW you can use yum for all of those packages. Or, even better, use ralsh ;)
[2010/03/11 21:47:02] <jY> you can if you install the epel repo
[2010/03/11 21:47:39] <jY> thanks for dashboard.. makes my work a bit easier and lazier
[2010/03/11 21:48:18] @ Quit: bug: Quit: bug
[2010/03/11 21:49:20] @ Emzzzz joined channel #puppet
[2010/03/11 21:49:20] <Emzzzz> http://imggmi.info/DSC-1268361770.jpg/ do my tits look big?
[2010/03/11 21:49:22] @ Emzzzz left channel #puppet ()
[2010/03/11 21:49:56] <ReinH> jY: awesome :) feel free to post feature requests to the list, or create a ticket
[2010/03/11 21:50:02] <ReinH> jY: also, do you mind if I link to your post from the README?
[2010/03/11 21:50:11] <jY> feel free
[2010/03/11 21:50:15] <ReinH> sweet
[2010/03/11 21:52:19] <ReinH> jY: what do you use dashboard for?
[2010/03/11 21:53:19] <jY> mainly to make sure all my checkins don't error out and that all the clients are still checking in
[2010/03/11 21:54:08] <ReinH> ok, so you're most interested in error reporting/notifications?
[2010/03/11 21:54:27] <ReinH> like "these nodes haven't checked in within the last 30m"
[2010/03/11 21:55:01] <jY> yep
[2010/03/11 21:55:27] <jY> and also.. these nodes have errors/warnings when checking in
[2010/03/11 21:55:35] <ReinH> jY: atm there isn't an easy way to get that checkin time from Puppet. Would a configuration option be enough for now?
[2010/03/11 21:56:09] <jY> ReinH, what you have no works fine for me.. it tells me last checkin time
[2010/03/11 21:56:16] <ReinH> nod
[2010/03/11 21:56:29] <ReinH> I'm thinking we could pull that info to the dashboard page
[2010/03/11 21:56:41] <ohadlevy> ReinH: which time is that? checkin as to the repo or when the client connected the master?
[2010/03/11 21:56:45] <ReinH> that's the kind of stuff you want immediate reporting on
[2010/03/11 21:56:50] <jY> ya that would be great.. even better to have an endpoint where i can hit with nagios
[2010/03/11 21:56:56] <ReinH> ohadlevy: how often clients schedule their runs
[2010/03/11 21:57:01] <jY> then i can have nagios alert me
[2010/03/11 21:57:18] <ohadlevy> ReinH: ah yeah, I use it a configurable option in foreman
[2010/03/11 21:57:24] <ReinH> yeah, we're definitely looking at nagios/monitoring system X integration
[2010/03/11 21:57:35] <ReinH> ohadlevy: nod
[2010/03/11 21:58:47] <ReinH> ohadlevy: did you see my response to the dev thread about puppetrun?
[2010/03/11 21:59:03] <ohadlevy> ReinH: yeah
[2010/03/11 21:59:29] <ReinH> I've done a fair amount of work implementing things in dashboard in a way that avoids any dependencies in puppet on dashboard
[2010/03/11 21:59:36] <ohadlevy> ReinH: me too
[2010/03/11 21:59:44] @ Quit: strattog: Ping timeout: 240 seconds
[2010/03/11 21:59:45] <ohadlevy> so far I'm not aware of any
[2010/03/11 22:00:05] <ReinH> this is one of the reasons we're pushing for more REST endpoints, to provide client apps with more ways to interact with Puppet
[2010/03/11 22:00:13] @ prekitt joined channel #puppet
[2010/03/11 22:00:53] <ohadlevy> ReinH: yeah make sense, I would be happy to have a kind of common gateway function where puppet can query dashboard/foreman
[2010/03/11 22:00:56] <ReinH> which should help Foreman as well
[2010/03/11 22:01:49] <ReinH> that should be more or less as easy as configuring dashboard/foreman as a REST terminus
[2010/03/11 22:01:57] <ReinH> and making dashboard/foreman understand Puppet's REST conventions
[2010/03/11 22:02:36] <ReinH> for instance, my current external nodes script (borrowed from Foreman, btw) would be obsoleted if Puppet could use Dashboard as a nodes REST terminus
[2010/03/11 22:02:46] <ReinH> and we're quite close to that already
[2010/03/11 22:02:54] <ohadlevy> ReinH: yeah, and that quite simple to do
[2010/03/11 22:03:05] <ReinH> so that common gateway is essentially the REST interface
[2010/03/11 22:03:13] <ohadlevy> we could also share the caching of node information
[2010/03/11 22:03:22] <ohadlevy> e.g. if dashboard/foreman is down
[2010/03/11 22:03:24] @ Quit: prekitt_: Ping timeout: 240 seconds
[2010/03/11 22:03:34] <ReinH> nod
[2010/03/11 22:03:56] <ohadlevy> right know I keep the yaml output in a temp dir, and use it if icant reach the server
[2010/03/11 22:04:07] <ReinH> right, and processing YAML is expensive
[2010/03/11 22:04:27] <ohadlevy> its usually small enough that it doesnt matter, but in general yeah
[2010/03/11 22:04:38] <ohadlevy> the reports yaml is expansive
[2010/03/11 22:05:20] <ohadlevy> but looking at the logs, all facts yaml and reports yaml are processed in about 100ms - so :)
[2010/03/11 22:05:37] <ReinH> I'm more worried about memory usage
[2010/03/11 22:05:45] <ohadlevy> for puppet or dashboard?
[2010/03/11 22:05:49] <ReinH> Puppet
[2010/03/11 22:06:03] <ohadlevy> yeah, I agree
[2010/03/11 22:06:08] <ReinH> reading lots of YAML does not play nice with heap size
[2010/03/11 22:06:12] <ReinH> leading to bloated processes
[2010/03/11 22:06:29] <ohadlevy> I would love to use another interface
[2010/03/11 22:07:21] <ohadlevy> but using an approch like passenger or monit (for the mongrels) is considered acceptable - as ruby never release memory to the OS you still need something to cleanup
[2010/03/11 22:07:28] <ReinH> we briefly mentioned storing the non-human-readable (or not-read-by-humans) stuff in something like BERT, which is a binary format
[2010/03/11 22:08:17] <ReinH> storing and sending over the wire
[2010/03/11 22:08:22] <ReinH> it's more efficient and less buggy
[2010/03/11 22:08:38] <ohadlevy> interesting, for which parts?
[2010/03/11 22:08:51] @ Quit: kubicek: Quit: kubicek
[2010/03/11 22:09:12] @ Quit: shadoi: Ping timeout: 276 seconds
[2010/03/11 22:09:56] <ReinH> ohadlevy: most of the REST transport (since humans don't care to read that, despite what you may have heard ;)
[2010/03/11 22:09:59] <ReinH> s/most/all
[2010/03/11 22:10:22] <ReinH> basically we'd prefer if people didn't have to glob filesystems to learn things about Puppet
[2010/03/11 22:10:34] <tonyskapunk> ohadlevy: I ended merging the changes into prod, this time everything looks good.. it was an odd situation if I have time will try to replicate.. Thanks for your help
[2010/03/11 22:10:41] <ReinH> to the extent that the REST interface can provide the information, you shouldn't care what format it's stored in
[2010/03/11 22:11:16] <ohadlevy> ReinH: yeah, as long as it doesnt slow down puppet (e.g. reading a file from the FS might be faster then querying puppet)
[2010/03/11 22:11:28] <ReinH> if curl -H "Accept:application/x-yaml" http://puppet.local/nodes/hostname can provide you with the YAML description of the node, it doesn't matter if it's stored on the FS in YAML
[2010/03/11 22:11:47] <ohadlevy> sure
[2010/03/11 22:12:02] <ReinH> ohadlevy: that's a good point, and also one of the reasons we're working to make the services independent
[2010/03/11 22:12:25] <ohadlevy> the only question if you can also ask if there was a change from list time, so you don't actually need to get the details (e.g. for facts)
[2010/03/11 22:12:27] <ReinH> it's easier to scale 5 services than one big monolithic service
[2010/03/11 22:12:34] <ohadlevy> tonyskapunk: your welcome :)
[2010/03/11 22:12:42] <tonyskapunk> nite all
[2010/03/11 22:13:08] <whack> ReinH: 'Accept' headers are great for computers, not humans
[2010/03/11 22:13:30] <whack> I much like the 'format' stuff rails/merb has (probably others do too) where you fetch /foo/bar/thing.xml and you get xml, change to .yaml and you get yaml.
[2010/03/11 22:13:48] @ Quit: tonyskapunk: Quit: Leaving
[2010/03/11 22:13:58] <ReinH> whack: Accept headers are roughly equivalent in suck to determining the location of a particular YAML file and cat'ing it, IMO
[2010/03/11 22:14:07] <ReinH> whack: for humans, I agree, and we should support both
[2010/03/11 22:14:27] <ReinH> hostnames make this slightly obnoxious by often including a '.'
[2010/03/11 22:14:37] <whack> yeah
[2010/03/11 22:14:42] <ReinH> but that's an implementation problem
[2010/03/11 22:14:43] <whack> coul dstandardize on ?format=type
[2010/03/11 22:15:02] <ReinH> nod
[2010/03/11 22:15:37] <ReinH> whack: then again, tools like Foreman and Dashboard are designed to do the "Accept" stuff for you (because they are, you know, computer interfaces...)
[2010/03/11 22:16:17] <ReinH> We're also planning on a CLI for Puppet's REST services, which would hide the annoying stuff like Accept headers
[2010/03/11 22:16:39] <whack> that would work too
[2010/03/11 22:16:44] <ReinH> puppet node --format=yaml hostname # or a completely different UI that is better
[2010/03/11 22:17:53] <ReinH> even if it currently just reads the file for you, we'd like to hide the implementation (filesystem, database, etc) behind a nicer interface
[2010/03/11 22:18:26] <ReinH> that lets us make changes to Puppet more easily with less concern about breaking existing tools
[2010/03/11 22:18:26] @ rmiller4pi8 joined channel #puppet
[2010/03/11 22:18:51] @ ahuman joined channel #puppet
[2010/03/11 22:19:11] <ReinH> for instance, changing node storage format from YAML to something better would break a lot of ad-hoc node management tools out in the wild
[2010/03/11 22:19:24] @ Quit: littleidea: Quit: littleidea
[2010/03/11 22:19:42] @ tjoe joined channel #puppet
[2010/03/11 22:20:01] @ shadoi joined channel #puppet
[2010/03/11 22:20:03] <whack> yep, like views on a database
[2010/03/11 22:21:00] <ReinH> IOW, we want to provide a stable, uniform interface that people can use to build tools with some confidence that they won't break every other release
[2010/03/11 22:21:34] <ReinH> not to mention tools in other languages
[2010/03/11 22:22:01] @ Quit: rmiller4pi81: Ping timeout: 264 seconds
[2010/03/11 22:22:12] @ jaredrhine joined channel #puppet
[2010/03/11 22:22:41] <ReinH> which is where we really start to get interesting stuff being build in the community, IMO
[2010/03/11 22:22:50] <ReinH> we have a lot more non-Ruby developers than Ruby developers
[2010/03/11 22:22:55] @ Quit: lutter: Quit: Leaving.
[2010/03/11 22:24:15] <ReinH> *built
[2010/03/11 22:25:15] <jgartrel> How does puppetmaster determine its confdir when running under passenger with rack?
[2010/03/11 22:25:33] @ Djelibeybi joined channel #puppet
[2010/03/11 22:26:23] <ReinH> ... and now back to our regularly scheduled Puppet help chat ;)
[2010/03/11 22:28:00] <jgartrel> with non-passenger its set through sourcing '/etc/sysconfig/puppetmaster' to set the env variable 'PUPPETMASTER_OPTS' , but how is it done for passenger/rack
[2010/03/11 22:31:58] <whack> jgartrel: you may not be able to set it
[2010/03/11 22:33:17] @ strattog joined channel #puppet
[2010/03/11 22:33:40] <ohadlevy> jgartrel: in puppet.conf i think
[2010/03/11 22:33:48] @ Quit: tjoe: Quit: leaving
[2010/03/11 22:33:53] <whack> so it's probably looking in the default puppet.conf
[2010/03/11 22:33:53] <whack> yeah
[2010/03/11 22:38:01] @ ichristo joined channel #puppet
[2010/03/11 22:38:45] @ Quit: ReinH: Read error: Operation timed out
[2010/03/11 22:44:24] @ Quit: realist: Ping timeout: 240 seconds
[2010/03/11 22:47:24] @ Quit: pting: Quit: Ex-Chat
[2010/03/11 22:48:50] @ anakha_ is now known as anakha
[2010/03/11 22:48:57] @ Quit: anakha: Changing host
[2010/03/11 22:48:57] @ anakha joined channel #puppet
[2010/03/11 22:52:09] @ ReinH joined channel #puppet
[2010/03/11 22:52:50] @ realist joined channel #puppet
[2010/03/11 23:01:24] @ lilmatt joined channel #puppet
[2010/03/11 23:01:37] @ Quit: lilmatt: Client Quit
[2010/03/11 23:11:55] @ Quit: ichristo: Remote host closed the connection
[2010/03/11 23:13:28] @ ichristo joined channel #puppet
[2010/03/11 23:14:07] @ Quit: ahuman: Remote host closed the connection
[2010/03/11 23:14:27] @ Quit: wbruce: Ping timeout: 252 seconds
[2010/03/11 23:16:12] <justdave> can you use both unless and onlyif on the same exec?
[2010/03/11 23:16:48] <Djelibeybi> justdave: yes, you can.
[2010/03/11 23:17:20] <justdave> hmm, must have had something wrong with one of the tests then.
[2010/03/11 23:17:22] * justdave plays some more
[2010/03/11 23:18:46] <Djelibeybi> justdave: they both are considered though, so the onlyif must be true and the unless must be false
[2010/03/11 23:18:58] <justdave> right, that's what I was hoping
[2010/03/11 23:21:35] @ Quit: zerash: Read error: Connection reset by peer
[2010/03/11 23:25:25] <justdave> oh, for silly uncaught syntax errors.
[2010/03/11 23:25:34] <justdave> had {$name} somewhere that was supposed to be ${name}
[2010/03/11 23:25:54] @ ichristo left channel #puppet ()
[2010/03/11 23:26:17] @ Quit: jgartrel: Quit: jgartrel
[2010/03/11 23:27:54] @ bug joined channel #puppet
[2010/03/11 23:28:05] @ wbruce joined channel #puppet
[2010/03/11 23:31:05] @ Quit: jheiss_: Quit: jheiss_
[2010/03/11 23:51:43] @ jheiss joined channel #puppet

Generated by irclog2html.py 2.6 by Marius Gedminas - find it at mg.pov.lt!