Friday, 2010-06-18

[2010/06/18 00:03:20] @ Log started by gepetto
[2010/06/18 00:03:20] @ yannL joined channel #puppet
[2010/06/18 00:09:59] <ReinH> zipkid: which?
[2010/06/18 00:10:13] <zipkid> the LIMIT 30 one, your last
[2010/06/18 00:10:40] <ReinH> zipkid: it's in a ticket branch on my github, waiting to be merged in
[2010/06/18 00:10:52] <zipkid> .... darn...
[2010/06/18 00:11:06] <zipkid> this blocks me for over amonth... :-(
[2010/06/18 00:11:15] <ReinH> give it a (business) day or two or grab my fork
[2010/06/18 00:11:18] @ giskard joined channel #puppet
[2010/06/18 00:11:29] <zipkid> i have 89 classes ...
[2010/06/18 00:11:44] <zipkid> (so far)
[2010/06/18 00:11:51] <ReinH> zipkid: it's available from my github...
[2010/06/18 00:12:36] <zipkid> ah.. here ? http://github.com/reinh/puppet-dashboard/commits/master
[2010/06/18 00:13:14] <ReinH> zipkid: actually http://github.com/reinh/puppet-dashboard/commits/feature/master/3719-node_class-pagination
[2010/06/18 00:13:25] <ReinH> clone and checkout that branch, build your gem (or etc), go to town
[2010/06/18 00:14:40] @ lohapuk joined channel #puppet
[2010/06/18 00:14:44] @ mfournier joined channel #puppet
[2010/06/18 00:15:08] <zipkid> hmm... fatal: http://github.com/reinh/puppet-dashboard/commits/feature/master/3719-node_class-pagination/info/refs not found: did you run git update-server-info on the server
[2010/06/18 00:15:19] <zipkid> im recently new to git....
[2010/06/18 00:15:28] @ Quit: suchu: Quit: ChatZilla 0.9.86 [Firefox 3.6.3/20100401080539]
[2010/06/18 00:15:39] <ReinH> zipkid: git clone git://github.com/reinh/puppet-dashboard
[2010/06/18 00:15:40] <ReinH> er
[2010/06/18 00:15:42] <ReinH> zipkid: git clone git://github.com/reinh/puppet-dashboard.git
[2010/06/18 00:15:46] @ ckauhaus joined channel #puppet
[2010/06/18 00:15:51] <ReinH> git checkout 3719-node_class-pagination
[2010/06/18 00:16:07] <zipkid> ah , ok :-) thx
[2010/06/18 00:16:41] <ReinH> np
[2010/06/18 00:16:54] <ReinH> zipkid: if that works for you, please +1 the ticket :)
[2010/06/18 00:17:21] <zipkid> ok, Thanks! (and thanks to gitbox on os x :-) )
[2010/06/18 00:18:45] <ReinH> heh :)
[2010/06/18 00:18:51] @ TREllis joined channel #puppet
[2010/06/18 00:19:44] <zipkid> i have not been building gems... so far i just use the checked out tree to run dashboard from... is that a bad idea?
[2010/06/18 00:19:59] <ReinH> nah
[2010/06/18 00:20:04] <ReinH> totally fine
[2010/06/18 00:20:16] <ReinH> that's how most people run Rails apps
[2010/06/18 00:20:26] <ReinH> I actually don't think it builds into a gem atm
[2010/06/18 00:20:32] <ReinH> because, well, sysadmins don't use rubygems
[2010/06/18 00:20:41] <ReinH> so it's a nonstarter
[2010/06/18 00:20:57] @ Ramonster joined channel #puppet
[2010/06/18 00:22:46] <zipkid> i see your bug #3475 branch... is ther going to be some user-management added to Dashboard?
[2010/06/18 00:22:47] <gepetto> zipkid: #3475 is http://projects.puppetlabs.com/issues/show/3475 "Puppet Dashboard - Bug #3475: login is not mandatory - Puppet Labs"
[2010/06/18 00:24:10] @ Quit: littleidea: Quit: littleidea
[2010/06/18 00:24:22] <zipkid> in the meanwile i discovered where githup keeps the branches :-)
[2010/06/18 00:24:26] <ReinH> zipkid: we're adding basic authentication
[2010/06/18 00:24:52] <ReinH> and also a RBAC-like system
[2010/06/18 00:25:34] <zipkid> ok... sounds ok
[2010/06/18 00:26:49] <zipkid> Ah... a suggestion.... if you stored the previous version of a parameter's value in the history table then you have a full versioning/accounting system right there... that with user logins would be great...
[2010/06/18 00:27:51] <ReinH> nod
[2010/06/18 00:28:04] <zipkid> just 1 field extra :-)
[2010/06/18 00:28:20] <zipkid> 2 if the user-id is not there yet...
[2010/06/18 00:29:08] <zipkid> oh, while i have you here... how do i stop dashboard running? i always need to kill -9 on it....
[2010/06/18 00:29:24] <zipkid> ( Ruby is not my usual env... )
[2010/06/18 00:30:01] <ReinH> depending on how you start it, you may have to kill it
[2010/06/18 00:30:09] <ReinH> -9 is overkill though
[2010/06/18 00:30:26] <zipkid> i start it so : /usr/local/puppet-dashboard/script/server --daemon
[2010/06/18 00:30:37] <zipkid> but kill <pid> has no result....
[2010/06/18 00:30:50] <ReinH> yeah, you'd have to kill it
[2010/06/18 00:30:50] <ReinH> kill should work...
[2010/06/18 00:30:50] <zipkid> i know , i must use passenger....
[2010/06/18 00:31:14] <zipkid> but we have not gotten around to that ...
[2010/06/18 00:31:47] @ themroc joined channel #puppet
[2010/06/18 00:31:49] <zipkid> nope... kill has no effect.....
[2010/06/18 00:32:03] <ReinH> that's odd
[2010/06/18 00:32:04] <ReinH> wfm :/
[2010/06/18 00:33:40] <zipkid> '34 nodes have not reported in the last 30 minutes' Can i configure the '30 minutes' somewhere ? My nodes run puppetd --onetime every hour ....
[2010/06/18 00:34:55] <zipkid> pagination bug is fixed! Thx
[2010/06/18 00:35:55] <zipkid> ReinH: how do i give the ticket/bug a '+1'
[2010/06/18 00:36:39] @ Quit: blahdeblah: Ping timeout: 276 seconds
[2010/06/18 00:36:47] <zipkid> i added a comment...
[2010/06/18 00:38:24] <blkperl> how do i include a class with variables, puppet doesnt seem to like the parens?
[2010/06/18 00:38:52] @ Quit: gebi: Read error: Operation timed out
[2010/06/18 00:39:29] <blkperl> include postgres::database(present, owner) <-- puppet complains about the parens
[2010/06/18 00:40:09] @ Quit: bobinabottle: Quit: bobinabottle
[2010/06/18 00:40:23] <zipkid> blkperl: include = class = no params
[2010/06/18 00:41:16] <zipkid> if you have a define use postgres::database{"somename": ensure => 'present', whatever => 'owner' }
[2010/06/18 00:42:35] <zipkid> blkperl: see the doc @ http://docs.puppetlabs.com/ about the diff between classes and defines.
[2010/06/18 00:42:47] <blkperl> zipkid: thanks, yes there was a define :)
[2010/06/18 00:43:07] @ Quit: jab_doa: Quit: Verlassend
[2010/06/18 00:47:00] @ verwilst joined channel #puppet
[2010/06/18 00:47:42] @ lutter joined channel #puppet
[2010/06/18 00:54:43] @ Quit: mfournier: Ping timeout: 260 seconds
[2010/06/18 00:59:36] @ Quit: davea1: Quit: Leaving
[2010/06/18 01:03:53] @ freshtonic_ joined channel #puppet
[2010/06/18 01:05:53] @ Quit: \ask: Remote host closed the connection
[2010/06/18 01:06:12] @ Quit: freshtonic: Ping timeout: 265 seconds
[2010/06/18 01:06:12] @ freshtonic_ is now known as freshtonic
[2010/06/18 01:07:52] @ Quit: freshtonic: Client Quit
[2010/06/18 01:09:06] @ MattyM joined channel #puppet
[2010/06/18 01:09:14] @ freshtonic joined channel #puppet
[2010/06/18 01:10:54] @ Quit: MattyM: Remote host closed the connection
[2010/06/18 01:12:05] @ MattyM joined channel #puppet
[2010/06/18 01:14:26] @ johnf joined channel #puppet
[2010/06/18 01:14:57] @ blahdeblah joined channel #puppet
[2010/06/18 01:15:04] @ Quit: blahdeblah: Client Quit
[2010/06/18 01:17:27] @ mfournier joined channel #puppet
[2010/06/18 01:19:21] @ Quit: Kysh: Quit: beh
[2010/06/18 01:22:43] @ gebi joined channel #puppet
[2010/06/18 01:27:16] @ Quit: poison: Remote host closed the connection
[2010/06/18 01:27:20] @ siezer joined channel #puppet
[2010/06/18 01:32:55] @ Quit: pinoyskull-: Ping timeout: 260 seconds
[2010/06/18 01:33:19] @ lbt_ joined channel #puppet
[2010/06/18 01:35:10] <tim|mac> can someone give me some hints how i can use puppet certs to connect to a puppetmaster?
[2010/06/18 01:35:15] <tim|mac> I'm trying to debug some ssl issue
[2010/06/18 01:36:21] @ Quit: jhelwig: Ping timeout: 272 seconds
[2010/06/18 01:44:15] <Volcane> tim|mac: cat certs/fqdn.pem private_keys/fqdn.pem > /tmp/foo
[2010/06/18 01:46:59] <Volcane> hmm, i had this working once hold on
[2010/06/18 01:47:04] <tim|mac> heh ok
[2010/06/18 01:47:09] <tim|mac> i was waiting on the next line ;-)
[2010/06/18 01:47:48] @ Quit: alban2: Ping timeout: 260 seconds
[2010/06/18 01:47:59] <Volcane> right
[2010/06/18 01:48:00] <Volcane> curl -H "Accept: pson" --cert /tmp/foo --cacert certs/ca.pem https://puppet:8140/
[2010/06/18 01:48:15] <Volcane> obviously whatever full path you want
[2010/06/18 01:48:18] <tim|mac> thx!
[2010/06/18 01:49:20] <lanky> tim|mac: or there's always openssl s_client -connect puppetmaster:8140 -cert /tmp/foo
[2010/06/18 01:49:50] * lanky is just pulling that off the top of his head, but that's how I usually check SSL connectivity and inspect certs
[2010/06/18 01:50:39] <Volcane> yeah but you probably want to do HTTP requests though
[2010/06/18 01:50:42] @ jhelwig joined channel #puppet
[2010/06/18 01:50:56] @ pinoyskull- joined channel #puppet
[2010/06/18 01:53:06] <lanky> Volcane: there is that. I just find that for debugging SSL specifically openssl is remarkably helpful.
[2010/06/18 01:54:08] <tim|mac> $ curl -H "Accept: pson" --cert /tmp/foo --cacert /var/lib/puppet/ssl/certs/ca.pem https://puppet:8140/
[2010/06/18 01:54:08] <tim|mac> The environment must be purely alphanumeric, not ''
[2010/06/18 01:54:29] @ Quit: lutter: Quit: Leaving.
[2010/06/18 01:54:57] <Volcane> tim|mac: yes, you'd look in your apache access logs or whatever for the right urls :)
[2010/06/18 01:55:13] <tim|mac> oh ok :) ofc
[2010/06/18 01:55:17] <Volcane> i see requests like /production/file_metadata/modules/iptables/snippets/std-prefix
[2010/06/18 01:57:11] <tim|mac> hm... a 401
[2010/06/18 01:59:26] @ poison joined channel #puppet
[2010/06/18 02:01:13] @ itguru joined channel #puppet
[2010/06/18 02:02:28] @ Quit: kc7zzv: Quit: kc7zzv
[2010/06/18 02:06:59] @ lutter joined channel #puppet
[2010/06/18 02:16:13] <zipkid> ReinH: commit 1178f72cd470dee7114a17a4cbe7a32ec93397a1 : Remove description placeholder from groups and classes . You forgot to remove description from app/views/node_groups/show.html.haml
[2010/06/18 02:20:23] @ malikai joined channel #puppet
[2010/06/18 02:28:43] @ ceren joined channel #puppet
[2010/06/18 02:38:09] @ Olly_ joined channel #puppet
[2010/06/18 02:50:53] @ fluxdude joined channel #puppet
[2010/06/18 02:51:07] @ m1nish joined channel #puppet
[2010/06/18 02:51:15] @ Quit: m1nish: Remote host closed the connection
[2010/06/18 02:52:34] @ m1nish joined channel #puppet
[2010/06/18 02:52:51] @ Quit: m1nish: Read error: Connection reset by peer
[2010/06/18 02:54:06] @ m1nish joined channel #puppet
[2010/06/18 03:09:20] @ \ask joined channel #puppet
[2010/06/18 03:11:51] @ Quit: hyde_: Quit: Leaving
[2010/06/18 03:27:19] @ Quit: ceren: Quit: ceren
[2010/06/18 03:30:32] @ Quit: m1nish: Ping timeout: 258 seconds
[2010/06/18 03:38:34] @ rmiller4pi8 joined channel #puppet
[2010/06/18 03:43:04] @ m1nish joined channel #puppet
[2010/06/18 03:46:32] @ alcy joined channel #puppet
[2010/06/18 03:46:48] <alcy> ...folks, is it ok to ask a newbie question here ?
[2010/06/18 03:47:59] <alcy> ...its so trivial...but I am unable to use exec properly
[2010/06/18 03:48:20] <huggie> If you pastebin some config and what you see someone will probably look.
[2010/06/18 03:48:21] <rmiller4pi8> can you be more specific?
[2010/06/18 03:48:31] <alcy> will do...
[2010/06/18 03:57:14] @ Quit: alcy: Remote host closed the connection
[2010/06/18 03:59:23] @ cosimo joined channel #puppet
[2010/06/18 04:00:34] @ alcy joined channel #puppet
[2010/06/18 04:01:58] @ Quit: jhelwig: Ping timeout: 258 seconds
[2010/06/18 04:06:08] @ r3g1ster joined channel #puppet
[2010/06/18 04:06:19] <r3g1ster> hey guys
[2010/06/18 04:07:41] <Olly_> i'm trying to run apt-get update before package installs. but i am getting a "Could not find dependency Class" error. could anyone shed any light on this? http://gist.github.com/443516
[2010/06/18 04:08:10] <alcy> sorry for the delay, I had already deleted the directories/files so made them again...here's the pastebin url: http://pastebin.com/sbuT1KjF
[2010/06/18 04:08:39] <Volcane> Olly_: you need to 'include apt::update'
[2010/06/18 04:09:04] @ Quit: itguru: Remote host closed the connection
[2010/06/18 04:11:42] <Volcane> alcy: is that the actual file exactly like its on the server? you should really start puting ""s around strings. probably not the issue here but you should quote thing
[2010/06/18 04:12:28] <alcy> Hi, I am just testing puppet on my localhost, so this is only in a test environment
[2010/06/18 04:13:04] <alcy> ...both master and client on localhost, I mean
[2010/06/18 04:15:04] <alcy> thanks for the pointer though
[2010/06/18 04:15:26] <alcy> so, what could possibly be wrong...I am just trying to untar a file...
[2010/06/18 04:15:31] <Olly_> Volcane, thanks.
[2010/06/18 04:15:37] @ Quit: CraftyTech: Quit: Ex-Chat
[2010/06/18 04:16:30] @ Bass10 joined channel #puppet
[2010/06/18 04:16:39] <r3g1ster> when using a template for a file - must the template be on the client or master?
[2010/06/18 04:17:03] @ jhelwig joined channel #puppet
[2010/06/18 04:17:10] <Volcane> r3g1ster: on the master
[2010/06/18 04:17:15] <zipkid> alcy: as Volcane sais, but the not-quoting IS the error. It sees the ':' as a special char
[2010/06/18 04:17:20] <r3g1ster> thanks Volcane
[2010/06/18 04:17:57] <zipkid> alcy: so you need source=>'puppet:///ucspi-tcp/ucspi-tcp-0.88.tar'
[2010/06/18 04:19:52] @ joe-mac left channel #puppet ()
[2010/06/18 04:21:17] <alcy> zipkid: thanks, its working now, but now there's a new error (actually the original error, regarding tar itself)
[2010/06/18 04:21:31] <zipkid> alcy: pastie
[2010/06/18 04:22:26] <Volcane> if you're using puppet to xfer and untar tarballs you're killing kittens. just saying
[2010/06/18 04:22:36] <alcy> zipkid: thanks, here you go http://pastebin.com/Xy0jKtDg
[2010/06/18 04:23:00] <alcy> @Volcane: ucspi-tcp, qmail and some others just need to be done this way
[2010/06/18 04:23:14] <zipkid> alcy: fileserver.conf ... ?
[2010/06/18 04:23:17] <Volcane> you're going to install qmail this way? insane
[2010/06/18 04:23:39] <barn> s/ this way//
[2010/06/18 04:23:45] <Volcane> that too :)
[2010/06/18 04:23:50] <barn> (:
[2010/06/18 04:23:57] <zipkid> alcy: ever heard of package / packagemanagement?
[2010/06/18 04:24:09] @ Quit: malikai: Ping timeout: 240 seconds
[2010/06/18 04:24:37] <alcy> zipkid: path /etc/puppet/files .. fileserver.conf
[2010/06/18 04:24:38] <Volcane> 1) puppet isnt a fileserver for huge chunks of code, its a cnfig management system 2) building tar balls is not repeatable or deterministic 3) installing from tarball is not upgradable
[2010/06/18 04:26:32] <alcy> Volcane and others: thanks for all the pointers, I am *really* new at this, AND new at job/office...so, I;d really appreciate if you could tell about working with such packages, which just require source install
[2010/06/18 04:26:43] @ jcape joined channel #puppet
[2010/06/18 04:26:48] <Volcane> alcy: make a rpm or deb from it
[2010/06/18 04:26:58] <Volcane> or whatever your OS use
[2010/06/18 04:27:03] <Volcane> installing from tarballs doesnt work
[2010/06/18 04:27:42] <alcy> Volcane: that's what I was thinking, unless I started thinking about Bernstein's license policies et al.
[2010/06/18 04:27:55] <Volcane> alcy: I've seen many qmail packages
[2010/06/18 04:28:10] <Volcane> alcy: and i am fairly sure his poilcies let you package his software and install it yourself
[2010/06/18 04:28:11] <r3g1ster> is there a way to see the $templatedir ? cant seem to 'find' the template I'm trying to use
[2010/06/18 04:29:50] <alcy> Volcane: will make a deb instead...sure.
[2010/06/18 04:30:38] <alcy> Volcane: but still any idea about the current error ?
[2010/06/18 04:31:36] <zipkid> alcy: did you add allow and/or deny directives to fileserver.conf?
[2010/06/18 04:31:53] <Volcane> debian provides a 'qmail-src' package to make building it yourself easy
[2010/06/18 04:32:21] <alcy> zipkid: I haven;t changed the stock settings, and it worked with other things like sudo(the example on the wiki) ...
[2010/06/18 04:32:23] <zipkid> and another thing alcy: learn about modules in puppet and start using them!
[2010/06/18 04:32:35] <Volcane> alcy: the error is 'Permission denied - /etc/puppet/modules/ucspi-tcp/files/ucspi-tcp-0.88.tar' can the webserver user read that file?
[2010/06/18 04:32:41] <zipkid> alcy: did sudo have a source => ?
[2010/06/18 04:33:22] <alcy> zipkid: yup
[2010/06/18 04:33:32] <alcy> zipkid: I am working with modules only
[2010/06/18 04:33:34] <zipkid> then listen to Volcane :-)
[2010/06/18 04:33:43] <Volcane> well, the puppet user even
[2010/06/18 04:33:48] <Volcane> whatever is serving puppet
[2010/06/18 04:35:13] <Olly_> if I have a package (bundler) which requires another package (rubygems-update), and the rubygems-update package has a notify => Exec (to actually update rubygems). is the exec step guaranteed to be run between the two package installs?
[2010/06/18 04:35:42] @ Quit: floess_chris: Ping timeout: 258 seconds
[2010/06/18 04:36:59] <alcy> Volcane: puppetmasterd is running as puppet and puppetd as root, but changing the mode to 777 work
[2010/06/18 04:37:10] <Volcane> mode 777
[2010/06/18 04:37:13] * Volcane spots a php user
[2010/06/18 04:37:21] @ floess_chris joined channel #puppet
[2010/06/18 04:37:28] <alcy> Volcane: that was just to get rid of the error, !
[2010/06/18 04:40:25] <r3g1ster> wrong header line format :(
[2010/06/18 04:40:28] <zipkid> Volcane: alcy: :-D
[2010/06/18 04:40:32] @ Quit: pinoyskull-: Ping timeout: 248 seconds
[2010/06/18 04:40:51] <r3g1ster> does" "wrong header line format" mean i got a problem in my template ?
[2010/06/18 04:41:39] <alcy> Volcane: zipkid: also it is suggested on the wiki that exec should be used sparingly...but going through a lot of modules/manifests/*.pp on github, it does seem to be quite popular ?
[2010/06/18 04:49:32] <alcy> Volcane: zipkid: Thanks for the help, sorry for the noobish queris, ...anyway puppet has got us all excited here at the office, and hopefully we can deploy it to our advantage soon !
[2010/06/18 04:50:32] <alcy> >Volcane: zipkid: Thanks for the help, sorry for the noobish queris, ...anyway puppet has got us all excited here at the office, and hopefully we can deploy it to our advantage soon !
[2010/06/18 04:52:35] @ Quit: alcy: Quit: ChatZilla 0.9.86 [Iceweasel 3.5.9/20100501102323]
[2010/06/18 04:56:24] @ Quit: m1nish: Ping timeout: 258 seconds
[2010/06/18 04:58:00] <FiXion> hmm. I get puppet errors on random files: Failed to retrieve current state of resource: Could not retrieve file metadata
[2010/06/18 04:58:16] @ alcy joined channel #puppet
[2010/06/18 04:58:43] <FiXion> it doesn't look like a performance issue (then I figure it should be a timeout - since puppetmaster would answer slowly)
[2010/06/18 04:58:51] @ pinoyskull- joined channel #puppet
[2010/06/18 04:59:03] <FiXion> it's new - since upgrade to 0.25.5 (from 0.24.8)
[2010/06/18 04:59:27] <FiXion> new or atleast increased..
[2010/06/18 05:08:21] @ ahasenack joined channel #puppet
[2010/06/18 05:08:43] @ bitfield1 joined channel #puppet
[2010/06/18 05:08:57] @ Quit: bitfield: Ping timeout: 265 seconds
[2010/06/18 05:09:01] @ Quit: pinoyskull-: Quit: Leaving
[2010/06/18 05:09:11] @ m1nish joined channel #puppet
[2010/06/18 05:19:05] <Volcane> FiXion: you're still on webrick right?
[2010/06/18 05:20:43] @ jcape left channel #puppet ()
[2010/06/18 05:23:23] @ littleidea joined channel #puppet
[2010/06/18 05:23:53] <Tonnerre> mmm, using Puppet to set up Puppetmasters
[2010/06/18 05:26:35] <alcy> Volcane: I am unable to do a rake install, Pastebin: http://pastebin.com/PTKFR2xW , its trying to make db using username=root, not sure how to change this ?
[2010/06/18 05:26:41] @ reyjrar joined channel #puppet
[2010/06/18 05:26:50] <alcy> Volcane: for dashboard
[2010/06/18 05:27:07] * Volcane doesnt know dashboard
[2010/06/18 05:27:15] <Volcane> but its like any other rails
[2010/06/18 05:27:18] <Volcane> just google it
[2010/06/18 05:27:35] @ Quit: anvil14: Quit: anvil14
[2010/06/18 05:30:17] @ tim_ joined channel #puppet
[2010/06/18 05:35:04] <jsimpson> alcy: make sure that the contents of database.yml match your mysql install
[2010/06/18 05:37:28] <alcy> jsimpson: no clue about mysql's procedures, have usually been content with installing it as a dependency for other things.
[2010/06/18 05:37:58] <alcy> I am editing the database.yml to provide with the root passwod as well, lets see
[2010/06/18 05:42:12] @ jcape joined channel #puppet
[2010/06/18 05:42:42] <alcy> yup, password was missing
[2010/06/18 05:44:53] @ jcape left channel #puppet ()
[2010/06/18 05:45:28] @ Quit: m1nish: Ping timeout: 258 seconds
[2010/06/18 05:49:14] @ alcy left channel #puppet ()
[2010/06/18 05:52:46] @ Quit: littleidea: Quit: littleidea
[2010/06/18 05:56:00] @ Quit: RS-232: Remote host closed the connection
[2010/06/18 06:02:24] <fluxdude> when doing a file { "blah": ensure => directory, recurse => 3, purge => true, source => undf }
[2010/06/18 06:02:28] <fluxdude> when doing a file { "blah": ensure => directory, recurse => 3, purge => true, source => undef }
[2010/06/18 06:02:38] <fluxdude> why doesn't it clear unmanager files from the directory?
[2010/06/18 06:03:15] <Volcane> version?
[2010/06/18 06:03:25] <fluxdude> 0.24.8
[2010/06/18 06:03:38] <Tonnerre> Woah, vintage, man
[2010/06/18 06:03:55] <Volcane> fluxdude: http://projects.puppetlabs.com/projects/puppet/wiki/Frequently_Asked_Questions#I+Want+To+Manage+A+Directory+and+Purge+Its+Contents
[2010/06/18 06:04:11] <fluxdude> Volcane: thanks reading the link now
[2010/06/18 06:08:35] <tim_> hi, has anyone used pyyaml to create the YAML file for external_nodes
[2010/06/18 06:08:38] <tim_> ?
[2010/06/18 06:15:32] @ joe-mac joined channel #puppet
[2010/06/18 06:16:47] @ jcape joined channel #puppet
[2010/06/18 06:17:02] <FiXion> Volcane: yes - still on webrick
[2010/06/18 06:17:08] <Volcane> time to upgrade
[2010/06/18 06:17:13] @ Quit: Maliuta: Remote host closed the connection
[2010/06/18 06:17:25] <FiXion> hehe - just an odd error for a performance issue ?
[2010/06/18 06:17:34] <FiXion> I'd expect it to load the CPU or some other resource
[2010/06/18 06:17:42] <Volcane> you'd be wrong
[2010/06/18 06:17:48] <FiXion> or is it so crappy so it just trips over it's own toes :)
[2010/06/18 06:18:07] <Volcane> its not that it is consuming all resources, its that its so shit at using resources
[2010/06/18 06:19:16] <FiXion> I'll schedule a replacement of puppetmasterd with mod_rails then..
[2010/06/18 06:19:24] <FiXion> it should be enough to just do it on the one host still
[2010/06/18 06:22:22] @ Quit: rmiller4pi8: Quit: Leaving.
[2010/06/18 06:32:24] @ cliff-hm joined channel #puppet
[2010/06/18 06:36:34] @ alban2 joined channel #puppet
[2010/06/18 06:36:40] @ jcape left channel #puppet ()
[2010/06/18 06:39:13] @ Quit: shug: Quit: Leaving
[2010/06/18 06:41:30] @ shug joined channel #puppet
[2010/06/18 06:45:38] @ kc7zzv joined channel #puppet
[2010/06/18 06:47:09] @ kc7zzv_ joined channel #puppet
[2010/06/18 06:47:09] @ Quit: kc7zzv: Read error: Connection reset by peer
[2010/06/18 06:47:09] @ kc7zzv_ is now known as kc7zzv
[2010/06/18 06:48:08] @ Quit: tim_: Remote host closed the connection
[2010/06/18 06:48:32] @ Quit: lwhalen: Quit: Computer has gone to sleep
[2010/06/18 06:52:57] @ anvil14 joined channel #puppet
[2010/06/18 06:55:39] @ jdcasey joined channel #puppet
[2010/06/18 06:59:28] @ Quit: ckauhaus: Quit: Leaving.
[2010/06/18 07:01:40] @ ajbourg joined channel #puppet
[2010/06/18 07:07:02] @ Quit: TREllis: Quit: leaving
[2010/06/18 07:08:32] @ sebas891 joined channel #puppet
[2010/06/18 07:09:37] @ tuvwx left channel #puppet ()
[2010/06/18 07:09:46] @ Quit: shug: Quit: Leaving
[2010/06/18 07:10:17] @ Quit: johnf: Quit: Leaving.
[2010/06/18 07:11:28] @ itguru joined channel #puppet
[2010/06/18 07:17:20] @ Quit: sw: Quit: Leaving
[2010/06/18 07:17:52] @ tonyskapunk joined channel #puppet
[2010/06/18 07:22:33] @ snoop joined channel #puppet
[2010/06/18 07:24:01] @ Quit: siezer: Ping timeout: 264 seconds
[2010/06/18 07:24:21] @ riker2k joined channel #puppet
[2010/06/18 07:24:34] <riker2k> hi
[2010/06/18 07:24:40] @ ckauhaus joined channel #puppet
[2010/06/18 07:26:23] @ kaptk2 joined channel #puppet
[2010/06/18 07:26:52] <ashp> I don't suppose anyone in here uses "Komodo Edit" and also knocked up syntax highlighting for .pp files?
[2010/06/18 07:28:26] @ Quit: MattyM: Remote host closed the connection
[2010/06/18 07:28:49] @ jab_doa joined channel #puppet
[2010/06/18 07:28:59] @ Quit: itguru: Ping timeout: 260 seconds
[2010/06/18 07:30:34] @ Quit: wilmoore: Remote host closed the connection
[2010/06/18 07:31:08] @ Quit: riker2k: Ping timeout: 252 seconds
[2010/06/18 07:31:47] <joe-mac> ashp: i pay for komodo actually
[2010/06/18 07:32:03] <joe-mac> however i have not been able to get syntax highlighting for .pp and their support gfave me an explanation how and it was ridiculous
[2010/06/18 07:32:09] <joe-mac> i wish the vim compat mode allowed for vim syntax files
[2010/06/18 07:32:23] <joe-mac> komodo is an awesome editor
[2010/06/18 07:32:33] <ashp> I was wondering if the IDE thing had that ability! I only picked it up because of the vim mode
[2010/06/18 07:32:40] <ashp> however I just tried a nightly build, and wellllll
[2010/06/18 07:32:43] <ashp> it's stuck in full screen
[2010/06/18 07:33:05] <ashp> oh, i got it back out, how obnoxious
[2010/06/18 07:33:14] <ashp> you might be able to answer a question that's driving me _insane_
[2010/06/18 07:33:24] <ashp> it has a vertical line at 80 characters - is there a way to remove it
[2010/06/18 07:33:53] <joe-mac> hmmm, idk i always keep that line
[2010/06/18 07:33:57] <joe-mac> hold on
[2010/06/18 07:34:52] <ashp> i looked at all the menu entries but i can't find a thing to remove it :(
[2010/06/18 07:34:54] <joe-mac> edit->preferences->editing->smart editing, checkbox that says show edge line
[2010/06/18 07:35:18] @ mistich joined channel #puppet
[2010/06/18 07:35:39] @ notbrien joined channel #puppet
[2010/06/18 07:36:30] @ Quit: \ask: Read error: Connection reset by peer
[2010/06/18 07:36:33] <ckdake> hmm. puppet thinks pdns-recursor is not running, but it is. status says yes, all exit codes are the same as other things. strace has it calling ps -ef which has the info there. any ideas as to why this might be?
[2010/06/18 07:37:25] <ashp> joe-mac: you are a genius :)
[2010/06/18 07:37:31] <ashp> i might buy this editor, shame about the .pp thing
[2010/06/18 07:37:32] @ mistich left channel #puppet ("Leaving.")
[2010/06/18 07:38:39] <joe-mac> ashp: yea i got the student discount cause i am still enrolled for classes here and there
[2010/06/18 07:38:59] <ashp> Oh, hmm, I am technically a student and I work at a uni :)
[2010/06/18 07:39:02] <ashp> i didn't even think of that
[2010/06/18 07:39:04] <joe-mac> ckdake: you need to set status => "/etc/init.d/pdns-whatever status"
[2010/06/18 07:39:17] <joe-mac> are you certain it's following unix convention? if this is debian, don't count on it
[2010/06/18 07:39:25] <joe-mac> ashp: yea you can save like 100 bucks dude
[2010/06/18 07:39:31] <ckdake> its centos, and the /etc/init.d/pdns works fine but the /etc/init.d/pdns-recursor doesn't
[2010/06/18 07:39:32] <joe-mac> at that point IMO it's really worth it
[2010/06/18 07:39:35] <ckdake> ill give that status a try
[2010/06/18 07:39:38] <joe-mac> at the time i got it i was doing a shit ton of dev work
[2010/06/18 07:39:48] <joe-mac> the newer one that i recently updated to supports git now too...
[2010/06/18 07:40:00] <ashp> I always want to do more development, I just never get the time to do so
[2010/06/18 07:40:21] <joe-mac> ckdake: you can fool with status and pattern to let puppet handle broken init scripts, or on bsd systems non-existent init scripts, where services are a more abstract concept
[2010/06/18 07:40:26] @ Quit: sebas891: Ping timeout: 276 seconds
[2010/06/18 07:40:48] <tmz> ckdake: If service pdns-recursor status works, you can set hasstatus => true in the service resource.
[2010/06/18 07:40:51] <joe-mac> ashp: same here i have been thinking lately about trying to get more into ruby... possibly even move my career in that direction, b ut i love administration work so idk
[2010/06/18 07:41:10] <tmz> ckdake: Honestly, on centos, I'd set that by default and disable it for the few services it does not work with.
[2010/06/18 07:41:11] <ckdake> joe-mac: gotcha. My next step was tinkering with the init script and pushing out a custom one of them via puppet so that all would play nicer, but i couldn't find the problem in it. looks like this does the trick!
[2010/06/18 07:41:27] <joe-mac> ckdake: if you can avoid messing with the init scripts, i highly recommend it
[2010/06/18 07:41:32] <ckdake> haha yeah :)
[2010/06/18 07:41:34] <joe-mac> i deal with the worst init scripts in the world- debian ones
[2010/06/18 07:41:48] * ckdake has ~40 things managed by puppet and this is the first init script that hasnt played nice. guess i'm lucky!
[2010/06/18 07:42:13] @ Quit: allsystemsarego: Quit: Leaving
[2010/06/18 07:42:16] <ashp> joe-mac: I just feel like if I was a competent developer it would fill the big hole I have in my skillset and make my admin stuff that much better
[2010/06/18 07:42:29] <ashp> but every time I do any development it's in tiny doses and I forget it all by the time I come back
[2010/06/18 07:42:44] <joe-mac> the holes in my skillset are enterprise level infrastructure- like ldap, kerberos stuff like that
[2010/06/18 07:43:09] <joe-mac> and obviously i am not a hardcore dev or... i would be a dev as a job heh
[2010/06/18 07:45:08] <ashp> I am OK with ldap after the last couple of years, but we don't do anything too fancy like adding in additional servers and seperating the tree out across an enterprise, etc
[2010/06/18 07:45:28] <ashp> I just wish I was confident and capable in a single language and felt at ease modifying things for admin purposes
[2010/06/18 07:45:51] <ashp> like, we're trying to evaluate zenoss and I would like to be able to do something sophisicated with puppet/zenoss so it could determine what template to apply to the host in zenoss based on included classes
[2010/06/18 07:46:01] <ashp> but I'm not fluent at things like that, so it never works out well :)
[2010/06/18 07:46:13] <ashp> part of the trouble is I keep ending up in environments where I'm the sole person or the most experienced
[2010/06/18 07:46:19] <ashp> so I've never had anyone else to learn from :)
[2010/06/18 07:47:38] @ \ask joined channel #puppet
[2010/06/18 07:47:41] @ sebas891 joined channel #puppet
[2010/06/18 07:48:27] @ glarizza joined channel #puppet
[2010/06/18 07:49:52] <jbooth> Gotta hack code for the love of it. ;-)
[2010/06/18 07:50:29] <Volcane> +1
[2010/06/18 07:50:30] <glarizza> Hey Guys. If I declare a package 'bar' in class 'foo' and want to do a before => in class 'baz' that make sure a file is installed before the package bar in class foo, would that be called like " require => Package['foo:par'], " or another way?
[2010/06/18 07:50:58] <glarizza> sorry - I meant double colons
[2010/06/18 07:51:11] <Volcane> glarizza: require => Class["whatever"]
[2010/06/18 07:51:19] <Volcane> glarizza: make sure everything in the class is done first
[2010/06/18 07:51:23] <jbooth> That said, ruby is a really neat language. I don't know about it being the best or most stable
[2010/06/18 07:51:33] <ckdake> joe-mac: that did the trick. thanks
[2010/06/18 07:51:34] <glarizza> got it! Thanks!
[2010/06/18 07:51:47] <jbooth> But speaking as someone who's seen a more than a few languages... Ruby is nice.
[2010/06/18 07:51:52] <joe-mac> bo
[2010/06/18 07:51:55] <joe-mac> np even
[2010/06/18 07:52:21] @ Quit: \ask: Ping timeout: 258 seconds
[2010/06/18 07:52:40] <ckdake> heh. i have been getting far too much help in here the last week or two! /me needs to be quicker than Volcane at answering during business hours :)
[2010/06/18 07:52:53] @ \ask joined channel #puppet
[2010/06/18 07:56:51] @ MPSimmons joined channel #puppet
[2010/06/18 07:56:58] @ \ask_ joined channel #puppet
[2010/06/18 07:57:20] @ Quit: \ask: Ping timeout: 258 seconds
[2010/06/18 07:57:41] @ Quit: bronto: Quit: Leaving.
[2010/06/18 08:03:04] @ \ask joined channel #puppet
[2010/06/18 08:03:14] <r3g1ster> I'm sure I'm doing this incorrectly - but how would you require multiple files?
[2010/06/18 08:03:18] @ Quit: \ask_: Ping timeout: 240 seconds
[2010/06/18 08:03:28] <jbooth> r3g1ster: require => File["a", "b", "c"]
[2010/06/18 08:03:48] <r3g1ster> k - and if they are in an array? File[$arrayname] ?
[2010/06/18 08:04:16] <jbooth> I'm not sure the parser will understand that
[2010/06/18 08:04:25] <r3g1ster> ye - didnt think it would
[2010/06/18 08:04:39] <jbooth> It might, it is easy to test
[2010/06/18 08:04:46] <r3g1ster> cos i have the names in an array - and get copied to the client through a define
[2010/06/18 08:04:59] <r3g1ster> then i need a service restarted when all the files have been copied over
[2010/06/18 08:05:19] <Volcane> wouldnt it be easier to notify from the define?
[2010/06/18 08:05:29] <Volcane> or to require the define rather than the stuff in it?
[2010/06/18 08:05:38] <r3g1ster> ah. smart!
[2010/06/18 08:05:42] <r3g1ster> lemme try that quick
[2010/06/18 08:05:52] @ Quit: ckauhaus: Ping timeout: 272 seconds
[2010/06/18 08:06:00] <jbooth> actually the File[$arr] syntax works
[2010/06/18 08:06:13] <r3g1ster> will try both methods quick
[2010/06/18 08:06:22] <r3g1ster> Volcane: how would you require a define?
[2010/06/18 08:06:33] <jbooth> No need to try; I tested it with a 3-line puppet script.
[2010/06/18 08:06:38] <Volcane> require => Thedefine["name"]
[2010/06/18 08:06:39] @ rmiller4pi8 joined channel #puppet
[2010/06/18 08:07:22] @ Quit: rmiller4pi8: Client Quit
[2010/06/18 08:07:59] @ rmiller4pi8 joined channel #puppet
[2010/06/18 08:08:55] @ ckauhaus joined channel #puppet
[2010/06/18 08:08:55] <Volcane> odd, pretty sure require => File[$arr] didnt used to work
[2010/06/18 08:09:02] <jbooth> Well... it does now!
[2010/06/18 08:09:16] <jbooth> At least, it did things in the right order over multiple tries and didn't whine at me about syntax.
[2010/06/18 08:09:37] <r3g1ster> jbooth: the File[$array] doesnt work for me, as i have a path in front of it.
[2010/06/18 08:09:49] @ [GuS] joined channel #puppet
[2010/06/18 08:09:51] <r3g1ster> Volcane: require the define works perfectly :)
[2010/06/18 08:09:51] <jbooth> A ... path in front of it?
[2010/06/18 08:10:12] <r3g1ster> File["/test/$FileArray"]
[2010/06/18 08:10:19] <Volcane> jbooth: probably File["/tmp/$arr"] :)
[2010/06/18 08:10:26] <r3g1ster> ye
[2010/06/18 08:10:26] <jbooth> right. Yeah that won't work
[2010/06/18 08:10:29] <jbooth> I wouldn't expect that to
[2010/06/18 08:10:31] <ashp> joe-mac: where'd you get the educational discount?
[2010/06/18 08:10:45] <r3g1ster> thanks guys :)
[2010/06/18 08:10:49] <joe-mac> somewhere i saw 'student discount'
[2010/06/18 08:10:54] <joe-mac> then forwarded my student id
[2010/06/18 08:11:14] <jbooth> You could make it work with a template and some creativity, but...
[2010/06/18 08:11:22] <jbooth> that probabaly isn't worth it here
[2010/06/18 08:11:37] <Volcane> jbooth: http://www.pastie.org/1010195
[2010/06/18 08:11:39] <r3g1ster> trying to use templates too
[2010/06/18 08:12:02] <Volcane> pretty kewl, might have to test this on 0.24, sure this network worked
[2010/06/18 08:12:11] <r3g1ster> oo. how you get the graphs to be drawn out?
[2010/06/18 08:12:12] <Volcane> s/network/never
[2010/06/18 08:12:12] <ashp> i must be blind
[2010/06/18 08:12:24] <jbooth> It may be a 0.25 thing.
[2010/06/18 08:12:31] <Volcane> r3g1ster: run with --graph and it will leave you .dot files in /var/lib/puppet
[2010/06/18 08:12:32] <jbooth> I haven't in general needed to do it before
[2010/06/18 08:12:37] <r3g1ster> cool thanks
[2010/06/18 08:12:54] <Volcane> jbooth: yeah i heavily favor requiring on classes and defines rather than indiv resources
[2010/06/18 08:13:07] <jbooth> I'd thought about graphing it to know if the relationships existed for sure but I didn't care that much. "mostly works" is good enough for me. ;-)
[2010/06/18 08:13:25] <jbooth> External to the class I'd agree.
[2010/06/18 08:13:37] <jbooth> Within the class, I require on the other resources quite a bit to order things right
[2010/06/18 08:13:51] <Volcane> yes, only place it makes sense, assuming you cant break a class into several
[2010/06/18 08:14:30] <jbooth> Or assuming it isn't worth it. Isn't worth writing foo::install when foo is a single package (and unlikely to multiply)
[2010/06/18 08:15:22] * Volcane does
[2010/06/18 08:15:42] <jbooth> I don't need that level of fine grain control at the moment
[2010/06/18 08:15:49] <jbooth> If I do I can always break it out like that
[2010/06/18 08:16:18] @ Quit: Bass10: Ping timeout: 240 seconds
[2010/06/18 08:16:20] <jbooth> Volcane, had you considered a template as a method of doing the concat pattern?
[2010/06/18 08:16:40] <Volcane> it would be pretty hard to achieve the same I'd think
[2010/06/18 08:16:46] <jbooth> It'd dawned on me that'd be feasible with ruby inside the template.
[2010/06/18 08:17:19] @ poison_ joined channel #puppet
[2010/06/18 08:17:19] @ Quit: poison: Read error: Connection reset by peer
[2010/06/18 08:17:25] <r3g1ster> mm.. now having an issue with templates - cant get the title or name to work
[2010/06/18 08:17:35] <r3g1ster> http://www.pastie.org/1010201 <- is that correct?
[2010/06/18 08:17:42] <Volcane> jbooth: to replace the concat shell script you mean?
[2010/06/18 08:17:44] <r3g1ster> for the replacement of title
[2010/06/18 08:17:52] <jbooth> Drop the $
[2010/06/18 08:17:57] <r3g1ster> k
[2010/06/18 08:17:59] <jbooth> Volcane: Yeah
[2010/06/18 08:18:05] <Volcane> jbooth: templates run on the master
[2010/06/18 08:18:26] <jbooth> Volcane: Right, but all the content is also on the master.
[2010/06/18 08:18:31] <Volcane> nope
[2010/06/18 08:18:43] <jbooth> Well, unless you allow unmanaged content.
[2010/06/18 08:19:00] <r3g1ster> sweet! thanks jbooth - working now :)
[2010/06/18 08:19:02] <Volcane> plus using file source and template on the master for snippets make it automagically environments aware
[2010/06/18 08:19:09] <Volcane> which would be pita to replicate
[2010/06/18 08:19:25] <jbooth> I wouldn't be avoiding using templates for snippets..
[2010/06/18 08:19:44] <Volcane> i mean if you're assembling the final result in a template on the master
[2010/06/18 08:19:55] <Volcane> and you're told to include template("foo/bar")
[2010/06/18 08:20:05] <Volcane> you need to know in your template all about environments
[2010/06/18 08:20:24] <Volcane> actually, i dont know
[2010/06/18 08:20:29] <Volcane> show me an example of how you would :)
[2010/06/18 08:20:39] * jbooth thinks it can be done, but I'd have to code a bit to know.
[2010/06/18 08:20:57] <jbooth> Think of it this way -- it's like the zfs types interacting with each other
[2010/06/18 08:20:59] <Volcane> i do allow unmanaged content though
[2010/06/18 08:22:16] <jbooth> So have a defined concat type with no implementation. Then have... I guess a parser funciton not a template, which orders all said type instances, pulls their content, concats it, and file{ content=>concat("bysomename") }
[2010/06/18 08:22:29] <Volcane> jbooth: example http://www.pastie.org/1010209
[2010/06/18 08:23:23] <jbooth> Yeah, you'd lose the ability to do local content from the client.
[2010/06/18 08:24:05] <Volcane> still, would be interested to see if you can do it like that
[2010/06/18 08:24:08] <jbooth> On the flip side, you'd also not have blah.d/ hanging around and/or slews of create-delete-exec-copy cycles for what may be minor changes.
[2010/06/18 08:24:16] <Volcane> i dont know puppet internals well enough to go and hunt inside resources
[2010/06/18 08:24:23] <Volcane> and you'd have nasty ordering dependency hell
[2010/06/18 08:24:33] <jbooth> No problem.
[2010/06/18 08:24:37] <Volcane> same as if defined(Clas[...]) have today
[2010/06/18 08:24:39] <jbooth> I already had to learn that for iptables rules :-)
[2010/06/18 08:25:30] <Volcane> so are you saying you know how to code a if defined() equiv thats not order dependant?
[2010/06/18 08:26:44] <jbooth> I'm not sure where I'd need if defined(class) stuff
[2010/06/18 08:27:09] <Volcane> nods, well i guess i need to see what you have in mind
[2010/06/18 08:27:25] <Volcane> it would be really nice if it was possible
[2010/06/18 08:27:35] <jbooth> Really this should be a child-provider of file()
[2010/06/18 08:27:53] <Volcane> yeah
[2010/06/18 08:27:55] @ mpdehaan joined channel #puppet
[2010/06/18 08:28:00] <jbooth> Then you could even implement pull-local-files if you wanted to
[2010/06/18 08:28:08] <Volcane> yup
[2010/06/18 08:28:12] <jbooth> But the file type is *scary*
[2010/06/18 08:28:39] <jbooth> At the same time it'd solve some of the convolutions I'm doing now...
[2010/06/18 08:28:47] <jbooth> So might be justifiable to work on.
[2010/06/18 08:34:34] @ Quit: alban2: Ping timeout: 264 seconds
[2010/06/18 08:37:49] @ LeLutin_ joined channel #puppet
[2010/06/18 08:38:25] * jbooth tacks it on the post-lunch "to explore" lsit
[2010/06/18 08:41:04] @ Quit: LeLutin: Ping timeout: 248 seconds
[2010/06/18 08:44:13] <fluxdude> on my puppetmaster, I have the class puppetmaster assigned in my nodes.pp but when I run puppetd --test --tags puppetmaster --debug I see that the puppetmaster class is never assigned
[2010/06/18 08:44:37] <fluxdude> I cross referenced the name in the logs that the puppetmaster sees itself as (ie the compiled catalog for... line) a
[2010/06/18 08:44:39] @ Quit: themroc: Remote host closed the connection
[2010/06/18 08:44:45] <fluxdude> and that's the same node name I have in my nodes.pp
[2010/06/18 08:44:58] <fluxdude> so how come it never picks up the puppetmaster class?
[2010/06/18 08:45:09] <fluxdude> I've even put in 2 entries
[2010/06/18 08:45:21] <fluxdude> one for hostname and one for hostname -f
[2010/06/18 08:45:26] <fluxdude> and it still doesn't work
[2010/06/18 08:45:50] <jbooth> #3845 ?
[2010/06/18 08:45:51] <gepetto> jbooth: #3845 is http://projects.puppetlabs.com/issues/show/3845 "Puppet - Bug #3845: Resources do not inherit class-level tags - Puppet Labs"
[2010/06/18 08:46:01] <jbooth> There's some issues with tags not working right
[2010/06/18 08:46:11] <jbooth> I don't know if this use you're trying of it would hit that or not
[2010/06/18 08:48:16] @ thekad-afk is now known as thekad
[2010/06/18 08:48:47] <fluxdude> jbooth: I'm not using declared tags
[2010/06/18 08:48:56] <fluxdude> just the class name puppetmaster
[2010/06/18 08:49:12] <jbooth> Note I use the class name foo later and it fails to apply to any resources inside it.
[2010/06/18 08:49:15] <fluxdude> and the node def has node mypuppetmaster inherits default { include "puppetmaster" }
[2010/06/18 08:49:27] <fluxdude> where "puppetmaster" is the name of the class in my puppet module
[2010/06/18 08:49:34] @ alban2 joined channel #puppet
[2010/06/18 08:49:39] <jbooth> Let me back up; why are you even throwing --tags on the command line?
[2010/06/18 08:50:06] <fluxdude> to check the class
[2010/06/18 08:50:08] <fluxdude> why else?
[2010/06/18 08:50:35] <fluxdude> I noticed that a class that should be applied to my puppetmaster, ie the puppetmaster class wasn't being applied
[2010/06/18 08:50:52] <fluxdude> I ended up with a file not being replaced when I deleted it
[2010/06/18 08:50:58] <fluxdude> so I started doing puppetd --test
[2010/06/18 08:51:02] <fluxdude> to see why not
[2010/06/18 08:51:24] <jbooth> I'd have to see a pastie of the exact defines. I'm still not seeing how --tags helps that but okay :-)
[2010/06/18 08:51:29] * jbooth doesn't make heavy use of tags
[2010/06/18 08:51:41] <jbooth> (especially after running into said bug)
[2010/06/18 08:52:05] <fluxdude> jbooth: there are no defines, just a plain class
[2010/06/18 08:52:22] @ Quit: ckauhaus: Ping timeout: 276 seconds
[2010/06/18 08:54:24] * Volcane tends to use his tool that dumps out the localconfig.yaml to debug this kind of thing
[2010/06/18 08:54:27] @ Quit: beata-:
[2010/06/18 08:54:39] <Volcane> rather than change the behavior of the compile/run by instructing it to just look at some tags
[2010/06/18 08:54:51] <Volcane> thats like forcing every bug to become a heisenbug
[2010/06/18 08:55:30] @ Quit: verwilst: Quit: Ex-Chat
[2010/06/18 08:55:46] <fluxdude> Volcane: I also was doing just a puppetd --test
[2010/06/18 08:55:54] <fluxdude> plain to see everything and puppetd --test --debug
[2010/06/18 08:56:06] <fluxdude> but it's not applying the puppetmaster class and I can't figure out why
[2010/06/18 08:56:11] <Volcane> then look if those resources are in your catlog
[2010/06/18 08:56:49] <Volcane> http://www.devco.net/archives/2010/02/26/what_does_puppet_manage_on_a_node-2.php
[2010/06/18 08:56:51] <fluxdude> in classes.txt?
[2010/06/18 08:57:27] <fluxdude> client_yaml dir is empty
[2010/06/18 08:59:04] @ Quit: Ramonster: Quit: So long, thanx for all the fish
[2010/06/18 09:01:31] <jbooth> That was why I wanted to see the whole setup -- I'm guessing your node definition (which I did but shouldn't have shortened to defines -- note to self, define thing() bad keyword choice)
[2010/06/18 09:01:46] <Volcane> the script in that site support both 24 and 25, just run it
[2010/06/18 09:01:48] <jbooth> ... your node definition isn't getting applied at all, you're just picking up node default
[2010/06/18 09:05:38] @ Quit: mfournier: Ping timeout: 240 seconds
[2010/06/18 09:09:35] @ Quit: lohapuk: Quit: Leaving.
[2010/06/18 09:10:35] @ Quit: lbt_: Quit: Konversation terminated!
[2010/06/18 09:12:51] @ anvil14_ joined channel #puppet
[2010/06/18 09:12:51] @ Quit: anvil14: Read error: Connection reset by peer
[2010/06/18 09:12:51] @ anvil14_ is now known as anvil14
[2010/06/18 09:15:12] @ Quit: floess_chris: Ping timeout: 248 seconds
[2010/06/18 09:15:39] @ Quit: yannL: Remote host closed the connection
[2010/06/18 09:17:54] <fluxdude> how far do you go in controlling /etc with puppet?
[2010/06/18 09:18:01] @ Quit: giskard: Remote host closed the connection
[2010/06/18 09:18:03] <fluxdude> do you control /etc/bashrc to make sure it's the default one?
[2010/06/18 09:19:38] <fluxdude> do you try to control as possible to make sure people don't come along and change things that may break stuff
[2010/06/18 09:19:41] <Volcane> not generally, cos that kind of file tend to change between distro releases to cater for new features/settings in distros
[2010/06/18 09:20:09] <Volcane> and i make it easy for ppl to get their own user profile on all machines so they dont feel they need to do that
[2010/06/18 09:20:16] <fluxdude> one of my devs just changed /etc/bashrc, added export PATH=/stuff/he/wanted and then wondered why /usr/bin/env blah didn't work any more
[2010/06/18 09:20:24] <Volcane> heh
[2010/06/18 09:20:36] <fluxdude> yeah exactly
[2010/06/18 09:20:38] <Volcane> i do have one site where i manage it cos other admins are morons
[2010/06/18 09:20:45] <fluxdude> now I'm thinking, I was half minded to puppetize that file
[2010/06/18 09:20:53] <fluxdude> it would have fixed that problem
[2010/06/18 09:21:15] <Volcane> i just dont give ppl the ability to change that
[2010/06/18 09:21:15] <fluxdude> Volcane: are you sure they aren't devs? ;-)
[2010/06/18 09:21:43] <Volcane> devs dont get root, cos i go out my way to enable them in whatever way they want so they can do all the things they need but not mess with stuff like that
[2010/06/18 09:22:08] <Volcane> and i they understand the value of repeatability
[2010/06/18 09:22:34] <Volcane> really dont think its a technical problem, theres just too many files on a box to tyr and catch everyone that will break something
[2010/06/18 09:22:52] @ siezer joined channel #puppet
[2010/06/18 09:23:57] <Dominic> perhaps you're better off with tripwire type systems setting off alarms etc when files start changing when they're not supposed to
[2010/06/18 09:24:39] <Dominic> attach some stigma to being the one circumventing the change procedures and puppet
[2010/06/18 09:25:41] @ Quit: poison_: Remote host closed the connection
[2010/06/18 09:26:53] @ Quit: gebi: Ping timeout: 240 seconds
[2010/06/18 09:27:02] @ Quit: \ask: Remote host closed the connection
[2010/06/18 09:29:36] @ Quit: siezer: Ping timeout: 248 seconds
[2010/06/18 09:31:55] @ yannL joined channel #puppet
[2010/06/18 09:34:18] @ giskard joined channel #puppet
[2010/06/18 09:42:18] @ jsimpson left channel #puppet ()
[2010/06/18 09:43:39] <hajile> should i be able to use ruby methods on string variables in a manifest?
[2010/06/18 09:43:42] <hajile> for instance
[2010/06/18 09:43:52] <hajile> $name.slice(/\d+$/)
[2010/06/18 09:43:59] <Volcane> you should be able to use no ruby anything in a manifest
[2010/06/18 09:44:00] <hajile> to grab the 1 from username-1
[2010/06/18 09:44:04] <hajile> damn
[2010/06/18 09:44:12] <Volcane> except via something like inline_template
[2010/06/18 09:44:14] <mpdehaan> in the template you can do things like that
[2010/06/18 09:44:15] <hajile> ok
[2010/06/18 09:44:18] <hajile> oh ok
[2010/06/18 09:44:19] <mpdehaan> not in the manifest
[2010/06/18 09:44:21] <hajile> gotcha
[2010/06/18 09:44:28] <mpdehaan> there are server side functions though
[2010/06/18 09:44:30] <mpdehaan> and you can extend them
[2010/06/18 09:44:33] <mpdehaan> one sec
[2010/06/18 09:44:39] <hajile> so i could do <% name%>.slice(/\d+$/)
[2010/06/18 09:44:48] <hajile> it's ok, it's meant for a template anyways
[2010/06/18 09:44:56] <mpdehaan> http://docs.puppetlabs.com/references/stable/function.html
[2010/06/18 09:45:49] <hajile> ah nice
[2010/06/18 09:46:01] <hajile> that's awesome for use in manifests
[2010/06/18 09:46:22] <hajile> would what i wrote above work in a template?
[2010/06/18 09:46:35] <hajile> for the $name variable
[2010/06/18 09:46:36] <Volcane> hajile: name.slice...
[2010/06/18 09:46:42] <Volcane> dont need the <% .. %>
[2010/06/18 09:46:44] <hajile> oh
[2010/06/18 09:46:47] <Volcane> just use them as normal variables
[2010/06/18 09:47:02] <hajile> hmm
[2010/06/18 09:47:14] <hajile> but in the template file, how does it differentiate between a variable and any other word
[2010/06/18 09:47:20] <hajile> if i just use 'name'
[2010/06/18 09:47:38] <Volcane> if its a reserved ruby word, you cant use it as a variable, but you can do something like lookup_var("reserved_word")
[2010/06/18 09:47:45] <Volcane> if you have $reserved_word in the manifests
[2010/06/18 09:47:59] <hajile> so this should work:
[2010/06/18 09:48:17] <hajile> <jdbc.username>hostname</jdbc.username>
[2010/06/18 09:48:24] <hajile> and hostname should be interpreted properly?
[2010/06/18 09:48:29] <Volcane> yes
[2010/06/18 09:48:37] <hajile> but what about this line:
[2010/06/18 09:48:42] <hajile> <jdbc.service.name>@//oki:1521/okidb</jdbc.service.name>
[2010/06/18 09:48:44] <Volcane> well, no
[2010/06/18 09:48:46] <Volcane> sorry
[2010/06/18 09:48:48] <hajile> yeah
[2010/06/18 09:48:54] <hajile> i'm confused. :)
[2010/06/18 09:48:57] <Volcane> <jdbc.username><%= hostname %><....
[2010/06/18 09:49:03] <hajile> ok right
[2010/06/18 09:49:05] <hajile> this is what i have
[2010/06/18 09:49:09] <hajile> <jdbc.username><%= hostname%><%= name %></jdbc.username>
[2010/06/18 09:49:09] <Volcane> if you wanted to do some slicing
[2010/06/18 09:49:20] <hajile> oh gotcha
[2010/06/18 09:49:20] <Volcane> <jdbc.username><%= hostname.slice.... %>
[2010/06/18 09:49:20] <hajile> nice
[2010/06/18 09:49:40] <hajile> perfect, thank you!
[2010/06/18 09:49:43] <hajile> makes sense
[2010/06/18 09:50:41] @ \ask joined channel #puppet
[2010/06/18 09:55:58] @ Quit: \ask: Remote host closed the connection
[2010/06/18 09:57:57] @ littleidea joined channel #puppet
[2010/06/18 09:59:40] @ WALoeIII joined channel #puppet
[2010/06/18 10:00:17] <WALoeIII> Why would upgrading to REE 2010.02 from 2009.10 cause my puppet processes to do nothing?
[2010/06/18 10:00:35] <WALoeIII> They don't error, they just complete catalog runs in .01 seconds, down from ~ 25-30.
[2010/06/18 10:00:50] <Volcane> maybe its become realy awesome? :P
[2010/06/18 10:02:14] <WALoeIII> :\
[2010/06/18 10:02:24] <rmiller4pi8> yeah, pretty sure REE doesn't make yum blazing fast
[2010/06/18 10:02:24] <Volcane> nothing helpful from --debug --trace?
[2010/06/18 10:02:25] <WALoeIII> simply reverting my REE package fixes it
[2010/06/18 10:02:45] <WALoeIII> Volcane: I didn't try --trace I'll throw that in
[2010/06/18 10:02:54] <Volcane> and --verbose
[2010/06/18 10:02:59] <WALoeIII> will dump to /var/log/messages correct?
[2010/06/18 10:03:02] <WALoeIII> not httpmaster.log
[2010/06/18 10:03:25] <Volcane> --test --debug --verbose --trace
[2010/06/18 10:03:59] <WALoeIII> does --test work w/ Rack?
[2010/06/18 10:04:02] <WALoeIII> I don't think it will
[2010/06/18 10:04:10] <Volcane> ah,
[2010/06/18 10:04:15] <Volcane> you're sure the problem is master side?
[2010/06/18 10:04:15] <WALoeIII> I have en environment variable that flips the rest though
[2010/06/18 10:04:19] <WALoeIII> no
[2010/06/18 10:04:20] <WALoeIII> well
[2010/06/18 10:04:21] <WALoeIII> yes
[2010/06/18 10:04:32] <Volcane> cos catalog run time would be client side
[2010/06/18 10:04:32] <WALoeIII> because if I deploy REE to my 'master' environment (which is where my puppetmaster runs)
[2010/06/18 10:04:37] <Volcane> hm
[2010/06/18 10:04:38] <WALoeIII> my production env changes
[2010/06/18 10:04:43] <WALoeIII> I have 3 envs
[2010/06/18 10:04:49] <WALoeIII> master -> staging -> prod
[2010/06/18 10:04:51] <Volcane> so maybe the master is handing out empty catalogs
[2010/06/18 10:04:54] <WALoeIII> I think it is
[2010/06/18 10:04:56] @ Quit: littleidea: Ping timeout: 272 seconds
[2010/06/18 10:05:02] <Volcane> look at one, see whats in it
[2010/06/18 10:05:11] <WALoeIII> sec
[2010/06/18 10:05:50] <WALoeIII> Volcane: that sounds like what it must be because the compile time plummeted too
[2010/06/18 10:05:51] <WALoeIII> Jun 18 09:59:33 ops puppetmasterd[9187]: Compiled catalog for ip-10-250-186-97.ec2.internal in 5.86 seconds
[2010/06/18 10:05:54] <WALoeIII> thats pretty typical
[2010/06/18 10:05:58] <WALoeIII> now its taking .3
[2010/06/18 10:06:20] <Volcane> sux
[2010/06/18 10:06:29] <Volcane> not sure how to debug that
[2010/06/18 10:06:55] <Volcane> if you run the master in webrick mode in the foreground, shutting down apache or whatever, same result?
[2010/06/18 10:08:17] <WALoeIII> lol
[2010/06/18 10:08:17] <WALoeIII> Jun 18 10:07:58 ops puppetmasterd[9187]: Compiled catalog for ip-10-250-186-97.ec2.internal in 0.01 seconds
[2010/06/18 10:08:45] <WALoeIII> puppet master talks a lot to iclassify going to ensure that is ok as well
[2010/06/18 10:08:54] <Volcane> thats with webrick?
[2010/06/18 10:09:04] @ Quit: the|herbivore: Ping timeout: 276 seconds
[2010/06/18 10:09:08] <WALoeIII> passenger
[2010/06/18 10:09:21] @ Quit: mpdehaan: Remote host closed the connection
[2010/06/18 10:11:08] <WALoeIII> Volcane: This is with --trace --debug --verbose added to --rack https://gist.github.com/6352cf05ed2d491cdeba
[2010/06/18 10:11:15] <WALoeIII> empty catalog
[2010/06/18 10:11:32] <jamesturnbull> WALoeIII: and you use iclassify?
[2010/06/18 10:11:35] <WALoeIII> yea
[2010/06/18 10:11:49] <WALoeIII> working on migrating to the puppet dashboard
[2010/06/18 10:11:53] @ littleidea joined channel #puppet
[2010/06/18 10:11:55] <Volcane> WALoeIII: time to verify the node tool is giving you sane info then
[2010/06/18 10:11:59] <WALoeIII> but it doesn't have the 'search' functionality that iclassify provides
[2010/06/18 10:12:06] <WALoeIII> but how has iclassify changed?
[2010/06/18 10:12:11] <WALoeIII> simply changing the ruby version?
[2010/06/18 10:12:16] <Volcane> could be
[2010/06/18 10:12:18] <WALoeIII> and it should still be in memory!
[2010/06/18 10:12:19] <Volcane> who knows
[2010/06/18 10:12:25] <WALoeIII> I didn't restart its process
[2010/06/18 10:12:27] <Volcane> check every bit in the chain of flow
[2010/06/18 10:12:32] <jamesturnbull> WALoeIII: can you manually test it is outputting node data?
[2010/06/18 10:12:38] <WALoeIII> yea going to do that now
[2010/06/18 10:12:38] * jamesturnbull has no used iclassify
[2010/06/18 10:13:03] <Volcane> jamesturnbull: has similar query tools to foreman, like a AR search over nodes and their classified information
[2010/06/18 10:13:04] <WALoeIII> jamesturnbull: It gives out the YAML catalog like any other node tool (say the puppet dashboard)
[2010/06/18 10:13:08] <WALoeIII> but it also has a query interface
[2010/06/18 10:13:18] <WALoeIII> so I can say give me all the 'webservers'
[2010/06/18 10:13:26] <Volcane> jamesturnbull: like find all machines with apache and template a nagios config
[2010/06/18 10:13:32] <WALoeIII> yea
[2010/06/18 10:13:34] <jamesturnbull> yeah - talked to holoway about it a couple of times but never played with it
[2010/06/18 10:13:45] <WALoeIII> I've gotten a lot of that stuff factored out, but some of it I can't live without
[2010/06/18 10:13:52] <WALoeIII> like dynamically adding/removing memcache nodes
[2010/06/18 10:13:54] <WALoeIII> by tagging machiens
[2010/06/18 10:13:59] <Volcane> foreman has a similar interface
[2010/06/18 10:14:00] @ Quit: fluxdude: Quit: When two people dream the same dream, it ceases to be an illusion
[2010/06/18 10:14:06] <ashp> I wish they had some kind of "Java buzzwords for sysadmins" books
[2010/06/18 10:14:15] <WALoeIII> I should install foreman
[2010/06/18 10:14:19] <WALoeIII> wtb iClassify importer
[2010/06/18 10:14:19] <WALoeIII> heh
[2010/06/18 10:14:20] <ashp> because when our developers start bleating about maven and nexus and other stuff i have no idea what the hell they mean
[2010/06/18 10:14:21] @ Quit: jdcasey: Remote host closed the connection
[2010/06/18 10:14:28] <WALoeIII> since I'm probably the last person on the planet who uses it still
[2010/06/18 10:14:36] <Volcane> ashp: if they mention maven, just kill them.
[2010/06/18 10:14:53] * jamesturnbull what Volcane said
[2010/06/18 10:15:16] <Volcane> everything else is bearable
[2010/06/18 10:15:18] <ashp> Volcane: oh I would happily
[2010/06/18 10:15:23] <Volcane> but you cant excuse maven
[2010/06/18 10:15:32] <ashp> But they really do need a buzzword type thing that covers all the java .. infrastructure
[2010/06/18 10:15:35] <jamesturnbull> ashp: http://sbtourist.blogspot.com/2006/11/maven2-evil-or-not.html
[2010/06/18 10:15:48] <ashp> I think if I grasped java better I would be in a better position to argue against their terrible choices
[2010/06/18 10:15:51] <Volcane> ashp: i just read the 900 page J2EE book :(
[2010/06/18 10:16:03] <jamesturnbull> Volcane: I just THROW the 900 page J2EE book at them
[2010/06/18 10:16:04] <ashp> we use some sonatype nexus thing that crashes weekly and i don't really "get" what it does so I can't replace it
[2010/06/18 10:16:09] @ the|herbivore joined channel #puppet
[2010/06/18 10:16:19] <Volcane> jamesturnbull: hehe
[2010/06/18 10:16:50] <Volcane> ashp: think of it like a rpm repo done VERY WRONG
[2010/06/18 10:17:08] <WALoeIII> Volcane: the tool is returning my catalog
[2010/06/18 10:17:30] <Volcane> WALoeIII: puppet version?
[2010/06/18 10:17:33] <WALoeIII> 0.25.3
[2010/06/18 10:17:40] <WALoeIII> the only thing that has changed is ruby
[2010/06/18 10:17:47] <jamesturnbull> ashp: I would bet they actually don't need Nexus' functionality
[2010/06/18 10:17:54] <Volcane> what does: puppetmasterd --compile <some box> say?
[2010/06/18 10:18:16] <jamesturnbull> WALoeIII: don't use .3 - cron resources are broken
[2010/06/18 10:18:22] <ashp> Volcane: That's what I suspected. I can't even get them to package their java crap into a .war, yet alone .rpms, it's depressing.
[2010/06/18 10:18:40] <WALoeIII> jamesturnbull: ok
[2010/06/18 10:18:43] <Volcane> ashp: common problem, i made spec files for my devs so they dont have to.
[2010/06/18 10:18:55] <Volcane> ashp: and tools like mavon supports using those to make packages automagically
[2010/06/18 10:19:02] <Volcane> WALoeIII: try the --compile thing
[2010/06/18 10:19:05] <ashp> For whatever their next project is I want to force them to provide us with versioned rpms from the start
[2010/06/18 10:19:13] <ashp> I'm going to refuse to accept anything BUT a .war or an rpm
[2010/06/18 10:19:20] <WALoeIII> workign on it
[2010/06/18 10:19:26] <jamesturnbull> ashp: I used to use Hudson so they got build process and then I'd pass the build artifacts into my RPM builder
[2010/06/18 10:19:52] <ashp> jamesturnbull: see, this is why someone should write 'dummies guide to java stuff' :()
[2010/06/18 10:20:11] <ashp> talking of writing, how's work on that puppet book going?
[2010/06/18 10:20:27] <WALoeIII> Volcane: bash-3.2$ /usr/sbin/puppetmasterd --compile domU-12-31-39-06-0D-72.compute-1.internal
[2010/06/18 10:20:27] <WALoeIII> warning: Host is missing hostname and/or domain: domU-12-31-39-06-0D-72.compute-1.internal
[2010/06/18 10:20:27] <WALoeIII> notice: Compiled catalog for domU-12-31-39-06-0D-72.compute-1.internal in 0.12 seconds
[2010/06/18 10:20:40] <Volcane> hmm
[2010/06/18 10:20:51] <Volcane> this is a node that you've previously compiled ok?
[2010/06/18 10:20:57] <jamesturnbull> ashp: slowly - the last month and ah alf basically disappeared into visas and moving
[2010/06/18 10:21:04] <WALoeIII> Volcane: ye[
[2010/06/18 10:21:06] <WALoeIII> p*
[2010/06/18 10:21:39] <Volcane> donno then
[2010/06/18 10:22:16] <WALoeIII> this is running 0.25.3 installed via RPM
[2010/06/18 10:22:19] <WALoeIII> should I try the rubygem?
[2010/06/18 10:22:29] <Volcane> no1 should ever try a rubygem :P
[2010/06/18 10:22:36] <Volcane> i doubt it will make any diff
[2010/06/18 10:22:41] <WALoeIII> waaaaaaaaaait.
[2010/06/18 10:22:43] <Volcane> its not like its compiled code
[2010/06/18 10:22:44] <WALoeIII> it just did something
[2010/06/18 10:23:03] <WALoeIII> json_pure
[2010/06/18 10:23:05] <WALoeIII> dependency?
[2010/06/18 10:23:18] <Volcane> hmm, is .3 prior to the pson thing?
[2010/06/18 10:23:34] <Volcane> could be, upgrade to 25.5 they vendored and renamed their json library to avoid Weird Shit
[2010/06/18 10:24:01] <WALoeIII> holy shit
[2010/06/18 10:24:02] <WALoeIII> that was it
[2010/06/18 10:24:11] <Volcane> upgrade :P
[2010/06/18 10:24:13] <WALoeIII> how that was uninstalled I have no idea
[2010/06/18 10:24:17] <WALoeIII> fiiiiiiiiiiiine
[2010/06/18 10:24:21] <WALoeIII> this means making a specfile
[2010/06/18 10:24:26] <WALoeIII> bleh
[2010/06/18 10:24:27] @ Quit: r3g1ster: Quit: leaving
[2010/06/18 10:24:33] <WALoeIII> fuckdora 8 is killllling me
[2010/06/18 10:24:34] <Volcane> WALoeIII: why? there's one in the tarball
[2010/06/18 10:28:05] <WALoeIII> jamesturnbull: turns out my 0.25.3 is running a backported patch
[2010/06/18 10:28:07] <WALoeIII> I must've done this
[2010/06/18 10:28:12] <WALoeIII> to fix the cron issue
[2010/06/18 10:35:03] @ Quit: snoop: Quit: Quitte
[2010/06/18 10:35:43] @ \ask joined channel #puppet
[2010/06/18 10:39:12] <jamesturnbull> WALoeIII: yeah was wondering how you were managing
[2010/06/18 10:39:45] @ Quit: showy: Ping timeout: 240 seconds
[2010/06/18 10:44:46] @ Quit: littleidea: Ping timeout: 264 seconds
[2010/06/18 10:45:28] @ showy joined channel #puppet
[2010/06/18 10:45:34] @ littleidea joined channel #puppet
[2010/06/18 10:48:47] @ sHaggY_caT joined channel #puppet
[2010/06/18 10:51:43] <sHaggY_caT> Hi all! How i may use in legacy puppet (0.24.[89]) custom facts in functions? In new documentation not good faq about this: http://docs.reductivelabs.com/guides/plugins_in_modules.html this documentation has information about new versions (25.5) and very old (prior 0.24.4),
[2010/06/18 10:52:11] <sHaggY_caT> not about our 0.24.8 > 0.24.9 (we in migration now)
[2010/06/18 10:53:08] @ adrian_broher joined channel #puppet
[2010/06/18 10:53:21] <sHaggY_caT> also i try http://projects.puppetlabs.com/projects/puppet/wiki/Adding_Facts
[2010/06/18 10:53:53] <sHaggY_caT> my version of puppet don't know key of t
[2010/06/18 10:54:21] <sHaggY_caT> and, my puppet don't retrive facts. I'm put facts in dir:
[2010/06/18 10:54:53] <sHaggY_caT> /<module>/plugins/facter
[2010/06/18 10:55:19] <sHaggY_caT> also, i have module mod_mysql, and put fact:
[2010/06/18 10:57:08] <sHaggY_caT> /path_to_modules_of_this_enviroment/mod_mysql/plugins/facter/mysql.rb
[2010/06/18 10:57:43] @ Maliuta joined channel #puppet
[2010/06/18 10:57:43] @ Quit: littleidea: Ping timeout: 245 seconds
[2010/06/18 10:57:58] <sHaggY_caT> http://paste.org.ru/?0rs4fb but client does'nt see this fact
[2010/06/18 10:58:21] <sHaggY_caT> i add in config of this enviroment option of pluginsync
[2010/06/18 10:58:46] @ Quit: sbeards: Ping timeout: 252 seconds
[2010/06/18 10:59:47] <sHaggY_caT> http://paste.org.ru/?eff9r9
[2010/06/18 10:59:57] <sHaggY_caT> is any try help?
[2010/06/18 11:00:24] <sHaggY_caT> also, i try add this fact in dir: /usr/lib/ruby/site_ruby/1.8/facter
[2010/06/18 11:00:30] <sHaggY_caT> (manually)
[2010/06/18 11:00:42] @ PhabX joined channel #puppet
[2010/06/18 11:05:27] @ Quit: \ask: Remote host closed the connection
[2010/06/18 11:05:56] @ \ask joined channel #puppet
[2010/06/18 11:06:53] <WALoeIII> :| Could not retrieve catalog from remote server: Could not intern from yaml:
[2010/06/18 11:09:18] <sHaggY_caT> WALoeIII: http://projects.puppetlabs.com/issues/3799 ?
[2010/06/18 11:09:37] @ littleidea joined channel #puppet
[2010/06/18 11:09:53] <WALoeIII> sHaggY_caT: yup thanks, cron job ends in a :
[2010/06/18 11:10:42] <sHaggY_caT> WALoeIII: :)
[2010/06/18 11:10:55] <sHaggY_caT> do you use custom facts in puppet?
[2010/06/18 11:11:23] <WALoeIII> nope
[2010/06/18 11:11:42] <WALoeIII> my puppet usage is not too exciting
[2010/06/18 11:12:29] <sHaggY_caT> WALoeIII: in the some mounth ago i add custom function, it wotk very well, but i afraid documented procedure, and, don't may add fact now, becouse documentation is broken :(
[2010/06/18 11:12:32] <sHaggY_caT> http://groups.google.com/group/puppet-users/browse_thread/thread/9e1351a1033a6e4
[2010/06/18 11:13:27] <sHaggY_caT> May be, anybody know, how i may add custom fact in legacy puppet? I don't remember, how i add it, with old wiki manual
[2010/06/18 11:13:31] <sHaggY_caT> ?
[2010/06/18 11:13:34] @ Quit: snikkers: Ping timeout: 264 seconds
[2010/06/18 11:13:40] @ snikkers joined channel #puppet
[2010/06/18 11:13:51] <sHaggY_caT> sorry, not know, how _i_add_ :)
[2010/06/18 11:14:07] <sHaggY_caT> know how add custom facts, of cource :)
[2010/06/18 11:15:59] @ Quit: littleidea: Quit: littleidea
[2010/06/18 11:17:06] @ toi joined channel #puppet
[2010/06/18 11:18:39] @ lwhalen joined channel #puppet
[2010/06/18 11:18:39] <jbooth> sHaggY_caT: Do you have factpath set in puppet.conf?
[2010/06/18 11:19:41] <lwhalen> hrm, I'm having some issues with a Puppet fact I'm writing. I've got a case-statement that isn't triggering where I think it should be triggered, could someone take a look with me? http://www.pastebin.org/339407
[2010/06/18 11:19:58] <lwhalen> err, not even a case statement yet, just a series of if/elsif/else's
[2010/06/18 11:20:04] <fuser> office is a nice 21.5c at the moment :)
[2010/06/18 11:20:19] <fuser> wrong window ;)
[2010/06/18 11:20:34] <lwhalen> line 37 doesn't seem to want to pick up, and I've added a 'puts' just before the if starts just to double check
[2010/06/18 11:20:46] <glarizza> Has anyone seen Passenger fail this way? http://pastie.org/1010446
[2010/06/18 11:20:59] @ Quit: axisys: Quit: leaving
[2010/06/18 11:20:59] <lwhalen> the puts, on the host that's failing, is showing: "Default master is 0 in USA, pg_running is 0"
[2010/06/18 11:21:02] <bleything> lwhalen: what is line 28 supposed to do?
[2010/06/18 11:21:03] <glarizza> Passenger 2.2.11 running on OS X Server 10.5.8 with Puppet .25.4
[2010/06/18 11:21:09] <sHaggY_caT> fuser: i'm afraid migration (broken my manifests)
[2010/06/18 11:21:20] <bleything> lwhalen: also, pg_running will always be true.
[2010/06/18 11:21:20] @ axisys joined channel #puppet
[2010/06/18 11:21:35] <bleything> lwhalen: which is likely the problem you're having
[2010/06/18 11:21:59] <sHaggY_caT> jbooth: no, but i want use different paths to custom facts and functions (in some modules)
[2010/06/18 11:22:04] <lwhalen> grr, that's my 'testing the classes' paste. Hang on
[2010/06/18 11:22:41] <jbooth> lwhalen: Your begin/rescue/end clause isn't doing what I think you want it to either -- it isn't loading those facts for sure so they're probably coming through null
[2010/06/18 11:22:53] <sHaggY_caT> jbooth: may i use in module subdir to facts and functions, or this don't work?
[2010/06/18 11:23:20] <lwhalen> no, it's picking them up OK. I've checked with some conveniently-placed 'puts' before
[2010/06/18 11:23:25] <lwhalen> here's the latest code:
[2010/06/18 11:23:26] @ ceren joined channel #puppet
[2010/06/18 11:23:26] <lwhalen> http://www.pastebin.org/339423
[2010/06/18 11:23:39] <jbooth> sHaggY_caT: No clue, I've never tried. factpath should be a client thing, not a server thing. Also you might need factsync=true or something like it in 0.24. I'm not sure on that I don't have 0.24s left to check.
[2010/06/18 11:23:56] <bleything> lwhalen: the 1/0 thing isn't going to do what you want.
[2010/06/18 11:23:59] <sHaggY_caT> in some mounths later, i add custom function in: /usr/lib/ruby/site_ruby/1.8/puppet it's work well
[2010/06/18 11:24:06] <lwhalen> bleything: which line/
[2010/06/18 11:24:07] <lwhalen> ?
[2010/06/18 11:24:28] <bleything> lwhalen: every line that checks pg_running. both 0 and 1 are true in ruby. everything but false and nil, really.
[2010/06/18 11:24:36] <lwhalen> srsly?
[2010/06/18 11:24:40] <bleything> yes.
[2010/06/18 11:24:42] <lwhalen> that's a pail of fail right there :-p
[2010/06/18 11:24:46] <bleything> pg_running will *never* be false as you've written it.
[2010/06/18 11:24:58] <sHaggY_caT> jbooth: i need globally add (in all of clients) fastsync option _not_ in server, only on client?
[2010/06/18 11:25:56] <sHaggY_caT> of cource, it's not problem (becouse i use pupppet to manage puppet clients, and this is development enviroment (may be broken and destroyed) )
[2010/06/18 11:25:56] <jbooth> sHaggY_caT: I don't know, it has been too long since I was working with 0.24. Try --genconfig against puppetd and puppetmaster and see if it exists and where.
[2010/06/18 11:27:02] <sHaggY_caT> jbooth: i want migrate on new version, after add windows support. It well be in this year?
[2010/06/18 11:27:07] <lwhalen> booyah, that fixed it
[2010/06/18 11:27:11] <lwhalen> thanks bleything :-p
[2010/06/18 11:27:17] <bleything> np :)
[2010/06/18 11:27:25] <lwhalen> ok, now to rewrite this as a case-statement...
[2010/06/18 11:27:26] <sHaggY_caT> jbooth: thank's for help
[2010/06/18 11:27:46] <jbooth> lwhalen: Still not assured to be fixed. See http://docs.puppetlabs.com/guides/custom_facts.html and the "Using other facts"
[2010/06/18 11:28:18] <jbooth> lwhalen: Without calling loadfacts() you're going to end up with your two variables nil when they shouldn't be at some point
[2010/06/18 11:28:45] <lwhalen> I've got my RUBYLIB defined
[2010/06/18 11:28:48] <jbooth> sHaggY_caT: No clue, I'm not part of puppetlabs and haven't been following their plans that closely.
[2010/06/18 11:29:23] <lwhalen> oh, any word on when Puppet is expected to play nicer with Windows?
[2010/06/18 11:30:36] <sHaggY_caT> Is anybody know, how more time puppet version is mantained (in compabilitys version tree)?
[2010/06/18 11:31:21] <jbooth> lwhalen: Let me rephrase: facter.value() will return nil if that fact isn't loaded, so the begin/rescue/end is meaningless. You probably shouldn't assume they're loaded in a particular order.
[2010/06/18 11:31:23] <sHaggY_caT> (security fixes, and another. 24.9 is work for me, and i afraid migration to 25.5)
[2010/06/18 11:31:50] <lwhalen> what's a better way to do it?
[2010/06/18 11:32:37] <jbooth> Exactly as specified on the custom fact page in the part about Facter.loadfacts()?
[2010/06/18 11:33:06] @ Determinist joined channel #puppet
[2010/06/18 11:33:46] @ Quit: \ask: Remote host closed the connection
[2010/06/18 11:33:56] <lwhalen> so, always run Facter.loadfacts()?
[2010/06/18 11:34:04] <lwhalen> won't that put me into a loop?
[2010/06/18 11:34:24] <lwhalen> ph wait, I see what you mean
[2010/06/18 11:34:46] <jbooth> lwhalen: It might loop but it doesn't end up being an infinite loop.
[2010/06/18 11:35:10] @ Quit: Schmidt: Ping timeout: 264 seconds
[2010/06/18 11:35:10] <jbooth> I suspect it self-excludes the current fact from being loaded
[2010/06/18 11:36:13] <lwhalen> I wish there was a way to pass a flag to facts, such as a 'debug mode'
[2010/06/18 11:36:41] <lwhalen> wait... I could totally just write a fact that does "detect debug mode", couldn't I?
[2010/06/18 11:36:53] <jbooth> might already be one
[2010/06/18 11:37:00] <lwhalen> where would I look to find it?
[2010/06/18 11:37:03] <jbooth> alternately just write your 'fact' in an interactive irb
[2010/06/18 11:37:31] <jbooth> there's some env variable you can set to pass in env variables as fact, you could pull it from that.
[2010/06/18 11:38:33] <jbooth> FACTER_DEBUG=true facter | grep -i debug
[2010/06/18 11:38:33] <jbooth> debug => true
[2010/06/18 11:38:48] <jbooth> To be specific, facter_* env variables come through as facts
[2010/06/18 11:43:46] @ Quit: labrown: Quit: Leaving
[2010/06/18 11:44:51] @ poison joined channel #puppet
[2010/06/18 11:47:57] @ a3li is now known as a4li
[2010/06/18 11:48:39] @ labrown joined channel #puppet
[2010/06/18 11:49:30] @ a4li is now known as a3li
[2010/06/18 11:49:40] @ jdcasey joined channel #puppet
[2010/06/18 11:50:58] <sHaggY_caT> jbooth: i you here? You'are true:
[2010/06/18 11:51:20] <sHaggY_caT> for work fact sync, need set path in client config,
[2010/06/18 11:51:56] <sHaggY_caT> but, how i may set (which value) module, not path in file system?
[2010/06/18 11:52:53] <Volcane> it just takes plugins/* from all modules
[2010/06/18 11:53:28] @ Quit: poison: Remote host closed the connection
[2010/06/18 11:53:33] <sHaggY_caT> Volcane: don't work, i think i make error:
[2010/06/18 11:54:16] <sHaggY_caT> http://paste.org.ru/?o93awd
[2010/06/18 11:54:34] @ hephaestus is now known as heyfistus
[2010/06/18 11:55:00] @ Quit: PhabX:
[2010/06/18 11:55:09] <sHaggY_caT> Volcane: http://paste.org.ru/?si2ivj (with top of puppet client config)
[2010/06/18 11:55:15] @ heyfistus is now known as hephaestus
[2010/06/18 11:55:29] <Volcane> master config pls
[2010/06/18 11:56:40] <tonyskapunk> is possible to override attributes form virtual resources?
[2010/06/18 11:56:47] <sHaggY_caT> Volcane: http://paste.org.ru/?v6l6xx this test server locate in development enviroment
[2010/06/18 11:57:21] <Volcane> sHaggY_caT: [main] pluginsync=true
[2010/06/18 11:57:24] <sHaggY_caT> factpath = $vardir/lib/facter - this line of documentation. Of cource, this dir is'nt have facts
[2010/06/18 11:57:42] <sHaggY_caT> Volcane: in master? Sec,
[2010/06/18 11:57:43] @ Quit: Chiku|dc: Quit: Quitte
[2010/06/18 11:57:50] <Volcane> yes
[2010/06/18 11:57:55] <sHaggY_caT> is i need remove factpath ?
[2010/06/18 11:58:02] <Volcane> no
[2010/06/18 11:58:27] <sHaggY_caT> but i want take it's to clients with modules only
[2010/06/18 11:58:29] @ Quit: LeLutin_: Ping timeout: 240 seconds
[2010/06/18 11:59:39] @ Chiku joined channel #puppet
[2010/06/18 12:00:00] <Volcane> need to enable it for the whole puppetmaster, and all clients with pluginsync=yes will get plugins
[2010/06/18 12:00:07] <Volcane> doesnt support plugins per environment etc
[2010/06/18 12:00:16] @ Quit: ceren: Quit: ceren
[2010/06/18 12:00:24] <Volcane> you need a modulepath in the [puppetmasterd] section *not* in a specific envrionment
[2010/06/18 12:00:33] <Volcane> and thats where it will get them from
[2010/06/18 12:00:33] <sHaggY_caT> Volcane: http://paste.org.ru/?sduusg this dir on master does'nt have any files
[2010/06/18 12:01:00] <Volcane> sigh.
[2010/06/18 12:01:17] <sHaggY_caT> Volcane: i may use plugins only globally? without enviroments?
[2010/06/18 12:01:33] <Volcane> you dont just do what i ask, i really cant help you
[2010/06/18 12:01:41] @ zorzar joined channel #puppet
[2010/06/18 12:02:00] <sHaggY_caT> Volcane: sorry, just a sec please
[2010/06/18 12:03:58] @ bearnard joined channel #puppet
[2010/06/18 12:03:59] <sHaggY_caT> Volcane: if i understand (please say, is it true?) I need set globally modulepath in [puppetmasterd] section, in master file puppet.conf, and it's work independed of enviroments. Is it true?
[2010/06/18 12:04:22] <Volcane> yes
[2010/06/18 12:04:46] @ Quit: zorzar_: Ping timeout: 252 seconds
[2010/06/18 12:04:51] <sHaggY_caT> also, i may use only localpath (in puppetmaster server), it's work too
[2010/06/18 12:04:52] <sHaggY_caT> ?
[2010/06/18 12:05:14] <sHaggY_caT> Is this true for facts _and_ custom functions?
[2010/06/18 12:05:47] <sHaggY_caT> i think, whithouit enviroments, i may use only one dir with facts
[2010/06/18 12:05:57] <sHaggY_caT> and functions
[2010/06/18 12:06:21] <sHaggY_caT> Volcane: thank you for help
[2010/06/18 12:07:58] <Volcane> http://pastie.org/1010520
[2010/06/18 12:08:00] <Volcane> working config
[2010/06/18 12:08:36] <Volcane> with environments
[2010/06/18 12:08:51] <sHaggY_caT> Volcane: thank you very much ;)
[2010/06/18 12:09:32] <sHaggY_caT> is in this dir /etc/puppet/manifests/common/modules/mynet/plugins/ may be locate custom functions of puppet?
[2010/06/18 12:10:09] <Volcane> yes
[2010/06/18 12:10:49] <Volcane> probably plugins/puppet/parser/functions/foo.rb
[2010/06/18 12:10:55] <Volcane> not tried it
[2010/06/18 12:11:45] <sHaggY_caT> in some mounths ago, i put one function in /usr/lib/ruby/site_ruby/1.8/puppet/ :) and it's work, but i think is very bad :)
[2010/06/18 12:11:52] <sHaggY_caT> Volcane: thank you ;)
[2010/06/18 12:16:35] @ Quit: alban2: Quit: Leaving.
[2010/06/18 12:16:54] @ \ask joined channel #puppet
[2010/06/18 12:17:54] @ ken_barber joined channel #puppet
[2010/06/18 12:19:00] @ plathrop-away is now known as plathrop
[2010/06/18 12:27:00] @ Quit: yannL: Remote host closed the connection
[2010/06/18 12:30:36] @ evilrob left channel #puppet ()
[2010/06/18 12:34:13] @ Quit: showy: Ping timeout: 265 seconds
[2010/06/18 12:36:11] @ Quit: Maliuta: Remote host closed the connection
[2010/06/18 12:47:33] @ sking joined channel #puppet
[2010/06/18 12:48:09] <sking> hey guys… anyone have time to talk about some puppet issues I am running into?
[2010/06/18 12:48:39] <jbooth> Usually best to just ask and see if anyone answers
[2010/06/18 12:48:58] <sking> hah fair enough :)
[2010/06/18 12:49:28] <glarizza> Volcane: Are you using Passenger on any of your puppetmasters?
[2010/06/18 12:50:40] <sking> well, the biggest issue I am running into is that puppet includes all modules globally… regardless if it is being applied to all hosts… and I am defining a package and a service in one module (mod-ssf) and again in (mod-mt), and hosts that apply mod-ssf but not mod-mt are getting duplicate definition errors...
[2010/06/18 12:52:47] <sking> anyone have any advice on how to overcome that?
[2010/06/18 12:55:13] <Volcane> glarizza: nope
[2010/06/18 12:55:38] <glarizza> Volcane: Gotcha - I'm having a problem with either rack or passenger, and haven't narrowed it down yet
[2010/06/18 12:55:48] <glarizza> rack 1.1.0 and passenger 2.2.9 are the golden combination for me
[2010/06/18 12:56:13] <glarizza> Upgrading causes a typeerror with passenger....but I need to do more testing
[2010/06/18 12:57:41] <Volcane> yeah i avoid passenger just for that reason
[2010/06/18 12:58:31] <Volcane> sking: you need to only define resources once - in a class, you can include a class many times
[2010/06/18 12:58:44] <Volcane> sking: need package apache in 3 other modules, make an apache module and include it where needed
[2010/06/18 12:58:45] <jbooth> sking: I made a "packages" module and when I start hitting multi-defines, I just move them there and include that instead
[2010/06/18 12:58:45] @ thekad is now known as thekad-afk
[2010/06/18 12:59:24] @ Quit: [GuS]: Remote host closed the connection
[2010/06/18 12:59:48] <sking> which resources will hit a duplication issue? I know services and packages do… but what about files and other common ones?
[2010/06/18 12:59:49] <glarizza> Volcane: I liked your tweet about it earlier :) What are you using for the web serving end?
[2010/06/18 12:59:57] <Volcane> glarizza: apache+mongrel
[2010/06/18 13:00:02] <Volcane> sking: all
[2010/06/18 13:00:12] <jbooth> sking: Anything with a type/name match. Including your own defined types.
[2010/06/18 13:00:14] <glarizza> Volcane: And you've been able to handle the memory leaks?
[2010/06/18 13:00:38] <Volcane> glarizza: i make sure my nodes are running at a carefully managed concurrency etc, and never have problems
[2010/06/18 13:00:46] <Volcane> glarizza: masters stay up for months a time
[2010/06/18 13:01:13] <sking> so what would be the best way to define a /etc/httpd/conf/httpd.conf in multiple places with different content? name override's?
[2010/06/18 13:01:31] <Volcane> sking: you can define it many times, you just cant include both on the same node
[2010/06/18 13:01:40] @ allsystemsarego joined channel #puppet
[2010/06/18 13:01:51] <Volcane> sking: the central idea is that for 1 machine each resource can be in exactly 1 state
[2010/06/18 13:02:05] <Volcane> sking: you can declare 50 states, but not on one managed node
[2010/06/18 13:02:31] @ Quit: glarizza: Quit: glarizza
[2010/06/18 13:02:57] <sking> right, but puppet isn't showing consistent behaviour with my testing regarding that… the mod-mt class isn't being included on the nodes that use mod-ssf
[2010/06/18 13:03:12] <Volcane> sking: then you've got a mistake somewhere
[2010/06/18 13:03:42] <sking> hmm
[2010/06/18 13:04:36] <jamesturnbull> Volcane: of course the only issue there is when you have a client and a server for example running on the same machine and want to include both classes
[2010/06/18 13:04:47] <jamesturnbull> Volcane: and they manage the same file ... say puppet.conf :)
[2010/06/18 13:05:01] <Volcane> jamesturnbull: puppet.conf.$fqdn </lazy>
[2010/06/18 13:05:22] <jamesturnbull> Volcane: yeah me too
[2010/06/18 13:05:35] <jamesturnbull> Volcane: if $fqdn == $puppet_server
[2010/06/18 13:05:44] <Volcane> no never that :P
[2010/06/18 13:05:50] <jamesturnbull> lol
[2010/06/18 13:05:53] <Volcane> thats taking lazy to stupid :P
[2010/06/18 13:07:00] <jamesturnbull> I often use a selector there when I am being lazy and stupid then :)
[2010/06/18 13:07:14] <Volcane> i dont think i have a single selector in my manifests
[2010/06/18 13:07:20] <Volcane> or case statement
[2010/06/18 13:07:43] @ sebas891 left channel #puppet ()
[2010/06/18 13:07:59] <odyi> That would take some rather intensive non-laziness.
[2010/06/18 13:08:02] <jamesturnbull> you heavily use extlookup obviously though?
[2010/06/18 13:08:02] <Volcane> they almost always end in find . -type f | xargs grep varname > list-of-files-to-hack
[2010/06/18 13:08:13] <Volcane> when needs change
[2010/06/18 13:08:14] <jbooth> Really? Even with heavy extlookup I'd still be doing $ensure ? { 'present'=>directory, default=>$ensure }
[2010/06/18 13:08:48] <Volcane> in defines i probably use resource defaults
[2010/06/18 13:09:08] * jamesturnbull Puppet Labs eats its own dog food and we frequently argue over best practice... :)
[2010/06/18 13:09:14] <axisys> i am seeing this on the puppet client.. what is this mean ?
[2010/06/18 13:09:15] <Volcane> actually yeah thats where i do have case statements
[2010/06/18 13:09:16] <axisys> http://pastebin.com/DWRXiupi
[2010/06/18 13:09:20] <Volcane> where the available options wont change
[2010/06/18 13:09:22] <Volcane> like an ensure
[2010/06/18 13:09:22] <jbooth> yeah but apache { site: ensure => directory } looks awkward. Besides, I need both present for files and directory for dirs.
[2010/06/18 13:10:43] <jbooth> axisys: Smells like the master crashing or zombifying. ps/top reveal anything interesting on the master?
[2010/06/18 13:11:08] <jamesturnbull> axisys: version?
[2010/06/18 13:11:12] <Volcane> in defines, I'd have cases, but based on the features and acceptable inputs to those defines
[2010/06/18 13:11:15] <Volcane> not based on things like fqdn
[2010/06/18 13:12:28] @ floess_chris joined channel #puppet
[2010/06/18 13:12:40] <joe-mac> i make heavy use of defaults, even in definitions
[2010/06/18 13:12:52] <Volcane> like http://pastie.org/1010628
[2010/06/18 13:13:09] <Volcane> u wouldnt want to do that with extlookup ors omething
[2010/06/18 13:13:14] <Volcane> but i wouldnt have
[2010/06/18 13:13:15] @ Quit: bearnard: Quit: bearnard
[2010/06/18 13:13:26] <Volcane> case $operatingsystem { ... pick packages, or docroot prefixes }
[2010/06/18 13:13:29] <axisys> jamesturnbull: client: 0.24.7 and master: 0.25.4
[2010/06/18 13:13:57] <axisys> jbooth: i am using passenger
[2010/06/18 13:14:13] <axisys> and ps -ef | grep puppetmaster on my ubuntu server shows running
[2010/06/18 13:14:17] <sking> is there a local cache of the catalog kept on the client node?
[2010/06/18 13:14:31] <jamesturnbull> Volcane: ah yes I have some of those
[2010/06/18 13:14:48] <jbooth> I don't see doing that for docroot to be horrible in the case where you fail cleanly -- which is to say default {fail("no support")} -- if you know your suite of OSes is going to be relatively fixed.
[2010/06/18 13:14:48] <danderson> is there any way to make a puppet file definition weak, so that if another definition for the same path exists, it takes over?
[2010/06/18 13:14:50] <jamesturnbull> Volcane: from your pastie
[2010/06/18 13:14:57] @ Quit: floess_chris: Read error: Operation timed out
[2010/06/18 13:15:19] <jbooth> No sense pushing complexity to extlookup when I know I'm only supporting ubuntu 10.04/rhel 5 and sometime later rhel6 (with 5 going away)
[2010/06/18 13:15:38] <danderson> specifically, in a base firewall config, I need to ensure that /etc/firewall/local is a file that exists, but without imposing specific content; then, machine-specific configs might force that file to have specific contents
[2010/06/18 13:15:40] @ Quit: reyjrar: Quit: Leaving.
[2010/06/18 13:15:42] <danderson> does that make sense
[2010/06/18 13:15:43] <danderson> ?
[2010/06/18 13:16:02] <sking> danderson: i think you are having the same issue I am, but with files instead of packages and services :p
[2010/06/18 13:16:07] <jbooth> danderson: Yes but you can't directly do that in puppet.
[2010/06/18 13:16:15] <Volcane> jbooth: yeah i do have shitloads of assumption about package names and such - cos i just dont deal with multi os systems, thats fine i think - but it also means i never share my modules cos they jsut wont work for most
[2010/06/18 13:16:24] <jbooth> You can do it through overrides, Volcane's concat pattern, or other ways.
[2010/06/18 13:16:40] <jamesturnbull> jbooth: well you can specify multiple sources
[2010/06/18 13:17:11] <jbooth> Yes, but not in multiple locations, which is what I'm getting out of machine-specific configs.
[2010/06/18 13:17:17] <jamesturnbull> ah missed follow up requirement
[2010/06/18 13:17:19] <danderson> jbooth: any URL I can consult for more information about these tricks?
[2010/06/18 13:17:45] <jbooth> danderson: overrides and child-classes are in the standard language tutorial on puppetlabs
[2010/06/18 13:18:08] <danderson> aaah, overrides in that sense
[2010/06/18 13:18:10] <danderson> got it now, thanks.
[2010/06/18 13:18:51] <jbooth> I think Volcane's concat is canonically: http://www.devco.net/archives/2010/05/07/puppet_concat_20100507.php but it keeps living multiple places and I get lost. :-)
[2010/06/18 13:19:12] <Volcane> http://github.com/ripienaar/puppet-concat :)
[2010/06/18 13:19:42] <Volcane> ah i did update that post with relevant details
[2010/06/18 13:19:51] <Volcane> there's a downloadable and link to github code
[2010/06/18 13:20:02] <Volcane> with downloadable :)
[2010/06/18 13:20:14] <Volcane> typical though, everyone winges how they want it on github
[2010/06/18 13:20:28] <Volcane> before github tons of contributions, patch files of all sorts of origin
[2010/06/18 13:20:34] <Volcane> move it to github, no more patches
[2010/06/18 13:20:38] <jbooth> other ways basically amounts to doing things differently so you don't need to "pre-declare" the existence of the file.
[2010/06/18 13:20:48] <danderson> Volcane: that's the social aspect of github!
[2010/06/18 13:20:49] <danderson> wait...
[2010/06/18 13:20:55] <Volcane> heh
[2010/06/18 13:21:09] <Volcane> i cant imagine what features at this point they could contribute though
[2010/06/18 13:21:18] <danderson> jbooth: I am tempted to just exec { "touch /etc/firewall/local" } with a subscription to the appropriate package
[2010/06/18 13:21:21] <Volcane> there's only so much you can do with a concat!
[2010/06/18 13:21:24] <danderson> it's terribly hacky, but it'd work...
[2010/06/18 13:21:36] <danderson> and it has the advantage of being stupid simple
[2010/06/18 13:21:41] <jbooth> Volcane: I could write up the type/provider and send it to you. ;-)
[2010/06/18 13:22:19] <Volcane> jbooth: send it to ticket@puppetlabs.com instead :P make sure to include tests and documentation! :)
[2010/06/18 13:22:23] @ bearnard joined channel #puppet
[2010/06/18 13:22:36] <jbooth> Yeah learning the rails test environment is unfortunately on my to-do list.
[2010/06/18 13:22:37] <Volcane> cos that would roq :)
[2010/06/18 13:23:09] <jbooth> s/rails/ruby/ but close enough since I'm also looking at dashboard and going, "I really should just fix that it can't be hard..."
[2010/06/18 13:23:18] <Volcane> yeah someone should make a downloadable image of a OS pre-setup for puppet development that i can just boot on a dom0 /cc @jamesturnbull :)
[2010/06/18 13:23:28] @ bender183 joined channel #puppet
[2010/06/18 13:23:30] <jamesturnbull> Volcane: on my list
[2010/06/18 13:23:58] <Volcane> :)
[2010/06/18 13:24:19] <jbooth> Unfortunately since someone else in my group just declared "2 weeks" and another is expected, free time for anything but "wheels on the bus" is rapidly dwindling...
[2010/06/18 13:24:32] <jamesturnbull> jbooth: even if you don't have tests send the code as a ticket and to the -dev list and we'll help you write the tests
[2010/06/18 13:24:43] <Volcane> jamesturnbull: wtf? thats new :P
[2010/06/18 13:24:54] <jamesturnbull> Volcane: that's what I am doing for extlookup. :)
[2010/06/18 13:25:03] <Volcane> jamesturnbull: sux to be you
[2010/06/18 13:25:09] <jamesturnbull> Volcane: th more people we teach to write them the less I have to write
[2010/06/18 13:25:23] <jbooth> An interesting point of view.
[2010/06/18 13:25:24] <axisys> should I need to upgrade the puppet client to get rid of that keep dying issue ?
[2010/06/18 13:25:38] <Volcane> jamesturnbull: yeah, i just look at the hell of getting all the test bollocks working on a redhat machine and i lose interest again
[2010/06/18 13:25:49] <jamesturnbull> jbooth: enlightened self interest?
[2010/06/18 13:26:02] <jbooth> axisys: If your server is 0.25 I'd personally upgrade the clients, but...
[2010/06/18 13:26:23] <jamesturnbull> Volcane: actually I'll advance that on my list - would an AMI do?
[2010/06/18 13:26:31] <jbooth> axisys: .. You do have puppet.conf:[puppetmaster] ssl_client_header/verify_header set correctly for passenger right?
[2010/06/18 13:26:39] <Volcane> jamesturnbull: hmmm
[2010/06/18 13:26:55] <Volcane> jamesturnbull: probably yes?
[2010/06/18 13:26:59] <jamesturnbull> Volcane: also have you seen?
[2010/06/18 13:27:00] <jamesturnbull> http://github.com/jamtur01/hudson-ec2-build
[2010/06/18 13:27:11] <jamesturnbull> that builds or EC2 nodes for CI testing
[2010/06/18 13:27:28] <jamesturnbull> if you run those manifests you'd get a build that has pretty much everything needed for testing
[2010/06/18 13:27:37] <Volcane> jamesturnbull: nice
[2010/06/18 13:27:51] <axisys> jbooth: the issue is with few clients.. not all.. i have about 300 clients
[2010/06/18 13:28:01] <Volcane> jamesturnbull: if only we could capture this kind of shit in some nicely runnable config management system, damn!
[2010/06/18 13:28:16] <jamesturnbull> Volcane: it's crude but johnf and i needed something fast
[2010/06/18 13:28:31] <Volcane> jamesturnbull: puppet developerbootstrap/manifests/init.pp :P
[2010/06/18 13:28:36] <bender183> hello im coming from the cfengine world and just getting into puppet
[2010/06/18 13:28:48] <axisys> jbooth: http://pastebin.com/KVWTUpvn
[2010/06/18 13:28:49] <Volcane> jamesturnbull: pulls all the gems and what not into ~/.gem/ ?
[2010/06/18 13:28:51] <bender183> seems rather alpha to me - why doesnt elsif work?
[2010/06/18 13:28:56] <axisys> jbooth: looks right
[2010/06/18 13:29:38] <jbooth> axisys: Yeah. I dunno then. If it is just a few clients... firewall/nat/proxy trouble?
[2010/06/18 13:29:46] <jamesturnbull> Volcane: runs as root so global gems
[2010/06/18 13:30:04] <Volcane> jamesturnbull: well i mean as an alternative to a ami - to get ppl deving locally on their own machines
[2010/06/18 13:30:08] <axisys> jbooth: the fw team saying they are seeing FIN ACK from those clients a lot
[2010/06/18 13:30:16] <Volcane> jamesturnbull: or are you saying to test properly you need root?
[2010/06/18 13:30:20] <jamesturnbull> Volcane: yeah I'll do that
[2010/06/18 13:30:34] <jamesturnbull> Volcane: well we run both - mostly because most people run puppet as root
[2010/06/18 13:30:40] <Volcane> nods
[2010/06/18 13:31:04] <sking> axisys: FIN ACK is only sent when the host is finishing the close of a connection
[2010/06/18 13:31:07] <Volcane> jamesturnbull: maybe some kind of bundler type thing to pull all the stuff in for development mode could be helpful too
[2010/06/18 13:31:18] @ Schmidt joined channel #puppet
[2010/06/18 13:31:25] <jbooth> bender183: Because it doesn't have elsif in the language? (just guessing; can't see why you'd use it over a case or separate ifs)
[2010/06/18 13:31:43] <Volcane> bender183: cos none of the thousands of people using it either thinks its needed or files a request to add the feature
[2010/06/18 13:31:45] <axisys> sking: exactly.. so why those "Other end went away; restarting connection and retrying"
[2010/06/18 13:31:47] <jamesturnbull> Volcane: bundler
[2010/06/18 13:31:49] * jamesturnbull winces
[2010/06/18 13:32:03] <Volcane> jamesturnbull: :)
[2010/06/18 13:32:20] <axisys> sking: http://pastebin.com/DWRXiupi
[2010/06/18 13:32:44] <jamesturnbull> Volcane: I'll quickly convert that script into a module and load it on the forge
[2010/06/18 13:33:09] <Volcane> jamesturnbull: exec{"ec2builder.sh": } notify{"done!": }
[2010/06/18 13:33:11] <axisys> looks like a bug in my version: http://projects.puppetlabs.com/issues/944
[2010/06/18 13:33:48] <joe-mac> jamesturnbull: looks like i may get around to trying to patch the obsd provider tonioght
[2010/06/18 13:34:05] <sking> axisys: could be...
[2010/06/18 13:34:08] <sking> might want to upgrade?
[2010/06/18 13:35:15] <plathrop> jamesturnbull: is the forge ever getting openid?
[2010/06/18 13:35:26] <jamesturnbull> plathrop: Igal is working on it now
[2010/06/18 13:35:36] <Volcane> plathrop: openid meh, twitter auth :P
[2010/06/18 13:35:41] <plathrop> Cool, I can't wait to check it out.
[2010/06/18 13:35:50] <bender183> jbooth, why i would use elsif?
[2010/06/18 13:35:54] <jamesturnbull> plathrop: I don't know much about Rails auth but apparently almost none of the available openID providers actualyl work properly
[2010/06/18 13:35:59] <bender183> i need to explain to you why i would use elsif ?
[2010/06/18 13:36:00] <jamesturnbull> plathrop: so he has to fix one of those first
[2010/06/18 13:36:23] <axisys> sking: i need find a way to upgrade those solaris clients using pkgutil and puppet if i can
[2010/06/18 13:36:35] <jamesturnbull> joe-mac: cool - that'd be great
[2010/06/18 13:36:39] <plathrop> bender183: no, he just can't see why you would want elsif when there are other constructs in the language that do it.
[2010/06/18 13:37:01] <axisys> pkgutil is not supported by puppet by default last time i check.. it only supports pkg-get which is deprecated due to lot of issue in sol env
[2010/06/18 13:37:01] <jamesturnbull> bender183: its not a construct that's currently in the language but other constructs should meet your needs
[2010/06/18 13:37:02] <jbooth> Other constructs with less typing! (and that are more useful elsewhere)
[2010/06/18 13:37:13] <bender183> because its easier to do an if/else?
[2010/06/18 13:37:31] <jamesturnbull> bender183: but is that a cfengine assumption? Puppet's DSL is quite different
[2010/06/18 13:37:33] <plathrop> It's like people who come to python and complain about lack of switch/case
[2010/06/18 13:37:56] <bender183> why would i use a case statement for something so simple
[2010/06/18 13:38:40] <Volcane> if { } else { if { } }
[2010/06/18 13:38:41] <bender183> also there is no pass through with the case statement with puppet language either - so if this do that, etc
[2010/06/18 13:38:42] <plathrop> if "this" { ... } else { if "that" { ... } }
[2010/06/18 13:38:44] <plathrop> done
[2010/06/18 13:38:53] <jbooth> If it is more than if(){}else{} the case is simpler, IMNSHO.
[2010/06/18 13:38:58] <plathrop> bender183: you are thinking imperative
[2010/06/18 13:39:00] <Volcane> jbooth: agree
[2010/06/18 13:39:12] <plathrop> bender183: puppet tries hard to not be imperative
[2010/06/18 13:39:12] <jbooth> Also, it keeps the puppet DSL closer to ruby who's case is a whole lot smarter than most other languages.
[2010/06/18 13:39:13] <bender183> i have no idea what that means
[2010/06/18 13:39:28] <bender183> im thinking imperative?
[2010/06/18 13:39:45] <plathrop> bender183: http://en.wikipedia.org/wiki/Imperative_programming
[2010/06/18 13:39:48] @ mfournier joined channel #puppet
[2010/06/18 13:39:50] <jamesturnbull> bender183: http://www.kriha.de/krihaorg/docs/lectures/generativecomputing/genintro/foil20.html
[2010/06/18 13:39:57] <bender183> because i want a construct if/else construct to work as it has since like 1979?
[2010/06/18 13:40:02] <Volcane> bender183: puppet as a progamming approach is different from other language or from what you are used to in cfengine, it needs a different type of thinking
[2010/06/18 13:40:03] <bender183> interesting philosphy
[2010/06/18 13:40:46] <plathrop> Right, done pandering to the people who come in here already decided that Puppet sucks and unwilling to admit they might have to change the way they think to get the most out of it.
[2010/06/18 13:40:56] * plathrop excuses himself from the conversation.
[2010/06/18 13:41:07] <bender183> ad hominem
[2010/06/18 13:41:09] <jamesturnbull> bender183: can i suggest rather than finding an issue with one portion of the DSL perhaps you take a look at it in a holistic approach
[2010/06/18 13:41:29] @ Quit: mattock: Quit: Leaving.
[2010/06/18 13:43:02] <bender183> i just dont understand the absense of a function i need to use
[2010/06/18 13:43:47] <bender183> which has been around for quite some time, my thinking is just fine - we use puppet here, i just want to know why its missing a core construct.
[2010/06/18 13:43:55] <jbooth> That you *think* you need to use.
[2010/06/18 13:44:06] <bender183> your answer appears to be "you dont know what you need to use"
[2010/06/18 13:44:18] <sking> i am seeing an inconsistency with how puppet runs its catalog… one run, i don't the duplicate declaration error, and one or two runs later, it throws the error… why woudl that happen?
[2010/06/18 13:44:21] <Volcane> bender183: open a ticket requesting a feature, its much more productive.
[2010/06/18 13:44:32] <bender183> apparently
[2010/06/18 13:44:33] <Volcane> bender183: oddly, thousands of people using it, didnt feel they need it yet
[2010/06/18 13:44:39] <Volcane> bender183: we must all suck
[2010/06/18 13:44:53] <sking> wasn't there already a ticket open to impelment elsif like a few versions ago?
[2010/06/18 13:45:09] <Volcane> then vote it up :)
[2010/06/18 13:45:15] <bender183> wow, we are going down this road? ok i have to excuse myself from this conversation now, because if you dont feel puppet needs improvement - then you are a zealot
[2010/06/18 13:45:18] <sking> and i believe it was voted to include it
[2010/06/18 13:45:20] <jbooth> #2713, yes.
[2010/06/18 13:45:20] <gepetto> jbooth: #2713: #2713 is http://projects.puppetlabs.com/issues/show/2713 "Puppet - Feature #2713: elsif support - Puppet Labs"
[2010/06/18 13:45:57] <sking> it doesn't throw a syntax error, in 0.25.5 but it still doesn't expressly work
[2010/06/18 13:46:02] <bender183> apparently someone else feels the same way i do.
[2010/06/18 13:46:14] <bender183> i was beginning to feel cold - alone.
[2010/06/18 13:47:15] <jbooth> So write test cases for it and submit them to the ticket.
[2010/06/18 13:48:19] <jamesturnbull> bender183: it's not a matter of puppet not needing improvement but priorities - if the community wanted the feature they'd push it harder - I don't think anyone here would argue that Puppet doesn't have issues and things that need to be fixed
[2010/06/18 13:48:32] * jamesturnbull ritual declaration - I work for Puppet Labs
[2010/06/18 13:48:45] <bender183> understood
[2010/06/18 13:49:08] <bender183> btw - as an sa i feel that is not my job to write test cases for a feature which should be implemented - time to go back to work now.
[2010/06/18 13:49:24] <jamesturnbull> bender183: if you think your life would be easier with elsif - feel free to update the ticket with a +1 and even better explain your use case and we can talk thoruhg that
[2010/06/18 13:49:28] <Volcane> bender183: is free software
[2010/06/18 13:49:36] <Volcane> bender183: you can buy a support contract and someone will do it for you
[2010/06/18 13:49:43] <mstyne> +1
[2010/06/18 13:49:44] <Volcane> bender183: or someone in the community needs to do it
[2010/06/18 13:49:50] <Volcane> bender183: thats just the nature of it
[2010/06/18 13:50:28] <sking> i am seeing an inconsistency with how puppet runs its catalog… one run, i don't the duplicate declaration error, and one or two runs later, it throws the error… why woudl that happen?
[2010/06/18 13:50:45] <Volcane> sking: show the error messages and relevant files on pastie.org
[2010/06/18 13:51:29] <sking> and when the error returns i also get the error "Could not retrieve catalog; skipping run" and the puppetmasterd needs restarted to fix it and make it work without errors again
[2010/06/18 13:51:47] <sking> Volcane: give me a moment to get that for you
[2010/06/18 13:52:16] <joe-mac> i gotta say, that's a shitty attitude
[2010/06/18 13:52:37] <Volcane> joe-mac: who? :) we're all grumpy shits here :P
[2010/06/18 13:52:54] <bender183> ha - its free software, which is missing a vital piece of a construct so your answer is buy a support contract?
[2010/06/18 13:52:56] @ poison joined channel #puppet
[2010/06/18 13:53:09] <Volcane> bender183: nope that was not my answer
[2010/06/18 13:53:11] @ Quit: labrown: Quit: Leaving
[2010/06/18 13:53:12] <joe-mac> bender183: 'vital' by whose standards, yours?
[2010/06/18 13:53:18] <bender183> keep up that way of thinking see where it leads you
[2010/06/18 13:53:21] <Volcane> bender183: i said vote it up, fix it yourself, or buy the feature
[2010/06/18 13:53:27] <joe-mac> i assure you that people with huge infrastructure are using puppet, without elsif functionality
[2010/06/18 13:53:34] <bhearsum> bender183: seems fair to me -- if only one or two people care about it, why should it be implemented without funding ?
[2010/06/18 13:53:41] <Volcane> bender183: those 3 are all different possible options open to you to resolving your problem, some are faster than others
[2010/06/18 13:53:41] @ Quit: mfournier: Ping timeout: 240 seconds
[2010/06/18 13:54:37] <joe-mac> right- i am with volcane here. people want free software but don't want to do their part.
[2010/06/18 13:54:50] <Volcane> bender183: there's a 4th option open to you - learn how the language which uses a completely different approach to programming works which might not rely so heavily on such constructs that you might be used to fro the past, but it seems your against that approach which I'd suggest will mean you'll always hate puppet
[2010/06/18 13:55:01] <jbooth> ding ding ding. Like the folks who won't open an account to post bugs.
[2010/06/18 13:55:09] <joe-mac> jbooth: ++
[2010/06/18 13:55:56] <joe-mac> i created the bug for that dude... probably shouldn't be an enabler but he found a legit bug in facter idk why he couldn't take two seconds to register
[2010/06/18 13:55:58] <bender183> or 5th option - implement the core functionality which every programming language possesses kthxbye
[2010/06/18 13:56:08] <joe-mac> rofl
[2010/06/18 13:56:08] @ Quit: rsquared: Ping timeout: 276 seconds
[2010/06/18 13:56:09] <sking> Volcane: pastie.org/1010714
[2010/06/18 13:56:17] <bhearsum> bender183: It's not a programming language
[2010/06/18 13:56:21] <Volcane> bender183: yup, kthnxbey, are you leaving yet?
[2010/06/18 13:56:23] <jbooth> bender183: Your knowledge of langauges lacks... depth.
[2010/06/18 13:56:24] <fsweetser> bender183: ever used SQL?
[2010/06/18 13:56:26] <bhearsum> it's a declrative language
[2010/06/18 13:56:31] @ ecapriolo joined channel #puppet
[2010/06/18 13:56:40] <joe-mac> haha, o god, this is a great friday afternoon chat
[2010/06/18 13:56:40] <jbooth> I suppose bredth really.
[2010/06/18 13:56:51] <mstyne> where's my popcorn
[2010/06/18 13:56:55] <bender183> fsweetser, i believe sql has elseif doesnt it?
[2010/06/18 13:56:56] <lilnick> no joke
[2010/06/18 13:56:57] <bhearsum> yeah, grab the beer :)
[2010/06/18 13:56:59] <sking> SQL has ElSE IF
[2010/06/18 13:57:05] <fsweetser> barely
[2010/06/18 13:57:14] <jbooth> That's not elsif.
[2010/06/18 13:57:24] <jbooth> You can do else { if } in puppet like Volcane said two pages ago
[2010/06/18 13:57:24] <fsweetser> but it's not part of the core language, and 99.44% of the time if you're using it, you're probably doing something wrong
[2010/06/18 13:57:46] <fsweetser> a wrench may work to pound in a screw, but you will forever be fighting against the tool
[2010/06/18 13:57:57] <Volcane> sking: if thats all the involved files, then you are somehow including the class on both machines
[2010/06/18 13:58:07] <Volcane> sking: like i said earlier, the best approach is to be modular
[2010/06/18 13:58:11] @ Quit: poison: Remote host closed the connection
[2010/06/18 13:58:16] <Volcane> sking: make clas apache::install that installs apache
[2010/06/18 13:58:27] <Volcane> sking: and wherever you want apache, do include apache::install
[2010/06/18 13:58:32] <Volcane> sking: you can include many times
[2010/06/18 13:58:45] @ S_BS joined channel #puppet
[2010/06/18 13:58:46] <joe-mac> doesn't the case statement basically make elsif useless anyways?
[2010/06/18 13:58:53] <sking> right, but why the inconsistent behavior from puppet the way i have it?
[2010/06/18 13:58:54] <Volcane> sking: but i see you have different versions required, ok
[2010/06/18 13:59:16] <Kiloman> joe-mac: not if you want to test different sets of things
[2010/06/18 13:59:22] <Volcane> sking: trust me, its not inconsistant, its doing what you're telling it. somewhere you have some resource or include line outside of class or node blocks perhaps
[2010/06/18 13:59:29] <Kiloman> it's only good for testing different values of the same variable
[2010/06/18 13:59:34] @ LeLutin joined channel #puppet
[2010/06/18 13:59:37] <joe-mac> right, every if statement i have come to use in puppet tests one fact- so i am thinking one-sided
[2010/06/18 13:59:38] <Volcane> sking: please show those entire files
[2010/06/18 13:59:44] <Volcane> sking: not just bits of it
[2010/06/18 13:59:48] <joe-mac> tests one fact for one value usually actually
[2010/06/18 13:59:59] <sking> Volcane: i can't show the entire file… it is against my companies privacy policy
[2010/06/18 14:00:14] <Kiloman> I do agree - if it's that critical to what you're trying to do, you probably need to step back and think about whether or not that's the right way to be doing it
[2010/06/18 14:00:19] <Volcane> sking: so does apache_conf.pp:1
[2010/06/18 14:00:27] <Volcane> sking: mean apach_conf.pp line 1 ?
[2010/06/18 14:00:31] <sking> yes
[2010/06/18 14:00:43] <Volcane> sking: its not wrapped in say class apache_config { package. ... }
[2010/06/18 14:00:46] <Volcane> sking: ?
[2010/06/18 14:00:51] <sking> the fact that puppet will run the catalog with no errors, and nothing changes, and several runs later, it complains… means its inconsistent
[2010/06/18 14:01:03] <jbooth> Kiloman: Actually you can do the other...
[2010/06/18 14:01:05] <sking> no, its not wrapped
[2010/06/18 14:01:17] <jbooth> Kiloman: I used to do it all the time in TinyMUSH switch/select() code.
[2010/06/18 14:01:18] <Volcane> sking: if you're putting resources in files not in classes, you cant expect consistant behavior
[2010/06/18 14:01:29] <Volcane> sking: thats against the basic design of puppet
[2010/06/18 14:01:43] <jbooth> Kiloman: select($var1:$var2,val1:*,result1,*:val2,result2,default)
[2010/06/18 14:01:47] <jbooth> Kiloman: It is just gross.
[2010/06/18 14:02:16] <Kiloman> wow
[2010/06/18 14:02:19] <bearnard> oh environments how I love thee!
[2010/06/18 14:02:21] <ecapriolo> Does the puppet syntax support making a package a require of a class and not a service?
[2010/06/18 14:02:29] <bearnard> or loath should I say!
[2010/06/18 14:03:14] <jbooth> Kiloman: You'd have to regexp it in puppet instead of glob like I was using, but it could be done.
[2010/06/18 14:03:14] <jamesturnbull> bender183: and as i said earlier - if you want the feature - feel free to add your ten cents on the ticket or even better use cases or even better some tests or testing results from the patch
[2010/06/18 14:03:18] <sking> Volcane: ok, so if i wrapped that into class apache_conf { package }, would i need to change how i import the file, or would it execute the manifest as is without an include in the node definition?
[2010/06/18 14:03:50] <Volcane> sking: I think you're approaching the whole thign wrong, import isnt how you put resources on nodes, include is, include includes named classes
[2010/06/18 14:03:53] <bearnard> so files in my development modules path are nor accessible if I stick the module in my production branch the puppet://$fileserver/mymodule/foobar.cfg works..
[2010/06/18 14:03:58] <bearnard> am I missing something?
[2010/06/18 14:04:22] <Volcane> bearnard: surely thats the desired outcome?
[2010/06/18 14:04:26] <jamesturnbull> ecapriolo: you can't specify a require for a Class - what are you trying to achieve?
[2010/06/18 14:04:42] <jamesturnbull> ecapriolo: although you can require => Class["classname"]
[2010/06/18 14:04:49] <Volcane> sking: if you're using import you've miss understood what it does
[2010/06/18 14:04:52] <S_BS> can someone help me establish a basic connection between client and server
[2010/06/18 14:04:54] <sking> volcane: in mod-mt-web/manifests/init.pp at the bottom I have, import "apache_conf" that would be incorrect?
[2010/06/18 14:04:58] <sking> yeah, thats very possible
[2010/06/18 14:05:00] <ecapriolo> service { 'apache': require => Class['squid'] }
[2010/06/18 14:05:02] <Volcane> sking: yes
[2010/06/18 14:05:04] <Volcane> sking: incorrect
[2010/06/18 14:05:20] <jamesturnbull> ecapriolo: you can do that
[2010/06/18 14:05:41] <jamesturnbull> S_BS: sure - where are you up to?
[2010/06/18 14:05:47] <sking> can you elaborate on what import does more specifically? vs include?
[2010/06/18 14:05:49] <ecapriolo> I want a class class standardstuff { Package[a], package[b] } but it seems like I will need to make a phony service
[2010/06/18 14:05:56] <S_BS> thanks. so im just trying to get a certificate signed
[2010/06/18 14:05:59] <Volcane> sking: hmm. so say you have class foo in a file bar.pp
[2010/06/18 14:06:12] <S_BS> and im not seeing anything on the master machine
[2010/06/18 14:06:23] <Volcane> sking: when you say include foo, puppet doesnt know to look in bar.pp, it only knows whats in its memory of all the things its seen before - all the resources its read from files
[2010/06/18 14:06:24] <S_BS> as in, there are no requests listed
[2010/06/18 14:06:25] <bender183> jamesturnbull, i appreciate your input and will def give it some thought.
[2010/06/18 14:06:37] <joe-mac> sking: import makes the code available, include actually applies it
[2010/06/18 14:06:43] <joe-mac> think of import like 'sourcing' a file in bash
[2010/06/18 14:06:48] <joe-mac> include is like 'executing' a file in bash
[2010/06/18 14:06:49] <Volcane> sking: import loads it into memory ready for use at some point
[2010/06/18 14:06:56] <bearnard> Volcane: I have a machine whos env = development and its node includes a module only in the development modulepath but if I try to address any of the modules files ie. puppet://$fileserver/mymodule/foobar.cfg I get a 400 error
[2010/06/18 14:07:08] @ Quit: allsystemsarego: Quit: Leaving
[2010/06/18 14:07:13] <sking> ah ok
[2010/06/18 14:07:23] <Volcane> sking: typically via a include, class is like a scop tht constraints the groups of reousrces so you can later pick and choose which goes on a node
[2010/06/18 14:07:27] <bearnard> unless that module also exists in the production modulepath
[2010/06/18 14:07:31] <Volcane> sking: you pick what goes on a node using include
[2010/06/18 14:07:38] <S_BS> one more thing to add: im getting this on the client:warning: peer certificate won't be verified in this SSL session
[2010/06/18 14:07:38] <S_BS> notice: Did not receive certificate
[2010/06/18 14:07:41] <joe-mac> bearnard: what is the fact for environment saying
[2010/06/18 14:07:43] <Volcane> sking: if you have resources NOT in a class, or node, or define, they go on *all* nodes
[2010/06/18 14:07:55] <joe-mac> i am guessing that your environment fact is still saying production and it's interfering...
[2010/06/18 14:07:57] <sking> so i should probably create a module packages and have class apache::install{} apache::uninstall {} etc… for specific thigns I want ot include in all modules being applied specific nodes?
[2010/06/18 14:07:59] <jamesturnbull> S_BS: can you run you puppetmasterd with --no-daemonize --verbose and the same for the puppetd and then pastie the results (pastie.org or the like)
[2010/06/18 14:08:07] @ thekad-afk is now known as thekad
[2010/06/18 14:08:08] <jamesturnbull> S_BS: and you've run puppetca --list as root on the master?
[2010/06/18 14:08:14] <Volcane> sking: saying class foo { import "bar.pp" } doesnt insert the content of bar.pp inside the class, it loads the bar.pp independantly
[2010/06/18 14:08:22] <Volcane> sking: yes
[2010/06/18 14:08:23] <ecapriolo> jamesturnbull: Is a service actually tied into an init.d service ? or is it just a logical construct
[2010/06/18 14:08:24] <S_BS> jamesturnbull: ok just a sec
[2010/06/18 14:08:25] <Volcane> sking: modules++
[2010/06/18 14:08:35] <Volcane> sking: if you use modules correctly, you shouldnt have any import statements
[2010/06/18 14:08:45] <sking> ok, i believe my error was with the misunderstanding of import vs include
[2010/06/18 14:08:45] <jamesturnbull> ecapriolo: in the manifest it's a construct - an abstraction
[2010/06/18 14:08:56] <Volcane> sking: kewl hope that helps
[2010/06/18 14:09:00] <ecapriolo> Ok that makes sense then
[2010/06/18 14:09:00] <bearnard> joe-mac: I am using external node classifier with environment:development as a parameter
[2010/06/18 14:09:15] <jamesturnbull> ecapriolo: when it's instantiated on the client Puppet uses the appropriate tools to make it the way you've declared it
[2010/06/18 14:09:29] <Volcane> bearnard: node classifiers setting environment is broken in 0.25.x
[2010/06/18 14:09:29] <jamesturnbull> ecapriolo: upstart, init, smf etc
[2010/06/18 14:09:40] <Volcane> bearnard: the only sane way to set environment is puppet.conf at this point
[2010/06/18 14:09:56] <bearnard> ah ok cool, thanks
[2010/06/18 14:09:58] <Volcane> bearnard: setting it in the classifer or in a fact makes very weird stuff happen
[2010/06/18 14:10:05] <Volcane> bearnard: like files from one enironment, manifests from another
[2010/06/18 14:10:08] <S_BS> jamesturnbull: im getting on client: [root@ip-10-245-134-177 ~]# puppetd --no-daemonize --verbose
[2010/06/18 14:10:09] <S_BS> err: Could not request certificate: getaddrinfo: Name or service not known
[2010/06/18 14:10:15] <S_BS> and the process is hung up
[2010/06/18 14:10:28] <joe-mac> can you resolve 'puppet'?
[2010/06/18 14:10:36] <joe-mac> ie, "host puppet"
[2010/06/18 14:10:45] @ Quit: sijis: Ping timeout: 240 seconds
[2010/06/18 14:11:10] <jamesturnbull> S_BS: looks like a DNS/network issue to me - try specifying the FQDN of the master with the --server=fqdn option on the client
[2010/06/18 14:11:14] <bearnard> Volcane: I actually remember an email about it, thanks.
[2010/06/18 14:12:31] <ecapriolo> Yes just in my cases these packages are not really a part of any service just packages i want like systat. I guess I can make them a dependand of something else like syslog
[2010/06/18 14:12:57] * Volcane has a class common::packages for that kind of thing
[2010/06/18 14:12:58] <joe-mac> generally ecapriolo the practice is to make a common module that includes stuff liek that, taht every node should have
[2010/06/18 14:13:17] <jamesturnbull> bearnard: we've been working to refactor environments a little for 2.6 - we just got functions working which is excellent and will make nigelk a happy chappy
[2010/06/18 14:13:21] <Volcane> and common::company that includes that as well as common::monitor and common:removejunk
[2010/06/18 14:13:31] @ rsquared joined channel #puppet
[2010/06/18 14:13:41] @ Quit: rmiller4pi8: Ping timeout: 240 seconds
[2010/06/18 14:13:58] <S_BS> jamesturnbull: puppetd --test --server ec2-184-73-73-9.compute-1.amazonaws.com --waitforcert 10 --verbose --no-daemonize
[2010/06/18 14:14:01] <S_BS> warning: peer certificate won't be verified in this SSL session
[2010/06/18 14:14:01] <S_BS> warning: peer certificate won't be verified in this SSL session
[2010/06/18 14:14:01] <S_BS> warning: peer certificate won't be verified in this SSL session
[2010/06/18 14:14:01] <S_BS> warning: peer certificate won't be verified in this SSL session
[2010/06/18 14:14:01] <S_BS> notice: Did not receive certificate
[2010/06/18 14:14:01] <S_BS> warning: peer certificate won't be verified in this SSL session
[2010/06/18 14:14:02] <S_BS> notice: Did not receive certificate
[2010/06/18 14:15:31] <ecapriolo> jamesturnbull: Like an actual http://docs.puppetlabs.com/guides/modules.html module. Seems like there should be some simple construct for ... all nodes need systat . These darn declarative languages :)
[2010/06/18 14:15:32] <joe-mac> S_BS: we saw that the first couple of times
[2010/06/18 14:15:54] <S_BS> sorry
[2010/06/18 14:15:56] <joe-mac> first, ec2-184-73-73-9.compute-1.amazonaws.com, this is your master?
[2010/06/18 14:16:06] <S_BS> here is a printout of the log on the server
[2010/06/18 14:16:08] <S_BS> [2010-06-18 21:14:02] - -> /production/certificate/ip-10-245-134-177.ec2.internal
[2010/06/18 14:16:08] <S_BS> [2010-06-18 21:14:12] ip-10-245-134-177.ec2.internal - - [18/Jun/2010:21:14:12 UTC] "GET /production/certificate/ip-10-245-134-177.ec2.internal HTTP/1.1" 404 57
[2010/06/18 14:16:08] <S_BS> [2010-06-18 21:14:12] - -> /production/certificate/ip-10-245-134-177.ec2.internal
[2010/06/18 14:16:08] <S_BS> [2010-06-18 21:14:22] ip-10-245-134-177.ec2.internal - - [18/Jun/2010:21:14:22 UTC] "GET /production/certificate/ip-10-245-134-177.ec2.i
[2010/06/18 14:16:09] <joe-mac> i'm just messing with you, but you should use pastie if you want to do multuiple line messages, anyways
[2010/06/18 14:16:16] <S_BS> joe-mac: yes
[2010/06/18 14:16:35] <joe-mac> ok, and what does puppetca -l show?
[2010/06/18 14:16:37] <joe-mac> on the master
[2010/06/18 14:16:49] <S_BS> shows nothing
[2010/06/18 14:17:12] <bhearsum> where does the Puppet client cache the Puppet master's cert?
[2010/06/18 14:17:23] <S_BS> not sure
[2010/06/18 14:17:33] <joe-mac> /var/lib/puppet/ssl
[2010/06/18 14:17:53] <bhearsum> which file? i only see files related to the client there
[2010/06/18 14:17:57] <bhearsum> well, there's ca.pem
[2010/06/18 14:18:04] <joe-mac> actually not so sure about that, iy only really needs the ca.crt to validate the master cert and its cert came from the same CA
[2010/06/18 14:18:08] <bhearsum> ah
[2010/06/18 14:18:09] <bhearsum> hrm
[2010/06/18 14:18:22] <bhearsum> ok, thanks
[2010/06/18 14:18:54] <joe-mac> S_BS: so, on your master, can you do ls -lR /var/lib/puppet/ssl and post the output to pastie.org?
[2010/06/18 14:19:11] @ Maliuta joined channel #puppet
[2010/06/18 14:20:48] <Volcane> joe-mac: i think he created the csr, didnt send it properly, then fixed --server, and so it didnt send the csr to the master then
[2010/06/18 14:20:52] <Volcane> joe-mac: scrub, restart.
[2010/06/18 14:21:14] <lwhalen> hrm, I think I'm setting up pluginsync wrong
[2010/06/18 14:21:57] <lwhalen> in puppet.conf's [main] section for the clients, $vardir is /var/lib/puppet, and $factpath is $vardir/lib/facter, per the documentation
[2010/06/18 14:22:17] <joe-mac> right, yea
[2010/06/18 14:22:44] <lwhalen> I have a module for puppet as it is, so I defined the facter facts under it's directory structure, /etc/puppet/modules/puppetd/lib/facter/
[2010/06/18 14:23:03] <lwhalen> and with a restart of puppet, it pulls down the facts to /var/lib/puppet/lib/facter, as expected
[2010/06/18 14:23:12] <lwhalen> however, when I run facter, my facts don't show up
[2010/06/18 14:23:22] <lwhalen> this is puppet 0.25.4
[2010/06/18 14:23:29] <S_BS> http://pastie.org/1010746
[2010/06/18 14:23:40] <Volcane> lwhalen: facter -p
[2010/06/18 14:23:41] <S_BS> i think this should work
[2010/06/18 14:24:00] <lwhalen> err, facter version is 1.5.7
[2010/06/18 14:24:11] <Volcane> lwhalen: yes, -p needed
[2010/06/18 14:24:16] <lwhalen> ohhhhh
[2010/06/18 14:24:23] <lwhalen> hey HEY, there they are
[2010/06/18 14:24:50] <lwhalen> cool, so all my puppet manifests will see those facts?
[2010/06/18 14:24:55] <Volcane> yes
[2010/06/18 14:25:02] <Volcane> when puppet loads facter it sorts out the -p
[2010/06/18 14:25:08] <lwhalen> schweet
[2010/06/18 14:25:55] <joe-mac> S_BS: Volcane actually responded
[2010/06/18 14:26:00] <joe-mac> i think he created the csr, didnt send it properly, then fixed --server, and so it didnt send the csr to the master then
[2010/06/18 14:26:09] <joe-mac> yhou should probably totally remove the ssldir and try again
[2010/06/18 14:26:28] @ Ramonster joined channel #puppet
[2010/06/18 14:27:06] <S_BS> so i can remove /var/lib/puppet/ssl/ on both client and server
[2010/06/18 14:27:23] <Volcane> just client needed
[2010/06/18 14:27:27] <joe-mac> yea justc lient
[2010/06/18 14:27:37] <S_BS> ok will do
[2010/06/18 14:27:40] <S_BS> thanks guys
[2010/06/18 14:27:48] <S_BS> i will come back if it doesnt work ))
[2010/06/18 14:29:02] <plathrop> is there a "confine" system for custom facts?
[2010/06/18 14:29:11] <plathrop> Or do I just check for commands in my ruby code?
[2010/06/18 14:30:35] <Volcane> should be able to confine the same was as normal facts
[2010/06/18 14:30:44] <plathrop> cool
[2010/06/18 14:31:00] @ alban2 joined channel #puppet
[2010/06/18 14:31:14] <Volcane> like, normal facts and custom ones arent different
[2010/06/18 14:31:16] @ avocado joined channel #puppet
[2010/06/18 14:31:38] <Volcane> confine :kernel => [:meh]
[2010/06/18 14:32:30] <plathrop> does one of the stock facts depend on a certain command being available so I can copy that pattern? *is looking himself as well*
[2010/06/18 14:34:13] <Volcane> Facter::Util::Resolution.exec will raise an exception and just not add your fact if the file isnt there
[2010/06/18 14:34:33] <Volcane> if you use it right
[2010/06/18 14:35:10] <Volcane> erm, or it might just return blank then, not sure now
[2010/06/18 14:35:29] <plathrop> returns nil
[2010/06/18 14:35:42] <Volcane> yeah it returns nil
[2010/06/18 14:35:56] @ bender183 left channel #puppet ()
[2010/06/18 14:35:57] <Volcane> so just check the result
[2010/06/18 14:39:29] <ecapriolo> joe-mac: I found syntax i was looking for
[2010/06/18 14:39:46] <ecapriolo> class standardserver {
[2010/06/18 14:39:46] <ecapriolo> package { sysstat:ensure => installed }
[2010/06/18 14:39:46] <ecapriolo> package { iftop:ensure => installed }
[2010/06/18 14:39:46] <ecapriolo> }
[2010/06/18 14:39:46] <ecapriolo>
[2010/06/18 14:40:07] * Volcane wonders if he is about to kill foremans hosting by accident.
[2010/06/18 14:40:11] <Volcane> updating ruby bits
[2010/06/18 14:40:24] <jbooth> ecapriolo: ["sysstat", "iftop"] if you want to be shorter.
[2010/06/18 14:40:39] <Volcane> ecapriolo: package{["one", "two"]: ensure => installed}
[2010/06/18 14:40:42] <Volcane> yeah, slow
[2010/06/18 14:41:13] <jbooth> I do a lot of ^U when you beat me Volcane don't feel bad. ;-)
[2010/06/18 14:41:20] <Volcane> :P
[2010/06/18 14:41:38] * Volcane 's updating servers, damn distractions
[2010/06/18 14:41:52] <joe-mac> ecapriolo: syntax != practice
[2010/06/18 14:41:56] <ecapriolo> Volcane: Haha its going to be a long list I like lots of fancy tools on my systems
[2010/06/18 14:42:05] <joe-mac> i am saying, normally people make a common module or 'base' module and include that on every node
[2010/06/18 14:42:19] <joe-mac> that's practice, syntax is a whole different concept
[2010/06/18 14:42:58] <Volcane> ecapriolo: if you're installing lots of the same on all machines, u need to list them somewhere. my way is shorter
[2010/06/18 14:43:09] <Volcane> ecapriolo: and u can split mine over many lines, 1 line per package still
[2010/06/18 14:43:09] <ecapriolo> joe-mac: I was looking for a construct to include a list of packages in a class. Now I can apply this class to all my servers
[2010/06/18 14:43:30] <ecapriolo> Volcane: Either way is fine for me. I am not particular
[2010/06/18 14:43:42] <joe-mac> ah, i se
[2010/06/18 14:44:00] <Volcane> 25 x n packages characters less to type in mine :P
[2010/06/18 14:46:18] <joe-mac> o god, you're 'that guy' whio hates whitespace and any extra chars
[2010/06/18 14:46:19] <joe-mac> :-D
[2010/06/18 14:46:25] <joe-mac> anyways i am going home
[2010/06/18 14:46:34] <ecapriolo> I think I will group them up logically ... gcc,perl,flex
[2010/06/18 14:46:49] <Volcane> joe-mac: heh. my 'likes' vary by language annoyingly
[2010/06/18 14:47:02] <joe-mac> mehh, that's not so weird
[2010/06/18 14:47:47] @ joe-mac left channel #puppet ()
[2010/06/18 14:48:17] @ Quit: juniper: Quit: She who quits and runs away...
[2010/06/18 14:48:38] @ Quit: MPSimmons: Quit: Leaving.
[2010/06/18 14:49:59] <eric0> theres a guy i work with who did a 500 line commit on nagios configs that was *solely* whitespace cleanups for extra spaces at the end of lines
[2010/06/18 14:50:17] @ Quit: anvil14: Quit: anvil14
[2010/06/18 14:50:23] <sking> sounds like someone i know
[2010/06/18 14:50:23] <sking> lol
[2010/06/18 14:51:13] <plathrop> some of us use editors that clean up spaces at EOL
[2010/06/18 14:51:42] @ ceren joined channel #puppet
[2010/06/18 14:52:43] <Volcane> there's no doubt some magic vim setting that sorts it out
[2010/06/18 14:52:58] <Volcane> but joe-macm ostly dislike how i use hard tabs in puppet manifests
[2010/06/18 14:53:16] <Volcane> i dont like it either for tha tmatter, but i have 1000s of pp files like it so stuck with it
[2010/06/18 14:54:27] <eric0> my cow-orker probably freelances if you want a hand with that
[2010/06/18 14:54:44] * Volcane 's a freelancer :P
[2010/06/18 14:56:42] <Volcane> i can just tell my junior to fix it, but really, he'd need to piss me off a lot to deserve that
[2010/06/18 14:58:48] @ Quit: xHans: Remote host closed the connection
[2010/06/18 14:59:03] @ Quit: notbrien: Quit: notbrien
[2010/06/18 15:00:49] @ Quit: ecapriolo: Quit: KVIrc Insomnia 4.0.0, revision: 4030, sources date: 20100125, built on: 2010-02-25 23:12:54 UTC http://www.kvirc.net/
[2010/06/18 15:02:18] @ Quit: jdcasey:
[2010/06/18 15:07:15] @ Quit: ahasenack: Quit: Leaving
[2010/06/18 15:07:32] @ siezer joined channel #puppet
[2010/06/18 15:07:38] @ pting joined channel #puppet
[2010/06/18 15:10:06] @ Quit: lutter: Ping timeout: 265 seconds
[2010/06/18 15:10:13] @ Quit: lwhalen: Quit: Where'd my controlling terminal go?!?
[2010/06/18 15:13:26] @ Quit: ajbourg: Quit: ajbourg
[2010/06/18 15:23:39] @ Quit: nexx: Quit: quit
[2010/06/18 15:25:55] @ Quit: Volcane: Quit: leaving
[2010/06/18 15:26:01] <jamesturnbull> Volcane: http://forge.puppetlabs.com/puppetlabs/DeveloperBootstrap
[2010/06/18 15:26:58] @ Volcane joined channel #puppet
[2010/06/18 15:28:50] <Volcane> jamesturnbull: wd, killed my vm dead, needs a restart :P
[2010/06/18 15:28:57] * Volcane thnks he has the dodgy rubygems
[2010/06/18 15:30:35] <Volcane> actually epel has dodgy rubygems version
[2010/06/18 15:32:55] <Volcane> wow i thnk that puppet module might have even killed the dom0 :)
[2010/06/18 15:33:00] <Volcane> you're good
[2010/06/18 15:34:27] <jamesturnbull> PEBCAK issue I am sure
[2010/06/18 15:34:33] @ xHans joined channel #puppet
[2010/06/18 15:34:35] <Volcane> heh
[2010/06/18 15:34:48] <jamesturnbull> Volcane: http://vim.wikia.com/wiki/Remove_unwanted_spaces#Automatically_removing_all_trailing_whitespace
[2010/06/18 15:35:33] <Volcane> jamesturnbull: lol http://nephilim.ml.org/~rip/gemlist.png
[2010/06/18 15:35:57] @ Quit: \ask: Remote host closed the connection
[2010/06/18 15:36:29] <jamesturnbull> Volcane: wtf?
[2010/06/18 15:36:39] <Volcane> yeah, indeed
[2010/06/18 15:36:55] @ Quit: flakrat: Quit: Leaving
[2010/06/18 15:37:09] @ \ask joined channel #puppet
[2010/06/18 15:37:29] <Volcane> time to reinstall this vm :)
[2010/06/18 15:39:22] @ Quit: kaptk2: Quit: Leaving.
[2010/06/18 15:39:25] <Volcane> its a random vm i had around, who knows whats going on with it
[2010/06/18 15:42:13] @ Quit: \ask: Remote host closed the connection
[2010/06/18 15:43:24] @ Quit: neek: Quit: My damn controlling terminal disappeared!
[2010/06/18 15:46:37] @ joe-mac joined channel #puppet
[2010/06/18 15:47:22] <joe-mac> hey jamesturnbull just testing that new regex- works for both cases with and without flavors, however wghen a flavor exists it remembers the - that prepends it... i tried moving around the parens and moving the dash outside the parens but each of my tests completely breaks the shit
[2010/06/18 15:47:30] <joe-mac> if jamesturnbull isn't around, anybody else handy with regex?
[2010/06/18 15:47:58] <joe-mac> regex = /^(.*)-(\d[^-]*)((?:-\D[^-]*)*)$/
[2010/06/18 15:48:19] <joe-mac> it's for openbsd packages, which can be like screen-4.03p1 or screen-4.03p1-shm
[2010/06/18 15:48:48] <joe-mac> totally works, just need to not remember that dash
[2010/06/18 15:49:21] <Kiloman> change ^(.*) to ^(.*?) to make it less greedy
[2010/06/18 15:49:22] <jhelwig> What do you need to capture from it? The name, and version?
[2010/06/18 15:49:32] <Kiloman> might work?
[2010/06/18 15:50:10] @ Quit: tonyskapunk: Quit: ERC Version 5.3 (IRC client for Emacs)
[2010/06/18 15:50:53] <Kiloman> wait so you're trying to not match the final bit?
[2010/06/18 15:51:00] <joe-mac> no, i need to match the last bit
[2010/06/18 15:51:36] <Kiloman> you want $1=screen $2=4 $3=03p1-shm
[2010/06/18 15:51:48] <joe-mac> right now, calling regex.match("screen-4.01p1") or regex.match("screen-4.03p1-shm") works as expected EXCEPT in the second case, where what OBSD calls a flavor is present, it stored the prepending -
[2010/06/18 15:51:50] <Kiloman> am I reading that right?
[2010/06/18 15:52:00] @ Quit: adrian_broher: Quit: Verlassend
[2010/06/18 15:52:09] <joe-mac> no, in the one with a flavor it would be screen, 4.01p1, shm
[2010/06/18 15:52:25] <joe-mac> without a flavor it would be screen, 4.01p1, NULL
[2010/06/18 15:52:46] <joe-mac> the beginning needs to be greedy
[2010/06/18 15:52:52] <joe-mac> cause osme package names can be package-name
[2010/06/18 15:52:55] <joe-mac> annoying to say the least
[2010/06/18 15:53:26] <jhelwig> joe-mac: Try this: regex = /^(.*)-(\d[^-]*)(?:-(\D[^-]*)*)$/
[2010/06/18 15:54:02] @ \ask joined channel #puppet
[2010/06/18 15:54:04] <jhelwig> If you were getting screen, 4.01p1, -shm, then you needed to shift around the non-capturing group, and the - at the end.
[2010/06/18 15:54:07] <joe-mac> nope, doesn't work
[2010/06/18 15:54:18] <joe-mac> right, tried that jhelwig, broke it for certain cases
[2010/06/18 15:54:21] <sking> http://pastie.org/1010876 with the code on that page, i am getting the error that only subclasses can override paramaters, any idea why?
[2010/06/18 15:55:07] <joe-mac> where's the apache::service class?
[2010/06/18 15:55:31] @ Quit: \ask: Remote host closed the connection
[2010/06/18 15:55:46] <sking> http://pastie.org/1010879
[2010/06/18 15:55:59] <joe-mac> see that regex you submitted jhelwig i tried that, it works for the case where there is a flavor present but breaks when there isn't one
[2010/06/18 15:57:26] <sking> sorry missed part of my file http://pastie.org/1010881
[2010/06/18 15:58:03] <jhelwig> joe-mac: regex = /^(.+)-(\d[^-]+)(?:-(\D[^-]+))?$/ Seems like it should get what you want, and be simpler. You could try /^(.*)-(\d[^-]*)(?:-(\D[^-]*)*)?$/ too.
[2010/06/18 15:58:37] <joe-mac> that works perfect jhelwig
[2010/06/18 15:58:42] <joe-mac> let me try a ocuple more edge cases
[2010/06/18 15:58:55] <joe-mac> awesome
[2010/06/18 15:58:56] <joe-mac> i think that's the one
[2010/06/18 15:58:58] <Kiloman> m/^(.*)-(\d[^-]*)[-]?(\D*)$/
[2010/06/18 15:59:01] <Kiloman> works for me
[2010/06/18 15:59:04] <jamesturnbull> joe-mac: rubular.com
[2010/06/18 15:59:18] <joe-mac> o wow
[2010/06/18 15:59:22] <Kiloman> or as you had it, regex = /^(.*)-(\d[^-]*)[-]?(\D*)$/
[2010/06/18 15:59:54] <joe-mac> Kiloman: jhelwig's last message, first regex, works the way i need it to it appears
[2010/06/18 16:00:12] <Kiloman> yeah I don't know what other edge cases you're trying to exclude
[2010/06/18 16:00:13] <sking> joe-mac: any ideas? :\
[2010/06/18 16:00:39] <joe-mac> sking: something to do with cross class inheritance however i do that and it works, methinks i am missing something i am kind of in fix this provider mode
[2010/06/18 16:00:55] <joe-mac> Kiloman: yea unfortunately, this is retarded lol
[2010/06/18 16:01:07] <joe-mac> i can';t wait til obsd has actual package management
[2010/06/18 16:01:12] <joe-mac> supposedly it's getting all reworked
[2010/06/18 16:05:20] <joe-mac> badass, it even works for the retarded default binpatch package names
[2010/06/18 16:05:53] @ showy joined channel #puppet
[2010/06/18 16:05:55] <jhelwig> joe-mac: Actually, you'll probably want to change that regex a bit. If you change the last two + to *, then it won't assume that you'll have at least two things after the second, or third -.
[2010/06/18 16:06:34] <jhelwig> IOW: It'll match foo-1-s, whereas with + instead of * for the last two, it wouldn't.
[2010/06/18 16:06:44] <joe-mac> right, good catch
[2010/06/18 16:06:59] <joe-mac> i'm going to actually download the list of packages from the ftp and run them through the regex as a test
[2010/06/18 16:08:43] @ littleidea joined channel #puppet
[2010/06/18 16:09:17] <joe-mac> can you concatenate symbols? /me checks irb
[2010/06/18 16:10:17] <joe-mac> guess not
[2010/06/18 16:11:05] <Volcane> what would you want? :foo + :bar becomes :foobar ?
[2010/06/18 16:11:18] <joe-mac> yea, i am just doing .to_s + .to_s
[2010/06/18 16:11:19] <joe-mac> etc
[2010/06/18 16:11:47] <Volcane> "#{:foo}#{:bar}".to_sym
[2010/06/18 16:12:03] <joe-mac> i need to take symbols and make strings though, so i assume .to_s is the proper way
[2010/06/18 16:12:20] <Volcane> yeah or just use it in a string
[2010/06/18 16:12:23] <Volcane> like above
[2010/06/18 16:12:35] <Volcane> that basically calls .to_s on each
[2010/06/18 16:12:50] <joe-mac> no shit, i guess #{} is an overloaded op>?
[2010/06/18 16:14:33] <Volcane> no idea :)
[2010/06/18 16:14:42] <Volcane> ruby strings have all sorts of weird
[2010/06/18 16:17:59] @ Quit: joe-mac: Ping timeout: 258 seconds
[2010/06/18 16:20:10] <Volcane> jamesturnbull: really need to install the facte gem? if you're installing this with puppet you'd have facter
[2010/06/18 16:25:22] <jamesturnbull> Volcane: nah you probably don't
[2010/06/18 16:25:34] <jamesturnbull> Volcane: but I've assumed some people will just checkout the code
[2010/06/18 16:25:50] <jamesturnbull> Volcane: and then install.rb to install and run like that rather than insrall the package
[2010/06/18 16:25:52] <Volcane> redhat+epel etc want sqlite3-ruby = 1.2.5
[2010/06/18 16:26:13] <Volcane> jamesturnbull: well i mean if you're using puppet and your puppet module, facter would be there alredy else puppet wont work
[2010/06/18 16:26:39] <jamesturnbull> Volcane: oh I see :)
[2010/06/18 16:26:49] <jamesturnbull> Volcane: hmm yes will change that
[2010/06/18 16:27:02] <Volcane> and gems not having luck finding relevance-rcov
[2010/06/18 16:27:40] <Volcane> should be just rconv I'd say
[2010/06/18 16:28:55] <Volcane> other than the version thing, puppet --modulepath=/root/modules/ -e 'include developerbootstrap' works fine
[2010/06/18 16:31:09] @ Quit: littleidea: Quit: littleidea
[2010/06/18 16:33:31] <jamesturnbull> Volcane: nah unfortunately oyu need the relevance one I think - let me chgeck that - I think I just need to add source
[2010/06/18 16:33:54] @ stewartl421 joined channel #puppet
[2010/06/18 16:38:20] @ Quit: Ramonster: Quit: So long, thanx for all the fish
[2010/06/18 16:39:38] @ jcape joined channel #puppet
[2010/06/18 16:52:35] @ shenson is now known as shenson_gone
[2010/06/18 16:53:18] @ Quit: ken_barber: Quit: Leaving
[2010/06/18 16:56:04] <sking> does anyone know if something changed in 25.x with class inheritance?
[2010/06/18 16:56:32] @ Quit: WALoeIII: Quit: Bai.
[2010/06/18 17:07:25] @ Quit: bitfield1: Quit: Leaving.
[2010/06/18 17:08:19] <jamesturnbull> sking: it did not
[2010/06/18 17:09:57] <sking> jamesturnbull: would you mind taking a look at an error i keep getting when i try to override a paramater in an inherited class?
[2010/06/18 17:12:53] <sking> http://pastie.org/1010947
[2010/06/18 17:15:17] @ Quit: bearnard: Quit: bearnard
[2010/06/18 17:20:52] <mackn> so what's the prefered method of triggering a restart of puppetd
[2010/06/18 17:21:11] <sking> what platform?
[2010/06/18 17:21:14] <sking> ususally the init script
[2010/06/18 17:21:26] <mackn> it works fine if called in the middle of a run?
[2010/06/18 17:21:42] <mackn> i thought it used to hold on HUP and restart after the run but it doesn't appear to do that...
[2010/06/18 17:21:44] <sking> ive seen no issue with it
[2010/06/18 17:21:48] <mackn> ok
[2010/06/18 17:21:51] <sking> on centos anyway
[2010/06/18 17:22:10] <sking> im kinda brutal when im testing, and restart it in the middle of runs a lot
[2010/06/18 17:22:17] <mackn> i imagine fbsd will give me issues.. as i've always had issues restarting it in the past from within a run
[2010/06/18 17:22:21] <mackn> but maybe things have changed
[2010/06/18 17:22:36] <sking> what about sending it sig USR1
[2010/06/18 17:22:52] <mackn> what does puppetd do with a USR1?
[2010/06/18 17:23:07] <mackn> i guess i should look at what signals it handles...
[2010/06/18 17:23:14] <sking> restarts itself last i checked
[2010/06/18 17:23:22] <mackn> i guess we'll find out :)
[2010/06/18 17:23:25] <sking> hehe
[2010/06/18 17:23:32] <sking> trial and error is the way to go ;)
[2010/06/18 17:23:59] <mackn> ahh usr1 does a reload
[2010/06/18 17:24:12] <mackn> that may be sufficient...
[2010/06/18 17:24:17] <mackn> if i can do it in the middle of a run
[2010/06/18 17:24:17] <mackn> heh
[2010/06/18 17:24:20] * mackn tests
[2010/06/18 17:27:13] <mackn> yeah it ignores it if it's already running.. which sort of makes sense
[2010/06/18 17:27:22] <mackn> i don't think it does what i need anywayz
[2010/06/18 17:27:23] <sking> hmm
[2010/06/18 17:27:23] <sking> lame
[2010/06/18 17:27:55] @ Quit: jaredrhine: Quit: Leaving.
[2010/06/18 17:28:22] <mackn> if i can't find a graceful way.. ugly will have to do
[2010/06/18 17:28:54] <sking> yeah
[2010/06/18 17:29:02] <sking> im kinda in that boat with some module writing, lol
[2010/06/18 17:29:17] <mackn> i swear puppetd used to see the HUP.. and knew to restart once the run was done...
[2010/06/18 17:29:33] <mackn> hrmm
[2010/06/18 17:29:47] <mackn> too lazy to look at the changelog/commit notes
[2010/06/18 17:29:54] <sking> do you know much about class inheritance?
[2010/06/18 17:30:04] <sking> let me look at the init scrpt i have, i do a restart and it stops the current run
[2010/06/18 17:30:43] <sking> ah reload throws HUP
[2010/06/18 17:30:50] <sking> restart actually stops it with killproc
[2010/06/18 17:31:23] <mackn> yeah.. that's sort of the 'ugly' way to do it if it's in the middle of a run but meh.. gotta do what you gotta do
[2010/06/18 17:32:14] <sking> a lot of daemons need that though :\
[2010/06/18 17:32:23] <mackn> yeah
[2010/06/18 17:32:24] <sking> but you want it to complete the run and then restart?
[2010/06/18 17:32:42] <mackn> well i'm just afraid of killing it in the middle of doing something
[2010/06/18 17:32:47] <mackn> is all
[2010/06/18 17:32:58] <mackn> hence 'graceful'
[2010/06/18 17:32:58] <mackn> heh
[2010/06/18 17:33:14] <sking> yeah
[2010/06/18 17:33:18] <Kiloman> skiing: apache::mt::service is trying to override Package['httpd'], which is defined in apache::install, but apache::mt::service is not a subclass of apache::install
[2010/06/18 17:33:45] <Kiloman> at least that would be my guess
[2010/06/18 17:33:59] <sking> thanks Kiloman! i actually realized that after posting the link… just didn't say nothing… thanks for looking though!
[2010/06/18 17:34:03] <Kiloman> haha
[2010/06/18 17:34:10] <sking> :D
[2010/06/18 17:34:16] <Kiloman> hey, I learned something by looking too ;)
[2010/06/18 17:34:18] <sking> sadly i had already spent 2 hours banging my head on a table
[2010/06/18 17:34:24] @ plathrop is now known as plathrop-away
[2010/06/18 17:34:40] @ Quit: kc7zzv: Read error: Connection reset by peer
[2010/06/18 17:34:58] <Kiloman> yeah I've had my share of fun trying to bend class inheritance to my will as well
[2010/06/18 17:35:05] @ kc7zzv joined channel #puppet
[2010/06/18 17:36:58] <sking> ive at least stopped breaking unrelated clusters of servers :p
[2010/06/18 17:37:39] @ Djelibeybi joined channel #puppet
[2010/06/18 17:50:08] @ Quit: Djelibeybi: Ping timeout: 276 seconds
[2010/06/18 17:53:02] <sking> the problem with class inheritance is that they are only half taking object oriented behavior and implementing only what they want, so us OO people go… "umm wtf"
[2010/06/18 17:54:28] @ Djelibeybi joined channel #puppet
[2010/06/18 18:02:16] @ jaredrhine joined channel #puppet
[2010/06/18 18:10:07] @ Quit: Djelibeybi: Ping timeout: 240 seconds
[2010/06/18 18:15:32] @ Djelibeybi joined channel #puppet
[2010/06/18 18:19:52] @ Quit: sking: Ping timeout: 252 seconds
[2010/06/18 18:20:37] @ beata- joined channel #puppet
[2010/06/18 18:21:22] @ Quit: Djelibeybi: Ping timeout: 264 seconds
[2010/06/18 18:26:58] @ Quit: jab_doa: Quit: Verlassend
[2010/06/18 18:27:39] @ Djelibeybi joined channel #puppet
[2010/06/18 18:27:54] <Djelibeybi> jamesturnbull: ping?
[2010/06/18 18:30:05] @ Djeli joined channel #puppet
[2010/06/18 18:32:47] @ sking joined channel #puppet
[2010/06/18 18:33:07] @ Quit: Djelibeybi: Ping timeout: 248 seconds
[2010/06/18 18:34:21] @ Djeli is now known as Djelibeybi
[2010/06/18 18:38:27] @ johnf joined channel #puppet
[2010/06/18 18:49:52] @ Quit: kc7zzv: Quit: kc7zzv
[2010/06/18 18:57:37] @ Quit: ricky: Ping timeout: 264 seconds
[2010/06/18 18:59:53] @ ricky joined channel #puppet
[2010/06/18 19:00:19] @ Quit: Djelibeybi: Quit: Leaving
[2010/06/18 19:15:50] @ PhabX joined channel #puppet
[2010/06/18 19:16:52] @ Quit: pting: Quit: Ex-Chat
[2010/06/18 19:17:00] @ Quit: MrHeavy: Ping timeout: 258 seconds
[2010/06/18 19:17:26] @ Quit: ricky: Ping timeout: 240 seconds
[2010/06/18 19:17:57] @ ricky joined channel #puppet
[2010/06/18 19:21:55] @ Quit: PhabX:
[2010/06/18 19:22:24] @ PhabX joined channel #puppet
[2010/06/18 19:35:04] @ littleidea joined channel #puppet
[2010/06/18 19:36:06] @ wilmoore joined channel #puppet
[2010/06/18 19:39:38] @ MrHeavy joined channel #puppet
[2010/06/18 19:43:52] @ Quit: littleidea: Quit: littleidea
[2010/06/18 19:44:57] @ littleidea joined channel #puppet
[2010/06/18 19:46:32] @ Quit: littleidea: Client Quit
[2010/06/18 19:50:53] @ thekad is now known as thekad-afk
[2010/06/18 19:52:43] @ stewartl421 left channel #puppet ()
[2010/06/18 20:15:31] @ Quit: ricky: Ping timeout: 276 seconds
[2010/06/18 20:16:10] @ ricky joined channel #puppet
[2010/06/18 20:18:34] @ rmiller4pi8 joined channel #puppet
[2010/06/18 20:36:28] @ Quit: cliff-hm: Ping timeout: 245 seconds
[2010/06/18 20:49:27] @ Quit: jaredrhine: Ping timeout: 240 seconds
[2010/06/18 20:50:32] @ jietoh joined channel #puppet
[2010/06/18 20:51:13] @ blahdeblah joined channel #puppet
[2010/06/18 20:58:24] @ \ask joined channel #puppet
[2010/06/18 21:11:15] @ Quit: ricky: Ping timeout: 260 seconds
[2010/06/18 21:13:16] @ yannL joined channel #puppet
[2010/06/18 21:14:40] @ ricky joined channel #puppet
[2010/06/18 21:14:55] @ ricky is now known as Guest82850
[2010/06/18 21:26:57] @ Quit: MrHeavy: Ping timeout: 258 seconds
[2010/06/18 21:27:47] @ sking left channel #puppet ()
[2010/06/18 21:28:06] @ Quit: blahdeblah: Ping timeout: 240 seconds
[2010/06/18 21:31:19] @ Quit: \ask: Remote host closed the connection
[2010/06/18 21:40:30] @ Quit: yannL: Remote host closed the connection
[2010/06/18 21:45:24] @ Quit: jietoh: Quit: Leaving
[2010/06/18 21:48:00] @ Quit: rcrowley: Quit: rcrowley
[2010/06/18 21:48:59] @ MrHeavy joined channel #puppet
[2010/06/18 22:02:07] @ wilmoore_ joined channel #puppet
[2010/06/18 22:03:06] @ Quit: wilmoore: Ping timeout: 240 seconds
[2010/06/18 22:12:57] @ Quit: MrHeavy: Ping timeout: 258 seconds
[2010/06/18 22:13:40] @ \ask joined channel #puppet
[2010/06/18 22:14:36] @ MrHeavy joined channel #puppet
[2010/06/18 22:20:23] @ Quit: jcape: Ping timeout: 260 seconds
[2010/06/18 22:23:57] @ joe-mac joined channel #puppet
[2010/06/18 22:24:07] <joe-mac> anybody stil lawake?
[2010/06/18 22:24:16] <joe-mac> \my evdo connect died while i was working on that patch
[2010/06/18 22:24:25] <joe-mac> kind of don't know how to test it properly
[2010/06/18 22:29:47] @ jaredrhine joined channel #puppet
[2010/06/18 22:41:30] @ gebi joined channel #puppet
[2010/06/18 22:45:54] @ alcy joined channel #puppet
[2010/06/18 22:51:59] @ Quit: alcy: Quit: Page closed
[2010/06/18 22:54:19] <joe-mac> i'
[2010/06/18 22:54:36] <joe-mac> m gonna do a git-export then copyu it to openbsd nd try a couple test package manifests
[2010/06/18 22:54:57] @ bearnard joined channel #puppet
[2010/06/18 23:32:08] @ Quit: Eghie: Quit: I'm sailing away
[2010/06/18 23:33:16] @ Quit: \ask: Remote host closed the connection
[2010/06/18 23:37:00] @ bearnard_ joined channel #puppet
[2010/06/18 23:39:37] @ Quit: bearnard: Ping timeout: 264 seconds
[2010/06/18 23:39:37] @ bearnard_ is now known as bearnard
[2010/06/18 23:40:14] @ \ask joined channel #puppet
[2010/06/18 23:51:00] @ Quit: \ask: Remote host closed the connection
[2010/06/18 23:53:08] @ Quit: gebi: Ping timeout: 260 seconds
[2010/06/18 23:54:45] @ \ask joined channel #puppet

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