| [2010/02/18 00:23:20] @ Log started by gepetto | ||
| [2010/02/18 00:23:20] @ Quit: justdave: Ping timeout: 246 seconds | ||
| [2010/02/18 00:23:40] @ Quit: Eghie: Ping timeout: 272 seconds | ||
| [2010/02/18 00:23:46] @ Quit: maxagaz: Quit: Ex-Chat | ||
| [2010/02/18 00:31:18] @ justdave joined channel #puppet | ||
| [2010/02/18 00:32:26] @ Quit: Bass10: Read error: Connection reset by peer | ||
| [2010/02/18 00:32:50] @ Bass10 joined channel #puppet | ||
| [2010/02/18 00:37:01] @ Eghie joined channel #puppet | ||
| [2010/02/18 00:38:02] @ Quit: bug: Quit: bug | ||
| [2010/02/18 00:49:57] @ lak joined channel #puppet | ||
| [2010/02/18 01:04:21] @ Quit: Djelibeybi: Quit: Leaving | ||
| [2010/02/18 01:04:40] @ bodepd joined channel #puppet | ||
| [2010/02/18 01:05:49] @ Quit: skiold: Quit: skiold | ||
| [2010/02/18 01:05:54] @ Quit: lak: Ping timeout: 240 seconds | ||
| [2010/02/18 01:07:03] @ |Mike|_ joined channel #puppet | ||
| [2010/02/18 01:07:04] @ Quit: |Mike|: Read error: Connection reset by peer | ||
| [2010/02/18 01:14:58] @ Quit: Bass10: Ping timeout: 272 seconds | ||
| [2010/02/18 01:15:10] @ bug joined channel #puppet | ||
| [2010/02/18 01:18:46] @ bgupta joined channel #puppet | ||
| [2010/02/18 01:27:23] @ Djelibeybi joined channel #puppet | ||
| [2010/02/18 01:29:31] @ Quit: Djelibeybi: Client Quit | ||
| [2010/02/18 01:31:46] @ m1nish joined channel #puppet | ||
| [2010/02/18 01:41:24] @ PaulWay[w] left channel #puppet ("I must go, there are too many tangrams on this channel.") | ||
| [2010/02/18 01:52:53] @ Quit: jfreeman: Remote host closed the connection | ||
| [2010/02/18 01:55:02] @ jfreeman joined channel #puppet | ||
| [2010/02/18 01:55:21] @ Quit: jfreeman: Remote host closed the connection | ||
| [2010/02/18 02:02:14] @ maxagaz joined channel #puppet | ||
| [2010/02/18 02:15:26] @ skiold joined channel #puppet | ||
| [2010/02/18 02:17:06] @ nexx joined channel #puppet | ||
| [2010/02/18 02:35:40] @ Djelibeybi joined channel #puppet | ||
| [2010/02/18 02:37:27] @ darko joined channel #puppet | ||
| [2010/02/18 02:37:55] @ darko is now known as Guest42348 | ||
| [2010/02/18 02:38:38] @ Quit: Guest42348: Client Quit | ||
| [2010/02/18 02:41:27] @ WALoeIII joined channel #puppet | ||
| [2010/02/18 02:49:35] @ davewongillies joined channel #puppet | ||
| [2010/02/18 02:50:06] @ erlingre joined channel #puppet | ||
| [2010/02/18 02:51:56] @ kolla joined channel #puppet | ||
| [2010/02/18 02:52:17] @ Quit: WALoeIII: Quit: Bai. | ||
| [2010/02/18 02:54:38] @ Ramonster joined channel #puppet | ||
| [2010/02/18 02:57:06] <tjoe> quick question | ||
| [2010/02/18 02:57:23] <tjoe> when I run the puppet client on a host I get a "Certificates were not trusted: certificate verify failed" for one file | ||
| [2010/02/18 02:57:31] <tjoe> and the new file do not get copied over | ||
| [2010/02/18 02:58:30] @ Quit: |Mike|_: Quit: Reconnecting | ||
| [2010/02/18 02:58:53] @ Quit: tjoe: Quit: leaving | ||
| [2010/02/18 02:59:21] @ Quit: davewongillies: Ping timeout: 260 seconds | ||
| [2010/02/18 03:01:00] @ Quit: Djelibeybi: Quit: Leaving | ||
| [2010/02/18 03:01:40] @ pacalm joined channel #puppet | ||
| [2010/02/18 03:05:14] @ Quit: bug: Quit: bug | ||
| [2010/02/18 03:07:02] <erlingre> Do anyone of you use both puppet and spacewalk/satellite? Which tasks do you use for each tool and do you connect them in any manner? | ||
| [2010/02/18 03:09:47] @ Djelibeybi joined channel #puppet | ||
| [2010/02/18 03:12:42] @ Quit: hggh: Ping timeout: 256 seconds | ||
| [2010/02/18 03:13:06] @ hggh joined channel #puppet | ||
| [2010/02/18 03:14:50] @ raskas joined channel #puppet | ||
| [2010/02/18 03:19:30] @ Quit: Ramonster: Ping timeout: 240 seconds | ||
| [2010/02/18 03:23:20] <raskas> Hi All, I receive following error: | ||
| [2010/02/18 03:23:20] <raskas> warning: Configuration could not be instantiated: Could not find dependent Network::reloadif[test] for File[ifcfg-bond0.3] at /etc/puppet/manifests/site.pp:34 | ||
| [2010/02/18 03:23:47] <raskas> what causes this error? | ||
| [2010/02/18 03:24:17] <monachus> raskas: do you have something like require => Network::reloadif[test] in the block that ends at line 34 of site.pp? | ||
| [2010/02/18 03:24:36] <raskas> notify => Network::Reloadif["test"], | ||
| [2010/02/18 03:25:00] <monachus> ok - at the time that it processes that block, it has no idea what Network::Reloadif["test"] is | ||
| [2010/02/18 03:25:14] <monachus> not sure why you have this in site.pp - it sounds like something better suited for a module | ||
| [2010/02/18 03:25:29] <raskas> I import the file containing the network class at the top of site.pp | ||
| [2010/02/18 03:25:40] <raskas> do I need to include the network class ? | ||
| [2010/02/18 03:25:53] <monachus> puppet processes things top-down, so if you reference something before it's included, it'll error out | ||
| [2010/02/18 03:26:12] <monachus> defines make that easier - they act like functions so you can compile everything and then call it in (almost) any order | ||
| [2010/02/18 03:26:58] <raskas> the reloadif is a define in the network class | ||
| [2010/02/18 03:27:18] <monachus> then it hasn't been included yet | ||
| [2010/02/18 03:27:36] <raskas> if i call the network::reload outside the file { } it works | ||
| [2010/02/18 03:28:56] <monachus> can you pastie up your class files? | ||
| [2010/02/18 03:29:15] @ Quit: Djelibeybi: Quit: Leaving | ||
| [2010/02/18 03:31:39] <raskas> http://pastebin.com/dc84d4f9 | ||
| [2010/02/18 03:33:03] <raskas> it's puppet 0.24.8 | ||
| [2010/02/18 03:36:53] @ Ramonster joined channel #puppet | ||
| [2010/02/18 03:38:18] @ Quit: vzctl_: Read error: Operation timed out | ||
| [2010/02/18 03:39:24] @ Quit: xerxas: Quit: Leaving. | ||
| [2010/02/18 03:39:26] @ vzctl_ joined channel #puppet | ||
| [2010/02/18 03:43:18] @ Quit: bda: Ping timeout: 256 seconds | ||
| [2010/02/18 03:44:08] @ bda joined channel #puppet | ||
| [2010/02/18 03:45:38] @ Quit: agaffney: Ping timeout: 246 seconds | ||
| [2010/02/18 03:46:41] * monachus looks | ||
| [2010/02/18 03:46:56] @ verwilst joined channel #puppet | ||
| [2010/02/18 03:47:15] <monachus> is the class conmsdevice inside of site.pp? or in some external file? | ||
| [2010/02/18 03:48:29] <monachus> interesting. there are a few things that jump out at me | ||
| [2010/02/18 03:48:34] <monachus> first, you can't send a notify to a define | ||
| [2010/02/18 03:49:36] <monachus> you can have a service or an exec and send the notify there | ||
| [2010/02/18 03:49:53] <monachus> so if everything is loading and parding, you could do something like....(one sec while i pastie it) | ||
| [2010/02/18 03:50:59] @ bodepd left channel #puppet () | ||
| [2010/02/18 03:51:01] <monachus> http://pastebin.com/m160d2dab | ||
| [2010/02/18 03:51:21] <monachus> (that was supposed to be "parsing" above) | ||
| [2010/02/18 03:51:49] <monachus> second, if your class is inside of site.pp, i would recommend moving it to an external file/module like in wiki:ModuleOrganization | ||
| [2010/02/18 03:52:16] <monachus> heh - wiki:ModuleOrganisation | ||
| [2010/02/18 03:52:17] <gepetto> monachus: wiki:ModuleOrganisation is http://reductivelabs.com/trac/puppet/wiki/ModuleOrganisation | ||
| [2010/02/18 03:52:31] <monachus> raskas: hope that helps | ||
| [2010/02/18 03:56:38] <raskas> ok, I will verify | ||
| [2010/02/18 03:56:43] <raskas> monachus: thx! | ||
| [2010/02/18 03:56:49] <monachus> np. :) | ||
| [2010/02/18 03:59:54] @ agaffney joined channel #puppet | ||
| [2010/02/18 04:03:47] <raskas> monachus: the code you pasted doesn't allow me to pass arguments | ||
| [2010/02/18 04:04:05] @ Quit: littleidea: Quit: littleidea | ||
| [2010/02/18 04:11:16] @ MattyM joined channel #puppet | ||
| [2010/02/18 04:15:46] @ Robbie_ joined channel #puppet | ||
| [2010/02/18 04:26:35] @ |Mike| joined channel #puppet | ||
| [2010/02/18 04:30:52] @ benlovell joined channel #puppet | ||
| [2010/02/18 04:31:20] @ Spruit_elf joined channel #puppet | ||
| [2010/02/18 04:33:09] @ mfournier joined channel #puppet | ||
| [2010/02/18 04:36:22] @ nwp joined channel #puppet | ||
| [2010/02/18 04:36:55] @ bevans5446 joined channel #puppet | ||
| [2010/02/18 04:38:13] @ yarihm joined channel #puppet | ||
| [2010/02/18 04:38:47] @ alban2 joined channel #puppet | ||
| [2010/02/18 04:39:26] @ zipkid_ is now known as zipkid | ||
| [2010/02/18 04:39:58] <tim|imac> aargh... I don't get this error: http://pastie.org/830445 | ||
| [2010/02/18 04:40:02] <tim|imac> anyone any idea? | ||
| [2010/02/18 04:40:07] <tim|imac> it looks okay to me? | ||
| [2010/02/18 04:40:14] <tim|imac> I'm probably overlooking something... | ||
| [2010/02/18 04:40:51] <asenchi> tim|imac: you need a '=>' before the $target ? param | ||
| [2010/02/18 04:41:04] <asenchi> so: $target_service => $target ? { | ||
| [2010/02/18 04:41:06] <asenchi> i think that's it | ||
| [2010/02/18 04:41:08] <tim|imac> argh! thx, i knew i was overlooking something | ||
| [2010/02/18 04:41:15] <tim|imac> silly error message, though | ||
| [2010/02/18 04:41:45] <asenchi> i've found most syntax errors always come with silly error messages :) | ||
| [2010/02/18 04:41:57] * tim|imac is filing a bug report for that | ||
| [2010/02/18 04:42:19] <monachus> raskas: pass arguments to what? | ||
| [2010/02/18 04:42:28] <monachus> you don't pass arguments using a notify | ||
| [2010/02/18 04:42:40] <monachus> notify says "if you would restart something - i'm instructing you to do so" | ||
| [2010/02/18 04:42:42] @ mattwynne joined channel #puppet | ||
| [2010/02/18 04:43:00] <monachus> or "if you would run (exec), please do so now" | ||
| [2010/02/18 04:43:22] <monachus> it's the opposite of subscribe - an Exec can subscribe to a file, and if the file changes, the exec will run | ||
| [2010/02/18 04:43:34] <monachus> notify allows other things to tell the exec to run without it being subscribed | ||
| [2010/02/18 04:43:57] <raskas> yes but the exec is almost identical for several instances | ||
| [2010/02/18 04:44:09] <raskas> so i have to created 5 exec's with a small changes | ||
| [2010/02/18 04:44:22] <monachus> or make it dynamic | ||
| [2010/02/18 04:44:22] <raskas> so it would be better to create 1 exec with an argument | ||
| [2010/02/18 04:45:40] <monachus> ok - let me pastie up an example of a way i think it can be done. give me a couple mins | ||
| [2010/02/18 04:48:10] @ Quit: snerd: Remote host closed the connection | ||
| [2010/02/18 04:54:20] <monachus> take a look at http://pastebin.com/m1a9ca406 | ||
| [2010/02/18 04:54:50] <monachus> i'm sort of guessing at what your intent is, but this sets up a define that has the variables, so all you're doing is calling the define. it handles changing the file (or not) and then calling the exec if the file changed | ||
| [2010/02/18 04:55:42] <raskas> ok indeed | ||
| [2010/02/18 04:56:03] <raskas> got the point | ||
| [2010/02/18 04:56:21] <monachus> cool | ||
| [2010/02/18 04:56:27] <raskas> I will see if I can do it like that | ||
| [2010/02/18 04:56:40] <raskas> monachus: thanks for the help and input! | ||
| [2010/02/18 04:56:43] <monachus> basically anytime you find yourself writing the same code in many places, look for a way to abstract that into a define, parent class, or something. | ||
| [2010/02/18 04:56:59] <monachus> good luck - let me know if i can help out | ||
| [2010/02/18 04:57:32] <monachus> (my command => is missing trailing " - i didn't really proof this for syntax errors | ||
| [2010/02/18 04:57:39] <monachus> :) ) | ||
| [2010/02/18 05:01:47] <zeroXten> wiki broken again? | ||
| [2010/02/18 05:03:13] <nico> seems so... | ||
| [2010/02/18 05:04:09] <zeroXten> well, there goes my productivity for the next hour ;) | ||
| [2010/02/18 05:10:39] <tim|imac> zeroXten: you know about docs.reductivelabs.com? | ||
| [2010/02/18 05:10:58] <tim|imac> that seems to be more stable than the wiki :) | ||
| [2010/02/18 05:11:18] <tim|imac> also, wiki seems to work for me? | ||
| [2010/02/18 05:17:05] <Cope> How do you chaps manage file acess control lists? (ie setfacl stuff)? I don't see any types for this... are you just exec-ing it? | ||
| [2010/02/18 05:19:42] <tim|imac> Cope: we're indeed exec-ing it, but if we used it more, I'd probably incorporate something in our configfile{} (which is a wrapper around file{}) | ||
| [2010/02/18 05:27:39] @ jab_doa joined channel #puppet | ||
| [2010/02/18 05:28:19] <tim|imac> what's the best way to monitor if the contents of a directory has changed to notify a service? checksum => "mtime", recurse => true? | ||
| [2010/02/18 05:42:45] <jmeeuwen> have the file resource for the directory notify the service? | ||
| [2010/02/18 05:43:16] <jmeeuwen> or, have the service subscribe on the file resource for the directory | ||
| [2010/02/18 05:49:48] <tim|imac> yeah, I have the file resource notify the service, but should I use mtime checksumming and recurse? or is that not needed for reliable operation? | ||
| [2010/02/18 05:51:10] <tim|imac> or should I use md5 checksumming? | ||
| [2010/02/18 05:54:58] @ artista_frustrad joined channel #puppet | ||
| [2010/02/18 06:00:36] @ Quit: artista_frustrad: Ping timeout: 272 seconds | ||
| [2010/02/18 06:25:12] @ Quit: tripoux: Remote host closed the connection | ||
| [2010/02/18 06:37:55] @ rmayr joined channel #puppet | ||
| [2010/02/18 06:40:04] <tim|imac> anyone with ruby knowledge want to help this non-ruby dev with a function he's trying to create? I think I have most, but puppet doesn't seem to be able to use the function... | ||
| [2010/02/18 06:40:58] <tim|imac> http://pastie.org/830544 | ||
| [2010/02/18 06:41:14] <tim|imac> I probable need to escape those ' or the $ or the {}? | ||
| [2010/02/18 06:46:36] <zeroXten> tim|imac: it was actually DownloadingPupppet which i needed access to ;) | ||
| [2010/02/18 06:46:57] @ raskas left channel #puppet () | ||
| [2010/02/18 06:47:54] @ warreng joined channel #puppet | ||
| [2010/02/18 06:49:44] @ Quit: monachus: Ping timeout: 252 seconds | ||
| [2010/02/18 06:50:16] @ monachus joined channel #puppet | ||
| [2010/02/18 06:50:50] @ Quit: maxagaz: Ping timeout: 252 seconds | ||
| [2010/02/18 06:50:51] @ Quit: euclid: Ping timeout: 252 seconds | ||
| [2010/02/18 06:51:07] @ euclid joined channel #puppet | ||
| [2010/02/18 06:52:20] <zeroXten> is it best installing puppet from source, debian stable or debian backports? i'm guessing backports | ||
| [2010/02/18 06:53:56] <tim|imac> we're actually using the package from unstable :) | ||
| [2010/02/18 06:54:18] <zeroXten> oh? how come? | ||
| [2010/02/18 06:54:36] <Cope> zeroXten: it's only ruby | ||
| [2010/02/18 06:54:55] <Cope> build your own package or use what's in sid | ||
| [2010/02/18 06:55:44] <ashp> install netbsd, cross-compile ruby, move that to a windows box, install gcc, re-crosscompile ruby for debian, then move puppet to debian | ||
| [2010/02/18 06:55:56] <tim|imac> hm... my function actually seems to work... however, I'm still getting "Unknown function debversion" | ||
| [2010/02/18 07:04:16] <tim|imac> ah damn, i get it... I'll have to make it a fact | ||
| [2010/02/18 07:04:29] @ Quit: sjefen6_: Quit: http://quassel-irc.org - Chat komfortabelt. Hvor som helst. | ||
| [2010/02/18 07:04:50] @ sjefen6 joined channel #puppet | ||
| [2010/02/18 07:06:20] @ maxagaz joined channel #puppet | ||
| [2010/02/18 07:08:08] <tim|imac> are facts cached or rerun every time there's a puppetrun? | ||
| [2010/02/18 07:09:54] <jmeeuwen> they are supposed to rerun | ||
| [2010/02/18 07:10:37] <tim|imac> ok | ||
| [2010/02/18 07:11:41] <zeroXten> huh.. it wants to upgrade libc | ||
| [2010/02/18 07:12:36] <jmeeuwen> nice ;-) | ||
| [2010/02/18 07:14:42] @ Quit: erlingre: Ping timeout: 240 seconds | ||
| [2010/02/18 07:16:07] <zeroXten> ah no, somewhat unrelated ;) libc needs updating anyway | ||
| [2010/02/18 07:16:33] @ fred joined channel #puppet | ||
| [2010/02/18 07:19:50] <tim|imac> zeroXten: ouch... that one's a month old :) | ||
| [2010/02/18 07:21:23] <zeroXten> its a dev vm | ||
| [2010/02/18 07:30:33] <zeroXten> nope.. still needs to update libc | ||
| [2010/02/18 07:34:26] <zeroXten> whatever... | ||
| [2010/02/18 07:36:14] @ Quit: Eghie: Ping timeout: 272 seconds | ||
| [2010/02/18 07:36:55] @ manish__ joined channel #puppet | ||
| [2010/02/18 07:37:47] @ bug joined channel #puppet | ||
| [2010/02/18 07:38:27] @ zz_RedPepper is now known as RedPepper | ||
| [2010/02/18 07:39:58] @ Quit: m1nish: Ping timeout: 252 seconds | ||
| [2010/02/18 07:45:50] <robinbowes> Anyone using puppet on Solaris? | ||
| [2010/02/18 07:47:56] @ jcape joined channel #puppet | ||
| [2010/02/18 07:49:36] @ Eghie joined channel #puppet | ||
| [2010/02/18 07:54:01] @ Welsh_Dwarf joined channel #puppet | ||
| [2010/02/18 07:54:36] @ Quit: Eghie: Ping timeout: 272 seconds | ||
| [2010/02/18 07:56:37] @ sparagos_away is now known as sparagos | ||
| [2010/02/18 07:56:42] @ kjetilho joined channel #puppet | ||
| [2010/02/18 07:57:17] <kjetilho> hello. I have a problem that notify => Exec just gets scheduled | ||
| [2010/02/18 07:57:37] <kjetilho> I want it to be done "immediately" afterwards. how can I specify this? | ||
| [2010/02/18 07:58:47] @ Quit: warreng: Quit: warreng | ||
| [2010/02/18 07:59:55] @ Quit: manish__: Ping timeout: 240 seconds | ||
| [2010/02/18 08:00:28] @ warreng joined channel #puppet | ||
| [2010/02/18 08:03:52] @ RedPepper is now known as zz_RedPepper | ||
| [2010/02/18 08:03:57] @ Quit: rmayr: Remote host closed the connection | ||
| [2010/02/18 08:16:53] @ Quit: alban2: Ping timeout: 246 seconds | ||
| [2010/02/18 08:19:23] @ alban2 joined channel #puppet | ||
| [2010/02/18 08:21:36] <agaffney> kjetilho: I don't think you can | ||
| [2010/02/18 08:21:47] @ Quit: skiold: Quit: skiold | ||
| [2010/02/18 08:22:46] <kjetilho> no, it seems hard | ||
| [2010/02/18 08:22:51] @ xerxas joined channel #puppet | ||
| [2010/02/18 08:23:05] <kjetilho> the specific problem is the installation of sources.list, which needs apt-get update to run before packages are evaluated | ||
| [2010/02/18 08:23:12] @ Quit: benlovell: Quit: benlovell | ||
| [2010/02/18 08:23:13] @ rmayr joined channel #puppet | ||
| [2010/02/18 08:23:25] <agaffney> kjetilho: I've seen other people ask about that | ||
| [2010/02/18 08:23:29] <kjetilho> my best idea is Package { require => Exec["apt-get update"] } | ||
| [2010/02/18 08:23:42] <agaffney> yep, that was the proposed solution I remember | ||
| [2010/02/18 08:23:46] <kjetilho> this means apt-get update will be run on every run, I think | ||
| [2010/02/18 08:24:07] <agaffney> you can put a few "sanity checks" in there like: | ||
| [2010/02/18 08:25:32] <agaffney> exec { "apt-get update": command => "find /etc/apt -mmin -2 && apt-get update" } | ||
| [2010/02/18 08:25:41] <agaffney> that command won't work as-is, but you get the point | ||
| [2010/02/18 08:26:03] <kjetilho> yeah, but I'm not sure it will save any resources | ||
| [2010/02/18 08:26:12] <agaffney> why wouldn't it? | ||
| [2010/02/18 08:26:29] <kjetilho> well, ok. but apt-get update isn't that expensive anyway | ||
| [2010/02/18 08:26:34] <agaffney> it'll only run apt-get update if a file in /etc/apt has changed in the last 2 minutes (during the current puppet run) | ||
| [2010/02/18 08:26:47] @ Quit: rmayr: Read error: Connection reset by peer | ||
| [2010/02/18 08:34:21] @ Eghie joined channel #puppet | ||
| [2010/02/18 08:35:12] <arj__> egbert? | ||
| [2010/02/18 08:41:15] <tim|imac> agaffney: that's a nice exec... going to implement that too :) | ||
| [2010/02/18 08:42:06] @ lak joined channel #puppet | ||
| [2010/02/18 08:42:06] @ Quit: drebs: Ping timeout: 272 seconds | ||
| [2010/02/18 08:42:43] @ artista_frustrad joined channel #puppet | ||
| [2010/02/18 08:49:49] @ Quit: jcape: Remote host closed the connection | ||
| [2010/02/18 08:50:13] @ jcape joined channel #puppet | ||
| [2010/02/18 08:52:32] @ Bass10 joined channel #puppet | ||
| [2010/02/18 08:54:57] @ zz_RedPepper is now known as RedPepper | ||
| [2010/02/18 08:55:33] @ fzzzt joined channel #puppet | ||
| [2010/02/18 08:59:55] <tim|imac> hm... any way to prevent "notice: //apt/Exec[apt-get update]/returns: executed successfully" from showing every run? | ||
| [2010/02/18 08:59:58] @ ahasenack joined channel #puppet | ||
| [2010/02/18 09:00:06] @ Quit: jcape: Read error: Operation timed out | ||
| [2010/02/18 09:02:40] @ TREllis joined channel #puppet | ||
| [2010/02/18 09:04:12] <kjetilho> tim|imac: I suggest you use -cmin rather than -mmin | ||
| [2010/02/18 09:04:29] <kjetilho> I'm not sure if Puppet preserves timestamps for source-based files, but I think so | ||
| [2010/02/18 09:04:42] <tim|imac> kjetilho: nah, we decided to just run apt-get update every puppetrun, doesn't add too much overhead | ||
| [2010/02/18 09:04:57] <tim|imac> since apt-get works nicely with http status codes en modified since headers and the lot | ||
| [2010/02/18 09:04:59] <kjetilho> tim|imac: how do you force it to happen first? | ||
| [2010/02/18 09:05:26] <tim|imac> package { "bla": ... require => Exec["apt-get update"] } | ||
| [2010/02/18 09:05:31] <kjetilho> ok | ||
| [2010/02/18 09:05:40] <tim|imac> we have a define we use instead of package, though, so it's easy to add | ||
| [2010/02/18 09:05:49] <SyTonnerre> Hm | ||
| [2010/02/18 09:05:57] <tim|imac> and I suspect you could just set a default? | ||
| [2010/02/18 09:06:15] <SyTonnerre> By the way: is there an easy way to tell Puppet to do something on request (using notify =>) and at maximum every n days? | ||
| [2010/02/18 09:06:25] <kjetilho> schedule? | ||
| [2010/02/18 09:06:35] @ Quit: swygue: Quit: Ex-Chat | ||
| [2010/02/18 09:06:37] @ shenson joined channel #puppet | ||
| [2010/02/18 09:06:43] <SyTonnerre> Last time I tried that, notify would not work outside the schedule | ||
| [2010/02/18 09:06:53] <tim|imac> or keep an on disk 'timestamp-last-run' and check that in the exec | ||
| [2010/02/18 09:07:27] <kjetilho> seems like an odd requirement, though | ||
| [2010/02/18 09:07:49] @ Quit: fsweetser: Remote host closed the connection | ||
| [2010/02/18 09:07:49] <SyTonnerre> Not really | ||
| [2010/02/18 09:07:59] <SyTonnerre> Think of apt-get update for example | ||
| [2010/02/18 09:08:00] <fzzzt> morning | ||
| [2010/02/18 09:08:13] <SyTonnerre> You may want to do that 1. when the package lists change and 2. once per day | ||
| [2010/02/18 09:08:30] @ Quit: erm_: Quit: leaving | ||
| [2010/02/18 09:08:38] @ erm_ joined channel #puppet | ||
| [2010/02/18 09:08:45] <SyTonnerre> I have the same problem with DNSSEC zone signing right now. I want to sign a zone when it was modified, and I also want to sign it weekly. | ||
| [2010/02/18 09:09:07] <kjetilho> right. so you want two triggers | ||
| [2010/02/18 09:09:28] <kjetilho> one unconditional every week, and one every time it changes | ||
| [2010/02/18 09:09:30] @ Quit: xcrracer_: Remote host closed the connection | ||
| [2010/02/18 09:09:30] <SyTonnerre> But wouldn't you agree that it sucks to have two command definitions running the same command? | ||
| [2010/02/18 09:09:51] <kjetilho> ah, but you don't need to duplicate the command | ||
| [2010/02/18 09:09:53] @ Quit: xerxas: Ping timeout: 260 seconds | ||
| [2010/02/18 09:10:34] <SyTonnerre> How would I not? If I add the schedule => it stops working correctly on notify => | ||
| [2010/02/18 09:11:04] <kjetilho> you add a shim command | ||
| [2010/02/18 09:11:19] <kjetilho> which requires the full command, but with a schedule | ||
| [2010/02/18 09:11:41] @ fsweetser joined channel #puppet | ||
| [2010/02/18 09:11:43] <SyTonnerre> Hrm, although that might work, it sounds just odd | ||
| [2010/02/18 09:12:04] <kjetilho> better than using timestamp files, though? | ||
| [2010/02/18 09:12:13] <SyTonnerre> Sure | ||
| [2010/02/18 09:13:38] @ jmccune joined channel #puppet | ||
| [2010/02/18 09:16:06] <kjetilho> hmm. the Package { require => Exec } trick won't work, since the exec may run first of all | ||
| [2010/02/18 09:16:24] <kjetilho> urk. | ||
| [2010/02/18 09:20:02] @ xerxas joined channel #puppet | ||
| [2010/02/18 09:22:09] <kjetilho> is there a better way to look for updated files than "find ... | grep ." ? | ||
| [2010/02/18 09:22:39] <tim|imac> kjetilho: what do you mean, may run first of all? | ||
| [2010/02/18 09:22:53] @ Quit: jmeeuwen: Quit: Disconnecting from stoned server. | ||
| [2010/02/18 09:23:08] <kjetilho> tim|imac: it may run before the new sources.list file is installed | ||
| [2010/02/18 09:23:26] @ jmeeuwen joined channel #puppet | ||
| [2010/02/18 09:23:30] @ kaptk2 joined channel #puppet | ||
| [2010/02/18 09:23:36] <tim|imac> kjetilho: not if you notify apt-get update from the sources.list def | ||
| [2010/02/18 09:24:02] <kjetilho> tim|imac: hmmm... I doubt that it helps | ||
| [2010/02/18 09:24:17] <kjetilho> that only guarantees it will run "sometime", I think | ||
| [2010/02/18 09:24:51] <tim|imac> i believe it's an ordering mechanism... i might be wrong though, but never saw apt-get update run twice in the same run | ||
| [2010/02/18 09:24:53] <kjetilho> it's hard to test these things since there's an element of chance | ||
| [2010/02/18 09:25:41] <tim|imac> and it would be fairly useless if you notified from the sources.list def and got apt-get update to run before the file was changed :) | ||
| [2010/02/18 09:26:31] <kjetilho> well, is there this strong abhorrence against running a command twice? | ||
| [2010/02/18 09:28:13] <tim|imac> i think it's a general resource and i believe puppet makes sure resources are only applied once | ||
| [2010/02/18 09:28:17] <tim|imac> but as i said, i might be wrong | ||
| [2010/02/18 09:28:27] <kjetilho> thanks, I'll try to do some tests | ||
| [2010/02/18 09:28:36] <tim|imac> never seen an exec run twice in one run, though | ||
| [2010/02/18 09:28:45] <tim|imac> would fairly mess up my stuff if it did | ||
| [2010/02/18 09:29:59] @ Quit: brothers_: Read error: Connection reset by peer | ||
| [2010/02/18 09:30:19] @ brothers joined channel #puppet | ||
| [2010/02/18 09:31:47] @ Quit: erm_: Ping timeout: 246 seconds | ||
| [2010/02/18 09:32:05] @ yarihm left channel #puppet ("Leaving") | ||
| [2010/02/18 09:35:40] <kjetilho> tim|imac: hey, it does seem to work! :-) | ||
| [2010/02/18 09:35:50] <kjetilho> even with refreshonly => true in the exec | ||
| [2010/02/18 09:36:10] <tim|imac> won't packages be only installed them if the exec actually runs? | ||
| [2010/02/18 09:36:25] <kjetilho> no | ||
| [2010/02/18 09:37:10] <tim|imac> awesome | ||
| [2010/02/18 09:38:57] @ xcrracer_ joined channel #puppet | ||
| [2010/02/18 09:38:59] @ afletcher joined channel #puppet | ||
| [2010/02/18 09:39:31] @ erm_ joined channel #puppet | ||
| [2010/02/18 09:39:56] <fzzzt> can definitions inherit from other definitions? | ||
| [2010/02/18 09:42:28] @ Quit: lak: Quit: lak | ||
| [2010/02/18 09:45:20] @ cliff-hm joined channel #puppet | ||
| [2010/02/18 09:50:13] @ Quit: Spruit_elf: Quit: Spruit_elf | ||
| [2010/02/18 09:54:15] @ swygue joined channel #puppet | ||
| [2010/02/18 09:57:48] @ Quit: kolla: Remote host closed the connection | ||
| [2010/02/18 09:58:15] @ Quit: erm_: Ping timeout: 240 seconds | ||
| [2010/02/18 10:00:22] @ erm_ joined channel #puppet | ||
| [2010/02/18 10:02:56] @ bobbyz joined channel #puppet | ||
| [2010/02/18 10:10:57] @ Quit: ahuman: Read error: Connection reset by peer | ||
| [2010/02/18 10:11:05] @ ahuman joined channel #puppet | ||
| [2010/02/18 10:11:13] <jmccune> fzzzt: They can define or declare other definitions, but not inherit in the class sense | ||
| [2010/02/18 10:11:32] <jmccune> fzzzt: You probably want them to only declare things though | ||
| [2010/02/18 10:12:55] @ skiold joined channel #puppet | ||
| [2010/02/18 10:17:21] @ themurph joined channel #puppet | ||
| [2010/02/18 10:17:35] @ p3rror joined channel #puppet | ||
| [2010/02/18 10:18:05] <fzzzt> I was hoping to inherit the params of the parent | ||
| [2010/02/18 10:18:35] @ Quit: themurph: Remote host closed the connection | ||
| [2010/02/18 10:19:23] <zeroXten> at what point would i expect to see the puppet client's certificate in client:/etc/puppet/ssl/certs/? | ||
| [2010/02/18 10:19:33] <zeroXten> it only has the ca.pem in there atm | ||
| [2010/02/18 10:19:59] <fzzzt> The first time it's run it should generate the cert by default | ||
| [2010/02/18 10:20:39] <zeroXten> it generated the csr, which i signed.. then the ca.pem appeared, and the master as a client cert | ||
| [2010/02/18 10:21:16] @ themurph joined channel #puppet | ||
| [2010/02/18 10:21:29] <Volcane> if you sign on the master and run the client again, it will get the signed cert | ||
| [2010/02/18 10:23:05] <zeroXten> hmm, i think i've broken something ;) | ||
| [2010/02/18 10:24:08] <fzzzt> hrm | ||
| [2010/02/18 10:24:26] <fzzzt> shouldn't I be able to do require += [ Class["..."] ], in a file {}? | ||
| [2010/02/18 10:24:39] <fzzzt> or is that the wrong syntax | ||
| [2010/02/18 10:24:41] <tim|imac> +=> | ||
| [2010/02/18 10:24:43] <tim|imac> +> | ||
| [2010/02/18 10:24:47] <fzzzt> doh | ||
| [2010/02/18 10:25:03] <sts> hello folks. | ||
| [2010/02/18 10:25:21] <fzzzt> lo | ||
| [2010/02/18 10:25:49] <sts> is there a way to prevent puppet from failing because there are not all updates installed on a system? | ||
| [2010/02/18 10:26:11] @ mal joined channel #puppet | ||
| [2010/02/18 10:27:03] <fzzzt> hrm +> doesn't work either | ||
| [2010/02/18 10:27:06] <fzzzt> wth | ||
| [2010/02/18 10:27:23] <mal> hello. I want to know if I can conditionally install a package (I want to check if the package exists in the package database of the OS before installing it), is it possible ? | ||
| [2010/02/18 10:28:18] @ Quit: erm_: Ping timeout: 240 seconds | ||
| [2010/02/18 10:29:46] @ incommon_ike joined channel #puppet | ||
| [2010/02/18 10:32:38] @ Sjampoo joined channel #puppet | ||
| [2010/02/18 10:34:18] <Sjampoo> I am trying to bend my mind around puppet. When I put a secret/password in a variable in site.pp and a client/appliance/node does NOT use that variable there is no way that client can view that variable, right? | ||
| [2010/02/18 10:34:25] @ brhelwig joined channel #puppet | ||
| [2010/02/18 10:34:33] <Sjampoo> Or, what is the best way to share 'secrets' with specific client? | ||
| [2010/02/18 10:35:12] @ Quit: brhelwig: Remote host closed the connection | ||
| [2010/02/18 10:35:19] <nico> Sjampoo: how could the client see what is not in its scope ? | ||
| [2010/02/18 10:35:33] <kjetilho> if it's in site.pp, it's in the client's scope | ||
| [2010/02/18 10:36:09] <nico> putting vars in site.pp is not a good idea even, extlookup is the way of enlightenment | ||
| [2010/02/18 10:36:10] @ brhelwig joined channel #puppet | ||
| [2010/02/18 10:36:11] <Volcane> extlookup with fqdn data files is fairly safe | ||
| [2010/02/18 10:36:36] <Sjampoo> ah thanks | ||
| [2010/02/18 10:36:38] <Sjampoo> ill look at that | ||
| [2010/02/18 10:36:46] * nico <= extensive user of extlookup | ||
| [2010/02/18 10:37:38] <Sjampoo> I just thought that the puppetmaster compiles the configuration for each specific client instead of transmitting the complete site.pp file. | ||
| [2010/02/18 10:38:04] <brhelwig> hey all. I'm just getting started with puppet. i'm having issues getting the certs going. when i run puppetca --list i don't have any signing request, also the puppetmasterd is saying info: Could not find certificate for... any idea where I might start to t/s this? | ||
| [2010/02/18 10:38:04] <Volcane> it doesnt transmit site.pp it would be hard for someone remote to access those variables in site.pp | ||
| [2010/02/18 10:38:09] <Volcane> but its just not a good pattern | ||
| [2010/02/18 10:38:17] <Sjampoo> Volcane, thanks | ||
| [2010/02/18 10:38:39] <kjetilho> that is true. but I'm not sure you can't make a local .pp file which could get additional information from the master somehow? | ||
| [2010/02/18 10:38:58] <Volcane> it could fetch files, doubt it could gain access to variables | ||
| [2010/02/18 10:39:05] @ Quit: pacalm: Quit: pacalm | ||
| [2010/02/18 10:39:06] <kjetilho> not templates? | ||
| [2010/02/18 10:39:26] <Volcane> template will use a class scope - the way it works is the compiled catalog that goes to the client is post template building | ||
| [2010/02/18 10:39:26] <kjetilho> would be evaluated in a scope without the variable, anyhow | ||
| [2010/02/18 10:39:35] <Volcane> the variable doesnt go through the catalog only the result of the template does | ||
| [2010/02/18 10:40:16] @ Quit: bobbyz: Read error: Operation timed out | ||
| [2010/02/18 10:40:17] @ ckauhaus joined channel #puppet | ||
| [2010/02/18 10:41:07] <Volcane> it should be fine, but its not lke the REST API is documented right? | ||
| [2010/02/18 10:41:13] <Volcane> its a blackbox of not knowing | ||
| [2010/02/18 10:41:29] <mal> anyone knows how to solve my problem ? :) | ||
| [2010/02/18 10:41:51] @ Quit: mfournier: Ping timeout: 245 seconds | ||
| [2010/02/18 10:43:52] <inveratulo> mal - you mean like 'apt-get search <packagename>' | ||
| [2010/02/18 10:44:12] <fzzzt> should this work? require +> File["/usr/local/tomcat-${sanitized_instance_name}"], | ||
| [2010/02/18 10:44:12] <fzzzt> i get a syntax error at +> | ||
| [2010/02/18 10:44:58] @ Quit: verwilst: Quit: Ex-Chat | ||
| [2010/02/18 10:45:03] @ bobbyz joined channel #puppet | ||
| [2010/02/18 10:45:23] <mal> inveratulo: absolutely, having something like package { "foo" : ensure => installed, onlyif => "apt-cache show foo", } is the thing I need | ||
| [2010/02/18 10:46:26] <nico> mal: I suggest you vote for #651 | ||
| [2010/02/18 10:46:27] <gepetto> nico: mal: #651 is http://projects.reductivelabs.com/issues/show/651 "Puppet - Feature #651: Exec checks should be turned into metaparameters - ReductiveLabs.com" | ||
| [2010/02/18 10:48:21] <kjetilho> where do I configure access to fileserver.list? | ||
| [2010/02/18 10:48:53] <mal> inveratulo: any idea? :) | ||
| [2010/02/18 10:49:23] <fzzzt> Why doesn't ensure => installed work? | ||
| [2010/02/18 10:49:28] <fzzzt> for you | ||
| [2010/02/18 10:49:59] <nico> fzzzt: he does not want to get an error if the package does not exists | ||
| [2010/02/18 10:50:21] <inveratulo> mal: no, other than package managers are idempotent in the sense that all you get is wasted cycles if its already there | ||
| [2010/02/18 10:50:37] <inveratulo> that's sort of a non-answer tho, i'm still learning myself | ||
| [2010/02/18 10:50:39] <fzzzt> oh like not in any repo | ||
| [2010/02/18 10:50:46] <nico> fzzzt: yup | ||
| [2010/02/18 10:51:06] <mal> fzzzt: puppet ends up with an error if you try to install a non-existant package | ||
| [2010/02/18 10:51:14] <mal> (at least for Debian's apt) | ||
| [2010/02/18 10:51:18] <fzzzt> yeah | ||
| [2010/02/18 10:51:27] <fzzzt> you would have to use exec i think | ||
| [2010/02/18 10:51:47] <mal> it's an anti-puppet paradigm :) | ||
| [2010/02/18 10:53:34] <Sjampoo> Cool, extlookup looks nice, makes templates much clearer. | ||
| [2010/02/18 10:54:15] <fsweetser> inveratulo: you could always create a custom fact and key off of that | ||
| [2010/02/18 10:55:16] @ Quit: brhelwig: Quit: Bye! | ||
| [2010/02/18 10:55:21] @ Quit: bobbyz: Ping timeout: 260 seconds | ||
| [2010/02/18 10:55:33] <Sjampoo> Volcane, hmm can i store comments in the .csv file? | ||
| [2010/02/18 10:55:40] <Volcane> yeah | ||
| [2010/02/18 10:55:44] <Volcane> afaik | ||
| [2010/02/18 10:55:54] @ bobbyz joined channel #puppet | ||
| [2010/02/18 10:55:55] <Sjampoo> ill try that. | ||
| [2010/02/18 10:56:32] @ alfism joined channel #puppet | ||
| [2010/02/18 10:58:06] <mal> nico: how can I vote for #651 ? | ||
| [2010/02/18 10:58:07] <gepetto> mal: nico: #651 is http://projects.reductivelabs.com/issues/show/651 "Puppet - Feature #651: Exec checks should be turned into metaparameters - ReductiveLabs.com" | ||
| [2010/02/18 10:58:23] <nico> mal: register, and then click the green arrow | ||
| [2010/02/18 10:58:37] <mal> thx | ||
| [2010/02/18 11:02:25] @ incommon_ike is now known as ichristo | ||
| [2010/02/18 11:05:24] <Sjampoo> Volcane, oh your /that/ guy, from the Devco blog. Love your puppet articles, really cleared things up for me. | ||
| [2010/02/18 11:05:44] @ ichristo is now known as incommon_ike | ||
| [2010/02/18 11:05:56] <Volcane> hehe | ||
| [2010/02/18 11:06:02] * Volcane should change his nick to ripienaar | ||
| [2010/02/18 11:06:14] <Sjampoo> :D | ||
| [2010/02/18 11:06:41] @ incommon_ike is now known as ichristo | ||
| [2010/02/18 11:07:14] @ Quit: ichristo: Quit: ichristo | ||
| [2010/02/18 11:07:44] @ ichristo joined channel #puppet | ||
| [2010/02/18 11:10:59] @ Quit: zipkid: Remote host closed the connection | ||
| [2010/02/18 11:12:19] @ tmz_ is now known as tmz | ||
| [2010/02/18 11:14:46] @ mondopiccolo joined channel #puppet | ||
| [2010/02/18 11:16:36] <mondopiccolo> hello. I just started evaluating Puppet and I have a small questions. Is there a table displaying compatibilities between versions? We have mainly a mix of Debian Lenny and Etch and I would like to know if we can use Puppet 0.24.5 (as provided by Lenny) as server together with clients at 0.20.1 as provided by Etch | ||
| [2010/02/18 11:16:56] <Volcane> no you want all on the same version | ||
| [2010/02/18 11:17:20] <SyTonnerre> Oww, 0.20.1 | ||
| [2010/02/18 11:17:26] <SyTonnerre> That's really terrifying | ||
| [2010/02/18 11:19:12] @ ichristo left channel #puppet () | ||
| [2010/02/18 11:19:45] <mondopiccolo> can Puppet upgrade itself? How do you manage puppet upgrades? | ||
| [2010/02/18 11:20:06] <Volcane> usually yes, i run puppet from cron which helps smooth things over for self upgrades | ||
| [2010/02/18 11:21:41] @ eshamow joined channel #puppet | ||
| [2010/02/18 11:22:06] * tim|imac remembers reading somewhere that ruby has some sort of support for upgrading (ruby-based) software while still running? | ||
| [2010/02/18 11:22:11] <tim|imac> I might be wrong, though | ||
| [2010/02/18 11:22:31] @ littleidea joined channel #puppet | ||
| [2010/02/18 11:23:56] @ Quit: kaptk2: Ping timeout: 245 seconds | ||
| [2010/02/18 11:24:10] @ kaptk2 joined channel #puppet | ||
| [2010/02/18 11:24:52] @ Quit: littleidea: Client Quit | ||
| [2010/02/18 11:28:26] <shenson> does a class created in a template not inherit the scope of the template? | ||
| [2010/02/18 11:29:09] @ erm_ joined channel #puppet | ||
| [2010/02/18 11:29:40] @ Quit: mondopiccolo: Quit: Page closed | ||
| [2010/02/18 11:30:17] @ Quit: mqr: Quit: mqr | ||
| [2010/02/18 11:34:47] @ mkultras joined channel #puppet | ||
| [2010/02/18 11:36:15] @ lanky joined channel #puppet | ||
| [2010/02/18 11:37:09] @ Spruit_elf joined channel #puppet | ||
| [2010/02/18 11:38:22] <lanky> hi folks. Has anyone had any success managing /etc/sudoers using augeas and puppet? | ||
| [2010/02/18 11:38:43] * lanky keeps getting "change from need_to_run to 0 failed: Save failed with return code false" | ||
| [2010/02/18 11:39:06] <lanky> for anything at all that requires changes to the file | ||
| [2010/02/18 11:39:55] <tim|imac> there's a sudoers lens? | ||
| [2010/02/18 11:40:05] <lanky> there is. | ||
| [2010/02/18 11:40:25] <tim|imac> nice, didn't know that, still using line{} for that | ||
| [2010/02/18 11:40:31] <lanky> I had to submit a patch to add secure_path as an acceptable 'Defaults' option | ||
| [2010/02/18 11:40:38] <lanky> I think i may have been being daft. | ||
| [2010/02/18 11:41:05] @ Quit: ckauhaus: Read error: Operation timed out | ||
| [2010/02/18 11:41:10] <lanky> do file permissions affect the ability of puppet to change files on a client? I would assume not, but it's worth asking... | ||
| [2010/02/18 11:41:52] <lanky> ah, I see not. | ||
| [2010/02/18 11:42:33] @ skvidal joined channel #puppet | ||
| [2010/02/18 11:43:02] @ Quit: erm_: Quit: leaving | ||
| [2010/02/18 11:43:02] <skvidal> 'lo all - just wanted to confirm this - the CA inventory on the puppetmaster is the canonical list of hosts that puppet knows about | ||
| [2010/02/18 11:46:23] <fred> hey; what would be the best way to enforce a given posix ACL on a file using puppet? | ||
| [2010/02/18 11:48:50] @ littleidea joined channel #puppet | ||
| [2010/02/18 11:49:12] @ yarihm joined channel #puppet | ||
| [2010/02/18 11:52:45] <fzzzt> hmmm can you pass an array into a defintion? | ||
| [2010/02/18 11:53:11] <fzzzt> yeah | ||
| [2010/02/18 11:53:13] <fzzzt> duh | ||
| [2010/02/18 11:54:53] @ skvidal left channel #puppet ("Ex-Chat") | ||
| [2010/02/18 11:55:04] @ skvidal joined channel #puppet | ||
| [2010/02/18 11:55:36] @ eidolon joined channel #puppet | ||
| [2010/02/18 11:56:22] @ skvidal left channel #puppet ("Ex-Chat") | ||
| [2010/02/18 12:02:11] @ lilmatt joined channel #puppet | ||
| [2010/02/18 12:03:38] @ cwebber joined channel #puppet | ||
| [2010/02/18 12:05:45] * eidolon is slowly slowly understanding puppet. i think i need to unlearn the 'rdist' mindset. :-/ | ||
| [2010/02/18 12:08:33] @ toi joined channel #puppet | ||
| [2010/02/18 12:08:54] @ Quit: lanky: Remote host closed the connection | ||
| [2010/02/18 12:09:45] @ Quit: Welsh_Dwarf: Remote host closed the connection | ||
| [2010/02/18 12:13:02] @ teyo joined channel #puppet | ||
| [2010/02/18 12:13:39] @ Quit: MattyM: Quit: ta ta | ||
| [2010/02/18 12:14:46] @ Quit: Ramonster: Quit: Get MacIrssi - http://www.sysctl.co.uk/projects/macirssi/ | ||
| [2010/02/18 12:16:27] @ Quit: skiold: Quit: skiold | ||
| [2010/02/18 12:17:35] @ joe-mac joined channel #puppet | ||
| [2010/02/18 12:18:19] <eidolon> can i get a quick question answered? i'm still working through tutorials - but... is puppet a pull or push mechanism? My first impression is it's pull - the puppetd on the client machines pulls content based on the manifests... can i initiate a 'push' from the server when everything is in place? | ||
| [2010/02/18 12:19:26] <fzzzt> both | ||
| [2010/02/18 12:19:30] <fzzzt> normally it's pull | ||
| [2010/02/18 12:20:07] <fzzzt> puppetd pulls the configuration from puppetmasterd then applies it | ||
| [2010/02/18 12:20:10] <eidolon> *nod* okay. is the update instantaneous? i'm concerned about updates happening on a client machine while i'm still editing .pp files on the pupet server. | ||
| [2010/02/18 12:20:10] <fzzzt> (afaik) | ||
| [2010/02/18 12:20:37] <fzzzt> it's based on a timer | ||
| [2010/02/18 12:20:44] <fzzzt> in puppetd (unless you run it from cron) | ||
| [2010/02/18 12:21:00] <fzzzt> or push with puppetrun, which requires extra configuration | ||
| [2010/02/18 12:21:07] <wastrel> better would be to have a staging environment | ||
| [2010/02/18 12:21:29] <fzzzt> or use svn | ||
| [2010/02/18 12:21:36] <eidolon> hrm. | ||
| [2010/02/18 12:21:44] <eidolon> okay. i need to ponder this. but first i need to get some lunch. | ||
| [2010/02/18 12:21:46] <eidolon> bbiab. | ||
| [2010/02/18 12:21:49] <eidolon> thanks. | ||
| [2010/02/18 12:22:08] <fzzzt> gr ok how can i get tabs and newlines into a template | ||
| [2010/02/18 12:22:15] <fzzzt> e.g. this doesn't work: <%= collections.each { |collection| puts "\t#{collection}\n" } %> | ||
| [2010/02/18 12:23:02] @ labrown joined channel #puppet | ||
| [2010/02/18 12:23:23] <cwebber> so stupid question of the day... can a class inherit more than one class? ie class c inherits a and b | ||
| [2010/02/18 12:23:35] <fzzzt> no | ||
| [2010/02/18 12:23:49] <fzzzt> c -> a -> b yes but c -> a,b no, iirc | ||
| [2010/02/18 12:25:04] @ seanos joined channel #puppet | ||
| [2010/02/18 12:27:27] @ murkk joined channel #puppet | ||
| [2010/02/18 12:29:14] <sts> seen davidS | ||
| [2010/02/18 12:29:33] <sts> hm. no bot in here. | ||
| [2010/02/18 12:29:48] @ tonyskapunk joined channel #puppet | ||
| [2010/02/18 12:31:38] @ themurph-work joined channel #puppet | ||
| [2010/02/18 12:31:47] @ erlingre joined channel #puppet | ||
| [2010/02/18 12:31:51] <erlingre> join #cobbler | ||
| [2010/02/18 12:31:57] <erlingre> sorry | ||
| [2010/02/18 12:34:24] @ whiterocker_ joined channel #puppet | ||
| [2010/02/18 12:37:35] <whiterocker_> Does puppet support admin of linux capabilities (getcap/setcap)? Google is not providing me with an good hits. | ||
| [2010/02/18 12:39:11] @ bkohler joined channel #puppet | ||
| [2010/02/18 12:41:13] @ Quit: jaredrhine: Ping timeout: 264 seconds | ||
| [2010/02/18 12:42:28] <himanshu> how can I create puppet cache on client side | ||
| [2010/02/18 12:42:46] <himanshu> I mean how can I clean? | ||
| [2010/02/18 12:44:11] @ themurph left channel #puppet () | ||
| [2010/02/18 12:45:48] <himanshu> how can I update puppet cache on client side? | ||
| [2010/02/18 12:47:18] @ mqr joined channel #puppet | ||
| [2010/02/18 12:47:19] @ HouseAway is now known as DrHouseMD | ||
| [2010/02/18 12:48:31] <himanshu> ?? | ||
| [2010/02/18 12:49:19] <himanshu> ??? | ||
| [2010/02/18 12:50:40] <sts> himanshu: -- stop -- | ||
| [2010/02/18 12:50:49] @ Quit: mattwynne: Remote host closed the connection | ||
| [2010/02/18 12:51:25] @ Quit: tonyskapunk: Ping timeout: 264 seconds | ||
| [2010/02/18 12:51:34] <sts> himanshu: i _think_ you have to remove /var/lib/puppet/localconfig.yaml | ||
| [2010/02/18 12:53:16] @ Quit: cwebber: Quit: cwebber | ||
| [2010/02/18 12:53:24] @ Quit: mqr: Read error: Connection reset by peer | ||
| [2010/02/18 12:54:13] <himanshu> ok cool | ||
| [2010/02/18 12:54:16] @ mqr joined channel #puppet | ||
| [2010/02/18 12:54:46] @ Quit: Robbie_: Remote host closed the connection | ||
| [2010/02/18 12:54:51] <erlingre> anyone using both puppet and cobbler/rhn satellite/spacewalk in a manner where puppet is automatically activated during installation of a new server? | ||
| [2010/02/18 12:58:07] @ ckauhaus joined channel #puppet | ||
| [2010/02/18 12:58:50] @ mattwynne joined channel #puppet | ||
| [2010/02/18 12:59:06] @ cwebber joined channel #puppet | ||
| [2010/02/18 12:59:51] @ Quit: mqr: Ping timeout: 265 seconds | ||
| [2010/02/18 13:00:55] @ Quit: mattwynne: Remote host closed the connection | ||
| [2010/02/18 13:02:24] @ ohadlevy joined channel #puppet | ||
| [2010/02/18 13:02:36] @ mqr joined channel #puppet | ||
| [2010/02/18 13:02:45] @ WALoeIII joined channel #puppet | ||
| [2010/02/18 13:06:35] @ dano joined channel #puppet | ||
| [2010/02/18 13:07:26] @ Bryce_ joined channel #puppet | ||
| [2010/02/18 13:08:17] @ mqr_ joined channel #puppet | ||
| [2010/02/18 13:08:18] @ Quit: mqr: Read error: Connection reset by peer | ||
| [2010/02/18 13:11:26] @ jes5 joined channel #puppet | ||
| [2010/02/18 13:12:48] @ Quit: bkohler: Remote host closed the connection | ||
| [2010/02/18 13:12:54] @ fzzzt left channel #puppet () | ||
| [2010/02/18 13:16:27] @ Quit: littleidea: Quit: littleidea | ||
| [2010/02/18 13:19:30] @ Quit: xerxas: Ping timeout: 252 seconds | ||
| [2010/02/18 13:19:42] @ jbooth_ joined channel #puppet | ||
| [2010/02/18 13:20:35] @ Quit: eidolon: Quit: Leaving. | ||
| [2010/02/18 13:20:57] @ Quit: mqr_: Ping timeout: 260 seconds | ||
| [2010/02/18 13:21:08] <weaselkeeper> how do I revert a file that puppet changed ? (due to a bad config, or whatever) | ||
| [2010/02/18 13:22:14] <arj__> it can be backupped | ||
| [2010/02/18 13:22:17] <arj__> in the filebucket | ||
| [2010/02/18 13:22:46] <weaselkeeper> yes, but how do I get it back, short of diving into the filebucket manually? | ||
| [2010/02/18 13:23:46] @ Quit: cwebber: Quit: cwebber | ||
| [2010/02/18 13:24:08] @ Quit: mikepea: Quit: mikepea | ||
| [2010/02/18 13:24:11] @ cwebber joined channel #puppet | ||
| [2010/02/18 13:26:56] <ohadlevy> weaselkeeper: I find it faster to reinstall the host ;) | ||
| [2010/02/18 13:27:31] <weaselkeeper> that's ... disappointing :P | ||
| [2010/02/18 13:28:28] <ohadlevy> I think that there was a script to search the filebucket somehow, surely you can automate it | ||
| [2010/02/18 13:31:28] @ Quit: cwebber: Quit: cwebber | ||
| [2010/02/18 13:31:38] <Volcane> there's a filebucket script but u need to know the md5 you want to restore | ||
| [2010/02/18 13:31:50] <Volcane> so combined with the logfiles where the file was copied that would be usefu | ||
| [2010/02/18 13:32:33] @ Quit: swygue: Quit: Ex-Chat | ||
| [2010/02/18 13:32:51] <weaselkeeper> ah, filebucket restore md5sum will get the relevant file, if you know the md5sum :P | ||
| [2010/02/18 13:33:32] @ mattwynne joined channel #puppet | ||
| [2010/02/18 13:33:33] @ jaredrhine joined channel #puppet | ||
| [2010/02/18 13:33:58] <weaselkeeper> yep, that works for me, since the md5sum is recorded in the log. | ||
| [2010/02/18 13:33:59] <weaselkeeper> thanks | ||
| [2010/02/18 13:36:30] <ohadlevy> I thought that thats what you mean by "manual".. | ||
| [2010/02/18 13:37:42] <weaselkeeper> naw, I was looking at the filebucket dir structure, and going "wtf? there has to be an easy way to get this stuff" and filebucket is it! | ||
| [2010/02/18 13:38:06] <weaselkeeper> yes brethren, rather than wander into the wasteland of bucket/3/4/e/5/r/6//7/7 ... use filebucket | ||
| [2010/02/18 13:38:24] <Volcane> filebucket can also talk to remote buckets afaik | ||
| [2010/02/18 13:38:43] <weaselkeeper> yes, by default from the client, it will go to your puppetmaster/fileserver | ||
| [2010/02/18 13:38:47] <weaselkeeper> works great. | ||
| [2010/02/18 13:39:30] <Volcane> yeah eventmachine will be painful for what i need | ||
| [2010/02/18 13:39:31] <weaselkeeper> slowly, my puppet is coming together. We can finally get rid of the atrocious collection of crappy bash and perl scripts that push and control stuff. | ||
| [2010/02/18 13:39:32] <Volcane> oops | ||
| [2010/02/18 13:41:51] @ swygue joined channel #puppet | ||
| [2010/02/18 13:42:38] @ cwebber joined channel #puppet | ||
| [2010/02/18 13:45:46] @ swygue_ joined channel #puppet | ||
| [2010/02/18 13:46:04] @ Quit: swygue: Quit: Leaving. | ||
| [2010/02/18 13:46:32] <mattwynne> can anyone explain to me the difference between using source => template('foo') and source => "puppet:///files/foo" | ||
| [2010/02/18 13:46:46] @ kclark8211 joined channel #puppet | ||
| [2010/02/18 13:47:30] <fsweetser> template runs it as an erb program | ||
| [2010/02/18 13:47:50] <mattwynne> why would I want to use the fileserver? | ||
| [2010/02/18 13:47:56] <fsweetser> source just dumps the file as is | ||
| [2010/02/18 13:48:20] <mattwynne> I have some legacy code puppet code here that's using the fileserver but I can't undestand why | ||
| [2010/02/18 13:48:28] <mattwynne> seems unnecesarily complex to me | ||
| [2010/02/18 13:48:31] <fsweetser> why wouldn't it be using the fileserver? | ||
| [2010/02/18 13:48:36] <mattwynne> but I want to know if I'm missing something | ||
| [2010/02/18 13:49:41] <fsweetser> that's normally how you could copy a file from the puppetmaster out to the client | ||
| [2010/02/18 13:50:47] <mattwynne> fsweetser: you're saying using puppet:/// is the normal thing? | ||
| [2010/02/18 13:50:57] <fsweetser> if you just want to copy a file as is, yes | ||
| [2010/02/18 13:51:32] <mattwynne> ...and if I use template() instead, is there a disadvantage to me? | ||
| [2010/02/18 13:51:49] <fsweetser> at that point, you're not just copying a file down | ||
| [2010/02/18 13:52:03] <fsweetser> it actually runs the file as a program in the ruby interpreter, taking up more resources | ||
| [2010/02/18 13:52:15] <fsweetser> you also get different semantics if you specify multiple sources | ||
| [2010/02/18 13:52:21] <fsweetser> with source, it picks the first one that exists | ||
| [2010/02/18 13:52:26] <fsweetser> with template, it concatenates them all together | ||
| [2010/02/18 13:53:36] <mattwynne> thanks fsweetser | ||
| [2010/02/18 13:53:42] <fsweetser> no prob | ||
| [2010/02/18 13:54:02] <mattwynne> we're using multiple environments, so i have templatedir set differently for different envs | ||
| [2010/02/18 13:54:07] <mattwynne> the fileserver is ignoring that | ||
| [2010/02/18 13:54:11] <mattwynne> which is catching us out | ||
| [2010/02/18 13:55:18] <mattwynne> but I *think* that when I use template() it *does* respect the templatedir setting for the particular environment | ||
| [2010/02/18 13:55:29] <mattwynne> does that sound correct? | ||
| [2010/02/18 13:55:41] <fsweetser> not sure, to be honest - I haven't played with multiple environments myself | ||
| [2010/02/18 14:02:21] @ Alagar joined channel #puppet | ||
| [2010/02/18 14:02:21] @ Quit: Alagar: Excess Flood | ||
| [2010/02/18 14:05:17] @ Quit: lilmatt: Remote host closed the connection | ||
| [2010/02/18 14:05:49] @ lilmatt joined channel #puppet | ||
| [2010/02/18 14:06:23] <fred> Hi; I have a whole directory of files I'd like to sync (/etc/pam.d/) - any recommendations for the best way to do this? | ||
| [2010/02/18 14:06:43] @ Quit: Spruit_elf: Remote host closed the connection | ||
| [2010/02/18 14:06:55] <fsweetser> fred: use the file resource with recurse => true | ||
| [2010/02/18 14:07:01] @ Spruit_elf joined channel #puppet | ||
| [2010/02/18 14:07:05] <fred> ah, thanks | ||
| [2010/02/18 14:07:25] <joe-mac> i may write a pam type soon if i get off my lazy ass | ||
| [2010/02/18 14:07:33] <joe-mac> i've been meaning to do it for like a year | ||
| [2010/02/18 14:11:56] @ Alagar joined channel #puppet | ||
| [2010/02/18 14:14:49] @ Quit: ohadlevy: Ping timeout: 264 seconds | ||
| [2010/02/18 14:15:02] <fred> one other question; I'm replacing some files, how do I restart certain services if those files are altered? | ||
| [2010/02/18 14:16:32] <fred> nm, found it | ||
| [2010/02/18 14:16:57] @ ohadlevy joined channel #puppet | ||
| [2010/02/18 14:20:32] @ Quit: murkk: Quit: murkk | ||
| [2010/02/18 14:28:32] <tim|imac> if I put a require on an exported resource, the require is checked when the exported resource is collected and realized, right? or is it checked on the client that exports the resource? | ||
| [2010/02/18 14:29:18] @ xerxas joined channel #puppet | ||
| [2010/02/18 14:31:10] @ thrain][ joined channel #puppet | ||
| [2010/02/18 14:32:46] @ Quit: hamish: Remote host closed the connection | ||
| [2010/02/18 14:32:55] @ hamish joined channel #puppet | ||
| [2010/02/18 14:35:17] @ swygue joined channel #puppet | ||
| [2010/02/18 14:35:36] <elasticdog> is there something special you have to do to make variables assigned in a class to be available in a template? | ||
| [2010/02/18 14:36:48] <jrojas> elasticdog: you just need to know erb | ||
| [2010/02/18 14:36:56] <jrojas> <%= var_name %> | ||
| [2010/02/18 14:37:04] <elasticdog> got that | ||
| [2010/02/18 14:37:13] @ Chiku|dc joined channel #puppet | ||
| [2010/02/18 14:37:26] <jrojas> content => template("template_file_name") | ||
| [2010/02/18 14:38:12] @ paxos joined channel #puppet | ||
| [2010/02/18 14:40:39] <elasticdog> jrojas: http://pastie.org/831320 is a simplified version of what I have | ||
| [2010/02/18 14:40:45] @ Quit: Chiku: Ping timeout: 260 seconds | ||
| [2010/02/18 14:41:00] @ bodepd joined channel #puppet | ||
| [2010/02/18 14:41:32] @ Quit: mkultras: Quit: Lost terminal | ||
| [2010/02/18 14:41:46] <jrojas> elasticdog: look at variable scoping i think that may be your problem | ||
| [2010/02/18 14:42:45] <elasticdog> I'll look into it...thanks. I basically just need a nice way to change that according to OS | ||
| [2010/02/18 14:43:08] @ jfreeman joined channel #puppet | ||
| [2010/02/18 14:43:20] <jrojas> elasticdog: use a selector | ||
| [2010/02/18 14:43:35] <jrojas> elasticdog: $operatingsystem ? then this path, or this path etc.. | ||
| [2010/02/18 14:44:25] <elasticdog> jrojas: in this case though, I've got a bunch of variables...but you think if I put those in the postfix class itself (rather than the other OS-specific classes) I'll be better off? | ||
| [2010/02/18 14:45:11] <jrojas> elasticdog: well, in the postfix class you could also do some magic, let me get an example up | ||
| [2010/02/18 14:45:39] @ _dan__t is now known as dan__t | ||
| [2010/02/18 14:46:07] @ Quit: Spruit_elf: Quit: Spruit_elf | ||
| [2010/02/18 14:46:48] @ Spruit_elf joined channel #puppet | ||
| [2010/02/18 14:47:36] <joe-mac> not going to work | ||
| [2010/02/18 14:47:52] @ Quit: giskard: Remote host closed the connection | ||
| [2010/02/18 14:48:00] <joe-mac> you need to set that variable in the class that the resource that calls the template is in most likely | ||
| [2010/02/18 14:48:10] <jrojas> elasticdog: this is something i do for certain fonig files http://pastie.org/831337 | ||
| [2010/02/18 14:48:19] <jrojas> fonig=config | ||
| [2010/02/18 14:49:28] <jrojas> elasticdog: make sense? | ||
| [2010/02/18 14:49:59] @ eidolon joined channel #puppet | ||
| [2010/02/18 14:51:19] <jrojas> elasticdog: for example i actually do this for some servers that need to have strongmail configured instead of the regular internal mail relay. | ||
| [2010/02/18 14:51:22] <joe-mac> jrojas: you re assign variables/ | ||
| [2010/02/18 14:51:38] @ inveratulo left channel #puppet () | ||
| [2010/02/18 14:51:47] <jrojas> joe-mac: in some situations yes. | ||
| [2010/02/18 14:52:21] @ plathrop-away is now known as plathrop | ||
| [2010/02/18 14:55:38] <joe-mac> o i c why that works | ||
| [2010/02/18 14:55:42] <joe-mac> you're not really re assigning | ||
| [2010/02/18 14:55:47] <jrojas> :) | ||
| [2010/02/18 14:57:10] @ spencert joined channel #puppet | ||
| [2010/02/18 15:01:08] <spencert> is there a way when using a selector to test for true/false without looking for the string "true" or "1" | ||
| [2010/02/18 15:04:49] <elasticdog> jrojas: gotcha, so the subclasses override the main postfix class...but why do you need the duplicated template declarations? | ||
| [2010/02/18 15:05:06] @ paxos_ joined channel #puppet | ||
| [2010/02/18 15:05:18] @ Quit: paxos: Read error: Connection reset by peer | ||
| [2010/02/18 15:05:20] @ Quit: erlingre: Quit: Leaving | ||
| [2010/02/18 15:05:53] @ paxos joined channel #puppet | ||
| [2010/02/18 15:07:31] @ Quit: paxos: Remote host closed the connection | ||
| [2010/02/18 15:07:44] @ paxos joined channel #puppet | ||
| [2010/02/18 15:07:52] <elasticdog> jrojas: also, then how do you specify that a node should get postfix::centos vs postfix::ubuntu? | ||
| [2010/02/18 15:08:10] <joe-mac> you can do the class inclusion with a case statement | ||
| [2010/02/18 15:08:37] <joe-mac> you can't re assign variables but the way inherits works i guess it never sets the variable originally? idk i'm a little confused by that | ||
| [2010/02/18 15:09:12] <elasticdog> joe-mac: I'm currently using a case statement, but I don't get why the custom variables I assign aren't available in the template | ||
| [2010/02/18 15:09:20] @ Demosthenes joined channel #puppet | ||
| [2010/02/18 15:10:02] @ Quit: paxos_: Ping timeout: 264 seconds | ||
| [2010/02/18 15:10:21] <joe-mac> elasticdog: because you are using an include thenhj the resource which uses th variable is higher in the scope | ||
| [2010/02/18 15:10:24] <joe-mac> this is my theory anyways | ||
| [2010/02/18 15:10:25] @ Quit: kclark8211: | ||
| [2010/02/18 15:10:58] @ giskard joined channel #puppet | ||
| [2010/02/18 15:11:19] <joe-mac> if you put thjat resource in the same scope where you set the variable, it will work | ||
| [2010/02/18 15:11:26] @ Quit: paxos: Read error: Connection reset by peer | ||
| [2010/02/18 15:11:27] <joe-mac> hypothesis | ||
| [2010/02/18 15:11:47] @ paxos joined channel #puppet | ||
| [2010/02/18 15:12:13] <plathrop> The other thing you can do is do an over-ride but don't actually change anything. that forces the template to be re-evaluated in that scope. That's the ugly hack we used. | ||
| [2010/02/18 15:15:41] <weaselkeeper> Is there a way to have a node be a member of a class, but exclude file management ? (ie, class webserver includes an httpd.conf, but for this node, we want to allow local modifications to same to not be overwritten by puppet) I can do this by splitting into two classes, service and file, but that's a bit clunky. | ||
| [2010/02/18 15:16:20] <elasticdog> plathrop: it looks like if I add a definition for the variable above my includes (in the original postfix class) then the template is able to find it | ||
| [2010/02/18 15:16:44] <elasticdog> I would think that the include would make those variable declarations be in the same scope as the postfix class | ||
| [2010/02/18 15:16:57] <plathrop> weaselkeeper: Not really. You could wrap all the file stuff in a conditional, then set a variable for that conditional on that node. | ||
| [2010/02/18 15:17:22] <plathrop> elasticdog: the scope stuff is highly counter-intuitive. | ||
| [2010/02/18 15:19:18] <weaselkeeper> plathrop: thanks, all told, probably easier just to split the classes. | ||
| [2010/02/18 15:19:20] @ Quit: jfreeman: Remote host closed the connection | ||
| [2010/02/18 15:24:58] <joe-mac> it's sort of counter intuitive i guess, but if you look at include as putting the class 'below' the current one and your resource is in the current one, it can't view the variable set 'below' | ||
| [2010/02/18 15:26:52] <elasticdog> plathrop: you weren't kidding: http://reductivelabs.com/trac/puppet/wiki/FrequentlyAskedQuestions#common-misconceptions | ||
| [2010/02/18 15:28:18] <elasticdog> joe-mac: I think intuitively, when you include something you're wanting to bring it into the current class (i.e. the same scope) | ||
| [2010/02/18 15:29:22] @ skiold joined channel #puppet | ||
| [2010/02/18 15:30:34] <joe-mac> try require instead of include, see what happens | ||
| [2010/02/18 15:30:34] @ bodepd_ joined channel #puppet | ||
| [2010/02/18 15:30:45] <joe-mac> epic fails i am guessing | ||
| [2010/02/18 15:31:07] @ Quit: TREllis: Quit: leaving | ||
| [2010/02/18 15:31:25] <elasticdog> joe-mac: meeting...be back in a bit | ||
| [2010/02/18 15:31:54] @ TREllis joined channel #puppet | ||
| [2010/02/18 15:32:52] <joe-mac> k | ||
| [2010/02/18 15:33:21] <joe-mac> i'mn interested to see if the change of keywords which i thought would only affect order might affect scoping | ||
| [2010/02/18 15:33:25] @ Quit: bodepd: Ping timeout: 264 seconds | ||
| [2010/02/18 15:33:26] @ bodepd_ is now known as bodepd | ||
| [2010/02/18 15:41:36] @ Quit: yarihm: Quit: This computer has gone to sleep | ||
| [2010/02/18 15:41:51] @ warreng_ joined channel #puppet | ||
| [2010/02/18 15:42:00] @ Quit: warreng: Ping timeout: 272 seconds | ||
| [2010/02/18 15:42:01] @ warreng_ is now known as warreng | ||
| [2010/02/18 15:42:50] @ verwilst joined channel #puppet | ||
| [2010/02/18 15:43:52] @ seanos left channel #puppet () | ||
| [2010/02/18 15:45:25] @ Quit: \ask: Remote host closed the connection | ||
| [2010/02/18 15:46:44] @ Quit: ckauhaus: Quit: Leaving. | ||
| [2010/02/18 15:48:32] @ spencert left channel #puppet () | ||
| [2010/02/18 15:52:03] @ Quit: jbooth_: Read error: Operation timed out | ||
| [2010/02/18 16:00:53] @ Djelibeybi joined channel #puppet | ||
| [2010/02/18 16:03:25] @ quit (okay bye) | ||
| [2010/02/18 16:05:00] @ Joined channel #puppet | ||
| [2010/02/18 16:05:00] @ Topic is "Puppet 0.25.4 released - http://bit.ly/9c5HMv | Log bugs and feature requests at http://tinyurl.com/46ryk7 | see also #puppet-dev" | ||
| [2010/02/18 16:05:00] @ Topic set by mpdehaan!~mpdehaan@cpe-069-134-171-066.nc.res.rr.com on Tue Feb 02 17:04:30 -0500 2010 | ||
| [2010/02/18 16:05:15] @ Mode +cnt by barjavel.freenode.net | ||
| [2010/02/18 16:08:27] @ Quit: mattwynne: Remote host closed the connection | ||
| [2010/02/18 16:09:16] @ Quit: bodepd: Ping timeout: 268 seconds | ||
| [2010/02/18 16:10:35] @ jbooth_ joined channel #puppet | ||
| [2010/02/18 16:10:39] @ littleidea joined channel #puppet | ||
| [2010/02/18 16:13:00] @ bodepd joined channel #puppet | ||
| [2010/02/18 16:14:31] @ Quit: afletcher: Quit: afletcher | ||
| [2010/02/18 16:15:05] @ afletcher joined channel #puppet | ||
| [2010/02/18 16:18:49] @ Quit: kaptk2: Remote host closed the connection | ||
| [2010/02/18 16:20:34] @ Quit: bodepd: Quit: bodepd | ||
| [2010/02/18 16:22:31] @ bug joined channel #puppet | ||
| [2010/02/18 16:23:22] <himynameisthor> hey guys, jumping into file serving... i have a symlink to the latest version of a file that I want puppet to serve onto my clients, but it's just copying the symlink. is it possible to make it copy the linked file rather than the link itself? =] | ||
| [2010/02/18 16:23:28] @ Ramonster joined channel #puppet | ||
| [2010/02/18 16:23:51] @ Quit: swygue: Quit: Ex-Chat | ||
| [2010/02/18 16:23:52] @ Quit: swygue_: Quit: Ex-Chat | ||
| [2010/02/18 16:26:26] <joe-mac> yea, follow symlinks equals true | ||
| [2010/02/18 16:26:32] <joe-mac> wiki:TypeReference | ||
| [2010/02/18 16:26:40] <joe-mac> go to file and search for the word 'follow' | ||
| [2010/02/18 16:26:56] <joe-mac> himynameisthor ^^ that was for you | ||
| [2010/02/18 16:28:31] @ Quit: cliff-hm: Ping timeout: 245 seconds | ||
| [2010/02/18 16:29:28] @ Quit: bug: Quit: bug | ||
| [2010/02/18 16:30:56] @ eidolon left channel #puppet () | ||
| [2010/02/18 16:31:22] @ kaptk2 joined channel #puppet | ||
| [2010/02/18 16:31:48] @ Quit: skiold: Quit: skiold | ||
| [2010/02/18 16:32:13] @ Quit: Ramonster: Quit: Get MacIrssi - http://www.sysctl.co.uk/projects/macirssi/ | ||
| [2010/02/18 16:35:03] <himynameisthor> joe-mac: yeah, links => follow didn't help | ||
| [2010/02/18 16:35:14] * himynameisthor looks more | ||
| [2010/02/18 16:35:45] @ yarihm joined channel #puppet | ||
| [2010/02/18 16:38:33] @ bug joined channel #puppet | ||
| [2010/02/18 16:38:35] @ lak joined channel #puppet | ||
| [2010/02/18 16:40:32] <joe-mac> could be permissions on the followed links | ||
| [2010/02/18 16:40:51] <joe-mac> as in the targets | ||
| [2010/02/18 16:43:22] <russell_h> I'm getting an error, "Mounts without paths are not usable", on a source that looks like "puppet:///modules/ntp/ntp.conf.gentoo", anyone know what that would be about? | ||
| [2010/02/18 16:45:40] <russell_h> oh, I guess I can't do /modules in .24 | ||
| [2010/02/18 16:48:53] @ Quit: yarihm: Quit: This computer has gone to sleep | ||
| [2010/02/18 16:50:27] @ Quit: lak: Read error: Connection reset by peer | ||
| [2010/02/18 16:51:56] @ lak joined channel #puppet | ||
| [2010/02/18 16:52:53] @ Quit: ohadlevy: Ping timeout: 260 seconds | ||
| [2010/02/18 16:53:02] @ jfreeman joined channel #puppet | ||
| [2010/02/18 16:55:12] @ Quit: glut: Quit: Changing server | ||
| [2010/02/18 16:56:53] @ glut joined channel #puppet | ||
| [2010/02/18 16:57:20] @ bodepd joined channel #puppet | ||
| [2010/02/18 17:00:18] @ Quit: jfreeman: Ping timeout: 240 seconds | ||
| [2010/02/18 17:00:45] @ sparagos is now known as sparagos_away | ||
| [2010/02/18 17:01:31] @ Quit: cwebber: Quit: cwebber | ||
| [2010/02/18 17:01:56] @ cwebber joined channel #puppet | ||
| [2010/02/18 17:02:08] @ Quit: afletcher: Quit: afletcher | ||
| [2010/02/18 17:05:57] <eshamow> any ideas how to install multiple versions of a package with the same name? i have a situation where i need to install both the i386 and x86_64 versions of a pkg...puppet understandably complains that the package has already been defined | ||
| [2010/02/18 17:06:22] <jb> you probably need to package them using different versions | ||
| [2010/02/18 17:06:32] <jrojas> eshamow: what provider ? | ||
| [2010/02/18 17:07:09] @ yarihm joined channel #puppet | ||
| [2010/02/18 17:07:19] @ Quit: bug: Quit: bug | ||
| [2010/02/18 17:07:31] <eshamow> jrojas: yum | ||
| [2010/02/18 17:07:36] <jrojas> eshamow: try package { "packagename.i386": ensure => installed; "packagename.x86_64": ensure => installed } | ||
| [2010/02/18 17:07:36] <elasticdog> joe-mac: s/include/require/ made no difference in scope :-( | ||
| [2010/02/18 17:07:50] <eshamow> jrojas: interesting. let me give that a shot... | ||
| [2010/02/18 17:08:14] <weaselkeeper> not a rails guy, anyone know of a simple rails app that I can use to test apache/passenger setup on my node? the equiv of hello world is fine, as long as it runs via passenger/rails | ||
| [2010/02/18 17:08:27] <jrojas> rails testapp | ||
| [2010/02/18 17:08:30] <jrojas> weaselkeeper: ^^ | ||
| [2010/02/18 17:08:36] @ Quit: toi: Ping timeout: 252 seconds | ||
| [2010/02/18 17:08:43] <jrojas> that will give you a hello world app | ||
| [2010/02/18 17:08:47] <weaselkeeper> cool. | ||
| [2010/02/18 17:08:50] @ eidolon joined channel #puppet | ||
| [2010/02/18 17:09:03] @ thrain][ left channel #puppet () | ||
| [2010/02/18 17:09:06] <eidolon> hi folks - i'm setting up my first puppet client - when i do a puppetd --verbose startup, i'm seeing: | ||
| [2010/02/18 17:09:14] <eidolon> Feb 18 16:56:23 ltl-dev-bo-db01 puppetd[2650]: Could not call puppetca.getcert: #<Errno::EHOSTUNREACH: No route to host - connect(2)> | ||
| [2010/02/18 17:09:36] <eidolon> what is it trying to reach? i thought it would fall back to 'puppet' as a server - which is pingable | ||
| [2010/02/18 17:09:38] <jrojas> eidolon: puppetd has to connect to a puppetmaster | ||
| [2010/02/18 17:09:52] <eidolon> jrojas: sure. what's it using as a hostname for that? | ||
| [2010/02/18 17:09:52] <jrojas> eidolon: can you telnet puppet 8140 ? | ||
| [2010/02/18 17:10:06] <Spruit_elf> try --server=host | ||
| [2010/02/18 17:10:21] <eidolon> odd, i can ping it, but i can't telnet. odd error message. sec, maybe puppetmaster isn't running | ||
| [2010/02/18 17:10:27] @ Quit: Demosthenes: Read error: Operation timed out | ||
| [2010/02/18 17:10:32] <eidolon> puppetmasterd is running | ||
| [2010/02/18 17:10:40] <jrojas> eidolon: same host or diff hsots? | ||
| [2010/02/18 17:10:43] <eidolon> diff | ||
| [2010/02/18 17:10:50] <eshamow> jrojas: looking like your yum fix worked for me -- thank you, solves a big one | ||
| [2010/02/18 17:11:44] <eidolon> yeah, i can telnet puppet 22 | ||
| [2010/02/18 17:11:49] <eidolon> but i can't telnet puppet 8140 | ||
| [2010/02/18 17:11:57] <jrojas> eidolon: then it sounds like something is interferring | ||
| [2010/02/18 17:12:05] <jrojas> eidolon: what does netstat -an |grep 8140 show | ||
| [2010/02/18 17:12:14] <eidolon> on the server or client? | ||
| [2010/02/18 17:12:17] <Volcane> its a firewall obviously | ||
| [2010/02/18 17:12:25] <jrojas> eidolon: puppetmaster | ||
| [2010/02/18 17:12:27] <eidolon> [root@lwmoccam01 ~]# netstat -an | grep 8140 | ||
| [2010/02/18 17:12:27] <eidolon> tcp 0 0 0.0.0.0:8140 0.0.0.0:* LISTEN | ||
| [2010/02/18 17:12:35] <jrojas> yup firewall issue | ||
| [2010/02/18 17:12:40] <jrojas> prob iptables? | ||
| [2010/02/18 17:12:44] <eidolon> odd, they're ont he same subnet. must be local tables | ||
| [2010/02/18 17:12:45] * eidolon looks | ||
| [2010/02/18 17:13:12] <jrojas> eshamow: good. | ||
| [2010/02/18 17:13:17] <eidolon> yep, iptables is running | ||
| [2010/02/18 17:13:19] * eidolon glares. | ||
| [2010/02/18 17:14:06] <Spruit_elf> arrrgh can't get a provider to work, it syncs but is not loaded... how do i debug that? | ||
| [2010/02/18 17:14:31] <jrojas> Spruit_elf: it probably wont load until next restart of the daemon | ||
| [2010/02/18 17:14:39] @ mqr joined channel #puppet | ||
| [2010/02/18 17:14:59] <jrojas> Spruit_elf: you can always add notice("loaded provider") or something in the provider code and it will show in the logs iirc | ||
| [2010/02/18 17:15:05] <Spruit_elf> jrojas: does that include running with -test form command? | ||
| [2010/02/18 17:15:06] <eidolon> iptables --flush | ||
| [2010/02/18 17:15:07] <eidolon> wheeeeeeeeeeeeeeeee | ||
| [2010/02/18 17:15:42] <jrojas> Spruit_elf: if maybe, try adding the notice and check the output | ||
| [2010/02/18 17:18:33] @ Quit: labrown: Quit: Leaving | ||
| [2010/02/18 17:20:12] <Spruit_elf> if puppet looks for modules on the fileserver and it scans the plugin dirs, does it uses the production environment or the dev environment? | ||
| [2010/02/18 17:20:59] @ bug joined channel #puppet | ||
| [2010/02/18 17:21:03] @ jfreeman joined channel #puppet | ||
| [2010/02/18 17:21:08] <jrojas> Spruit_elf: whatver the specified or default is | ||
| [2010/02/18 17:21:20] <Spruit_elf> whats the default? | ||
| [2010/02/18 17:21:24] <jrojas> production | ||
| [2010/02/18 17:21:30] <Spruit_elf> hmmm | ||
| [2010/02/18 17:21:45] <Spruit_elf> that explains the notice not working | ||
| [2010/02/18 17:22:13] <eidolon> Feb 18 17:09:42 ltl-dev-bo-db01 puppetd[3211]: Got signed certificate | ||
| [2010/02/18 17:22:16] <eidolon> \o/ | ||
| [2010/02/18 17:23:47] <eidolon> so, changes on the puppetmaster server - they will be flushed out to the client machines at what interval? instantaneously? or is there a polling interval? | ||
| [2010/02/18 17:23:57] @ Pirate_Hunter joined channel #puppet | ||
| [2010/02/18 17:24:09] <fsweetser> eidolon: the puppet client polls, by default every 30 minutes | ||
| [2010/02/18 17:24:35] <eidolon> Feb 18 17:09:42 ltl-dev-bo-db01 puppetd[3211]: Lock file /var/lib/puppet/state/puppetdlock exists; skipping catalog run | ||
| [2010/02/18 17:24:37] <eidolon> hmm.m | ||
| [2010/02/18 17:24:39] <eidolon> is that a problem? | ||
| [2010/02/18 17:24:46] <jrojas> eidolon: is puppet running? | ||
| [2010/02/18 17:24:52] <eidolon> fsweetser: *nod* okay. can i hup the puppetd to get it to poll faster? | ||
| [2010/02/18 17:25:07] <eidolon> we're going to manage production machines here, i need to be able to go "This change, go live, NOW!" | ||
| [2010/02/18 17:25:10] <fsweetser> HUP will restart it, or you can send it USR1 to just trigger an imediate run | ||
| [2010/02/18 17:25:15] <eidolon> ok | ||
| [2010/02/18 17:25:26] <fsweetser> also, you'll want to look into puppetrun to trigger immediate runs remotely | ||
| [2010/02/18 17:25:31] <eidolon> ohhhh | ||
| [2010/02/18 17:25:34] <eidolon> okay, thank you :) | ||
| [2010/02/18 17:25:39] <fsweetser> no prob | ||
| [2010/02/18 17:25:54] <eidolon> that was an awesome answer. "Here's an answer to your direct question. But the question you're REALLY asking is answered -here-." | ||
| [2010/02/18 17:25:55] <eidolon> :) | ||
| [2010/02/18 17:26:01] <eidolon> unusual on irc :) | ||
| [2010/02/18 17:26:20] <fsweetser> it's not that uncommon a question among people getting started on puppet =) | ||
| [2010/02/18 17:26:52] <eidolon> so i killed puppetd. but the puppetdlock file is still there. nuke it i assume? | ||
| [2010/02/18 17:27:08] <jrojas> eidolon: if you are doing testing try using puppetd -vt | ||
| [2010/02/18 17:27:15] <eidolon> already running --verbose | ||
| [2010/02/18 17:27:19] <jrojas> eidolon: keeps it in the forground and it will go away after a run | ||
| [2010/02/18 17:27:21] <eidolon> with a tail -f backgrounded :) | ||
| [2010/02/18 17:27:37] <jrojas> itll keep you form the locking issue | ||
| [2010/02/18 17:27:58] <eidolon> okay, there we go. catalog run complete. | ||
| [2010/02/18 17:29:14] <eidolon> wow. *reads the puppetrun man page* okay, taht's pretty cool. | ||
| [2010/02/18 17:30:21] @ ohadlevy joined channel #puppet | ||
| [2010/02/18 17:30:35] <jrojas> eidolon: your cleints have to be set to listen | ||
| [2010/02/18 17:30:40] * eidolon nods | ||
| [2010/02/18 17:31:27] <eidolon> okay, i'm going to stop just asking questiosn evertime i bump something, otherwise ya'll get annoyed. :) | ||
| [2010/02/18 17:31:30] * eidolon fiddles. | ||
| [2010/02/18 17:31:42] <jrojas> eidolon: keep toying until it breaks | ||
| [2010/02/18 17:31:46] <jrojas> :) | ||
| [2010/02/18 17:31:50] <eidolon> well, a sudoers change i just made didn't dist. | ||
| [2010/02/18 17:31:55] <eidolon> now i'm trying to figure out why. | ||
| [2010/02/18 17:32:02] <eidolon> BUT DONT TELL ME :) | ||
| [2010/02/18 17:32:07] <jrojas> 42 | ||
| [2010/02/18 17:32:09] <jrojas> thats why | ||
| [2010/02/18 17:32:12] <eidolon> awesome. | ||
| [2010/02/18 17:33:57] <Spruit_elf> hmm it syncs but still not loads, | ||
| [2010/02/18 17:34:32] <jrojas> is it going into puppet/lib/provider ? | ||
| [2010/02/18 17:35:08] <Spruit_elf> jrojas: no? puppet/provider/pkgutil.rb | ||
| [2010/02/18 17:35:11] <Spruit_elf> im on 24.8 | ||
| [2010/02/18 17:35:24] <jrojas> Spruit_elf: hmm.. sec.. | ||
| [2010/02/18 17:35:38] <Spruit_elf> according to the docs it should be that dir | ||
| [2010/02/18 17:35:59] <eidolon> Feb 18 17:35:33 lwmoccam01 puppetmasterd[7820]: Permission denied - /etc/puppet/modules/sudo/files/sudoers | ||
| [2010/02/18 17:36:03] <eidolon> yay error messgees! :) | ||
| [2010/02/18 17:36:12] <Spruit_elf> wiki:PluginsInModules i think it is | ||
| [2010/02/18 17:36:13] <gepetto> Spruit_elf: wiki: wiki:PluginsInModules is http://reductivelabs.com/trac/puppet/wiki/PluginsInModules | ||
| [2010/02/18 17:36:40] <Spruit_elf> jeeeh | ||
| [2010/02/18 17:36:52] @ kolla joined channel #puppet | ||
| [2010/02/18 17:37:32] <jrojas> Spruit_elf: For example, Ruby expects Puppet resource types to be in $libdir/ | ||
| [2010/02/18 17:37:39] <jrojas> right under the module structure | ||
| [2010/02/18 17:37:48] <jrojas> puppet's libdir is set in the config | ||
| [2010/02/18 17:38:11] <Spruit_elf> thats default | ||
| [2010/02/18 17:38:13] <jrojas> $ sudo /usr/sbin/puppetd --configprint libdir | ||
| [2010/02/18 17:38:13] <jrojas> /var/lib/puppet/lib | ||
| [2010/02/18 17:38:30] <eidolon> whoah. Am i reading this right? Filebucket backs up config files back to the puppetmaster before overwriting them with pushed updates? | ||
| [2010/02/18 17:38:39] <weaselkeeper> yes | ||
| [2010/02/18 17:38:45] <eidolon> that. is awesome beyond words. | ||
| [2010/02/18 17:38:51] <weaselkeeper> eidolon: it's useful :P | ||
| [2010/02/18 17:39:04] <eidolon> built in change control FTW! \o/ | ||
| [2010/02/18 17:39:19] <Spruit_elf> sudo /opt/csw/bin/puppetd --configprint libdir/phil/var/puppet/lib | ||
| [2010/02/18 17:39:30] <Spruit_elf> ls /phil/var/puppet/lib/puppet/provider/pkgutil.rb | ||
| [2010/02/18 17:39:35] <fsweetser> to get *real* change control, though, best practice is to put your manifests under version control | ||
| [2010/02/18 17:39:36] <Spruit_elf> so its in the right place | ||
| [2010/02/18 17:40:07] <eidolon> fsweetser: agreed. normally i just use RCS for that - but that's a little antiquated. | ||
| [2010/02/18 17:40:12] <fsweetser> heh | ||
| [2010/02/18 17:40:18] <eidolon> we have a perforce server here (ACK SPIT), but i may just use svn to be sane. | ||
| [2010/02/18 17:40:20] <fsweetser> yeah, most people use either svn or git | ||
| [2010/02/18 17:40:33] <plathrop> git FTW | ||
| [2010/02/18 17:40:41] <Spruit_elf> agreed | ||
| [2010/02/18 17:40:42] <fsweetser> yay real merges! | ||
| [2010/02/18 17:40:42] <jrojas> plathrop: i thoguth your nick was windowsrefund | ||
| [2010/02/18 17:40:48] <jrojas> ;) | ||
| [2010/02/18 17:40:58] <plathrop> Only when I want to be a dick. | ||
| [2010/02/18 17:41:02] <jrojas> heheh | ||
| [2010/02/18 17:41:37] <eidolon> ah. it hashbushes the file backups | ||
| [2010/02/18 17:41:41] <eidolon> coooooool. | ||
| [2010/02/18 17:42:16] <plathrop> Seriously, though, my latest "yay git!" was when I came back from paternity leave. My team had been working on Puppet configs while I was gone and committing willy-nilly to the development, prodtest, and master (production) branches. It was a maze of twisty passages, all alike. | ||
| [2010/02/18 17:42:18] <Spruit_elf> jrojas: so the provider is in the libdir under: $libdir/puppet/provider/pkgutil.rb, so it should be working right? | ||
| [2010/02/18 17:42:29] <plathrop> I had it all merged correctly in under 15 minutes. | ||
| [2010/02/18 17:42:32] @ Quit: bodepd: Quit: bodepd | ||
| [2010/02/18 17:42:39] <plathrop> svn would have given me a stroke in the same situation. | ||
| [2010/02/18 17:42:40] <eidolon> and on that note, night folks. | ||
| [2010/02/18 17:42:55] @ Quit: eidolon: Quit: Leaving. | ||
| [2010/02/18 17:44:25] <Spruit_elf> it does load a facter fact thats under $libdir/facter/zonename.rb | ||
| [2010/02/18 17:45:22] <plathrop> Spruit_elf: what puppet version? | ||
| [2010/02/18 17:45:28] <Spruit_elf> 24.8 | ||
| [2010/02/18 17:45:41] <plathrop> Spruit_elf: let me check my configs to tell you the correct info... 1 sec | ||
| [2010/02/18 17:46:24] @ Quit: ohadlevy: Quit: Leaving. | ||
| [2010/02/18 17:48:13] <plathrop> Spruit_elf: I have mine in $libdir/puppet/plugins/provider | ||
| [2010/02/18 17:48:49] @ Quit: blahdeblah: Quit: Leaving. | ||
| [2010/02/18 17:49:13] <Spruit_elf> really? thats unexpected :S well will try that | ||
| [2010/02/18 17:49:44] @ Robbie_ joined channel #puppet | ||
| [2010/02/18 17:51:01] <Spruit_elf> plathrop: nope still nothing | ||
| [2010/02/18 17:51:10] <Spruit_elf> it syncs, but doenst load | ||
| [2010/02/18 17:52:48] @ \ask joined channel #puppet | ||
| [2010/02/18 17:52:51] <joe-mac> elasticdog: yea, i figured, that keyword implies it only affects ordering, but i got real curious for a second there :-) thanks for trying | ||
| [2010/02/18 17:53:21] <plathrop> Spruit_elf: yeah, it'll sync no matter what path you use. In my module it is in $modulepath/$modulename/plugins/puppet/provider if that helps. | ||
| [2010/02/18 17:54:10] <Spruit_elf> plathrop: yeah thats the same for me, strange that it ends up on a different place then for you :s | ||
| [2010/02/18 17:55:51] <elasticdog> joe-mac: no prob...looks like redeclaring the file resource in the subclass is the easiest way to get the scope rebound | ||
| [2010/02/18 17:55:52] <plathrop> Spruit_elf: I'll be honest, I'm on .25.1 but I'm looking at a checkout of my .24.8 configs :-P | ||
| [2010/02/18 17:56:06] <plathrop> Spruit_elf: and looking at an older machine that was 0.24.8 too | ||
| [2010/02/18 17:56:24] <Spruit_elf> and the worst thing is that puppet gives no clue at all why it is not loading | ||
| [2010/02/18 17:56:43] <plathrop> yeah, that are of puppet could use some verbosity | ||
| [2010/02/18 17:56:51] <plathrop> area even | ||
| [2010/02/18 17:58:38] <paxos> -v --no-daemonize ? | ||
| [2010/02/18 17:59:04] <paxos> -d | ||
| [2010/02/18 17:59:06] <plathrop> paxos: doesn't give you any info on this issue | ||
| [2010/02/18 17:59:08] @ Quit: cwebber: Quit: cwebber | ||
| [2010/02/18 17:59:49] @ RedPepper is now known as zz_RedPepper | ||
| [2010/02/18 18:01:12] <Spruit_elf> paxos: already looking at debug output and it read everthing i could find in the docs and online and still have no clue at all | ||
| [2010/02/18 18:01:17] <j00bar> is there a way i can tell a service to restart upon a certain exec result code? | ||
| [2010/02/18 18:01:59] <Spruit_elf> notify service on a exec with your command as onlyif or unless? | ||
| [2010/02/18 18:02:31] <j00bar> Spruit_elf: won't that run my command twice? | ||
| [2010/02/18 18:03:21] <Spruit_elf> like exec { | ||
| [2010/02/18 18:03:21] <Spruit_elf> "/bin/true": | ||
| [2010/02/18 18:03:21] <Spruit_elf> onlyif => "command", | ||
| [2010/02/18 18:03:21] <Spruit_elf> notify => service | ||
| [2010/02/18 18:03:21] <Spruit_elf> } | ||
| [2010/02/18 18:03:21] <j00bar> Spruit_elf: the command is an update call to vcs -- if the vcs pulled down new updates, i want to restart the daemon that uses it. | ||
| [2010/02/18 18:03:32] <j00bar> oooh. | ||
| [2010/02/18 18:03:37] <Spruit_elf> kind of a hack | ||
| [2010/02/18 18:03:39] <j00bar> so ditch the update command as its own exec | ||
| [2010/02/18 18:03:46] <j00bar> and use it as an onlyif, knowing there's a side-effect. | ||
| [2010/02/18 18:04:08] <j00bar> and include that command's onlyif as part of the new command with && | ||
| [2010/02/18 18:04:10] <Spruit_elf> not very pretty, but i think it will work | ||
| [2010/02/18 18:04:17] <j00bar> it's a good idea. | ||
| [2010/02/18 18:06:06] @ cwebber joined channel #puppet | ||
| [2010/02/18 18:06:19] @ bodepd joined channel #puppet | ||
| [2010/02/18 18:06:31] @ Quit: lak: Quit: lak | ||
| [2010/02/18 18:07:35] @ Quit: paxos: Quit: paxos | ||
| [2010/02/18 18:09:19] @ benkevan joined channel #puppet | ||
| [2010/02/18 18:14:21] <Spruit_elf> plathrop: AH found it | ||
| [2010/02/18 18:14:43] @ afletcher_ joined channel #puppet | ||
| [2010/02/18 18:14:47] <plathrop> Spruit_elf: excellent. what was it? | ||
| [2010/02/18 18:14:49] <Spruit_elf> a package provider needs to be under /puppet/provider/package/pkgutil.rb | ||
| [2010/02/18 18:15:10] <Spruit_elf> instead of /puppet/provider/pkgutil.rb | ||
| [2010/02/18 18:15:34] <Spruit_elf> which is not mentioned in the wiki and not on any website i found | ||
| [2010/02/18 18:15:51] <plathrop> Spruit_elf: I see | ||
| [2010/02/18 18:16:16] @ Quit: TREllis: Quit: leaving | ||
| [2010/02/18 18:16:55] @ yarihm left channel #puppet ("Leaving") | ||
| [2010/02/18 18:17:13] @ Quit: bodepd: Quit: bodepd | ||
| [2010/02/18 18:17:20] @ Quit: littleidea: Quit: littleidea | ||
| [2010/02/18 18:17:35] @ bodepd joined channel #puppet | ||
| [2010/02/18 18:18:04] @ Quit: bodepd: Client Quit | ||
| [2010/02/18 18:18:14] @ Quit: RSpacePo1e: Ping timeout: 256 seconds | ||
| [2010/02/18 18:18:19] @ Quit: ahasenack: Quit: Leaving | ||
| [2010/02/18 18:18:32] @ littleidea joined channel #puppet | ||
| [2010/02/18 18:20:46] @ Quit: bug: Quit: bug | ||
| [2010/02/18 18:21:43] @ Quit: jmccune: Quit: leaving | ||
| [2010/02/18 18:25:53] @ Quit: cwebber: Quit: cwebber | ||
| [2010/02/18 18:27:38] @ Quit: littleidea: Quit: littleidea | ||
| [2010/02/18 18:31:03] @ Quit: Robbie_: Remote host closed the connection | ||
| [2010/02/18 18:33:09] @ Robbie_ joined channel #puppet | ||
| [2010/02/18 18:34:08] <j00bar> when the service type's process parameter says "in the process table", is that just the base executable? is it ps -e? | ||
| [2010/02/18 18:34:57] @ bug joined channel #puppet | ||
| [2010/02/18 18:35:08] @ cwebber joined channel #puppet | ||
| [2010/02/18 18:40:38] @ Quit: hacim: Remote host closed the connection | ||
| [2010/02/18 18:41:37] @ lak joined channel #puppet | ||
| [2010/02/18 18:44:38] @ Quit: cwebber: Quit: cwebber | ||
| [2010/02/18 18:45:00] @ Quit: Robbie_: Remote host closed the connection | ||
| [2010/02/18 18:46:57] @ plathrop is now known as plathrop-away | ||
| [2010/02/18 18:47:17] @ plathrop-away is now known as plathrop | ||
| [2010/02/18 18:48:33] @ Quit: bobbyz: Ping timeout: 260 seconds | ||
| [2010/02/18 18:50:21] <weaselkeeper> I am impressed that there | ||
| [2010/02/18 18:50:30] <weaselkeeper> s a gem provider, as well as yum and apt | ||
| [2010/02/18 18:50:46] <weaselkeeper> even though everytime I do a gem install of something, I view it as a failure of the admin/package | ||
| [2010/02/18 18:51:18] @ Quit: lak: Quit: lak | ||
| [2010/02/18 18:54:17] @ Quit: shenson: Quit: /me taps out | ||
| [2010/02/18 19:00:53] @ bug_ joined channel #puppet | ||
| [2010/02/18 19:00:54] @ Quit: bug: Read error: Connection reset by peer | ||
| [2010/02/18 19:00:55] @ bug_ is now known as bug | ||
| [2010/02/18 19:02:24] @ littleidea joined channel #puppet | ||
| [2010/02/18 19:05:13] @ Quit: Pirate_Hunter: Ping timeout: 264 seconds | ||
| [2010/02/18 19:07:28] @ plathrop is now known as plathrop-away | ||
| [2010/02/18 19:07:36] @ cwebber joined channel #puppet | ||
| [2010/02/18 19:26:05] @ Quit: biertie: Ping timeout: 256 seconds | ||
| [2010/02/18 19:26:35] @ Quit: benkevan: Remote host closed the connection | ||
| [2010/02/18 19:27:38] @ Quit: shine: Ping timeout: 252 seconds | ||
| [2010/02/18 19:27:43] @ Quit: cwebber: Quit: cwebber | ||
| [2010/02/18 19:28:21] @ Quit: warreng: Ping timeout: 256 seconds | ||
| [2010/02/18 19:29:58] @ lilmatt_ joined channel #puppet | ||
| [2010/02/18 19:31:25] @ warreng joined channel #puppet | ||
| [2010/02/18 19:31:51] @ Quit: eshamow: Quit: eshamow | ||
| [2010/02/18 19:32:09] @ Quit: lilmatt: Ping timeout: 252 seconds | ||
| [2010/02/18 19:34:30] @ shine joined channel #puppet | ||
| [2010/02/18 19:37:19] @ Spruit_elf_ joined channel #puppet | ||
| [2010/02/18 19:38:18] @ Quit: teyo: Quit: teyo | ||
| [2010/02/18 19:38:50] @ Quit: Spruit_elf_: Client Quit | ||
| [2010/02/18 19:41:23] @ Quit: Spruit_elf: Ping timeout: 256 seconds | ||
| [2010/02/18 19:45:29] @ Quit: warreng: Ping timeout: 260 seconds | ||
| [2010/02/18 19:48:39] @ diranged joined channel #puppet | ||
| [2010/02/18 19:49:20] <diranged> i need to do some kind of an 'if hostname starts with abc, use this variable' but 'if hostname starts with cba, use this variable'.. | ||
| [2010/02/18 19:49:29] <diranged> how might i do that in a node file? | ||
| [2010/02/18 19:52:36] @ whiterocker_ left channel #puppet () | ||
| [2010/02/18 19:52:36] @ sebas891 joined channel #puppet | ||
| [2010/02/18 19:54:35] <Volcane> if and case supports regex | ||
| [2010/02/18 19:54:39] <Volcane> as does node files | ||
| [2010/02/18 19:55:25] @ Quit: verwilst: Quit: Ex-Chat | ||
| [2010/02/18 19:56:02] @ Quit: jab_doa: Quit: Verlassend | ||
| [2010/02/18 19:57:06] @ shine_ joined channel #puppet | ||
| [2010/02/18 19:58:06] @ Quit: shine: Read error: Connection reset by peer | ||
| [2010/02/18 20:00:24] <diranged> perfect, thanks | ||
| [2010/02/18 20:00:25] <diranged> got it | ||
| [2010/02/18 20:03:30] @ warreng joined channel #puppet | ||
| [2010/02/18 20:03:32] @ Quit: littleidea: Quit: littleidea | ||
| [2010/02/18 20:03:43] @ Quit: alfism: Quit: http://opensolaris.com/ | ||
| [2010/02/18 20:03:57] @ cwebber joined channel #puppet | ||
| [2010/02/18 20:04:42] @ Quit: diranged: Quit: Leaving | ||
| [2010/02/18 20:13:41] @ Quit: warreng: Ping timeout: 256 seconds | ||
| [2010/02/18 20:18:35] @ Quit: shine_: Ping timeout: 246 seconds | ||
| [2010/02/18 20:20:55] @ swygue joined channel #puppet | ||
| [2010/02/18 20:21:41] @ Quit: mqr: Quit: mqr | ||
| [2010/02/18 20:25:35] @ diomio22 joined channel #puppet | ||
| [2010/02/18 20:32:09] @ shine joined channel #puppet | ||
| [2010/02/18 20:32:54] @ Quit: brothers: Remote host closed the connection | ||
| [2010/02/18 20:34:25] @ brothers joined channel #puppet | ||
| [2010/02/18 20:36:56] @ Quit: jes5: Quit: Leaving. | ||
| [2010/02/18 20:44:46] @ Quit: kaptk2: Read error: Connection reset by peer | ||
| [2010/02/18 20:51:07] @ warreng joined channel #puppet | ||
| [2010/02/18 20:56:32] @ Quit: warreng: Quit: warreng | ||
| [2010/02/18 20:57:52] @ Quit: WALoeIII: Quit: Bai. | ||
| [2010/02/18 21:03:44] @ Quit: docelic__: Ping timeout: 246 seconds | ||
| [2010/02/18 21:05:59] @ Quit: cwebber: Quit: cwebber | ||
| [2010/02/18 21:11:48] @ Quit: dano: Quit: Leaving | ||
| [2010/02/18 21:14:30] @ alexine_dsouza joined channel #puppet | ||
| [2010/02/18 21:15:02] @ Quit: diomio22: Quit: Connection reset by beer | ||
| [2010/02/18 21:15:05] @ Quit: swygue: Ping timeout: 260 seconds | ||
| [2010/02/18 21:18:30] @ docelic__ joined channel #puppet | ||
| [2010/02/18 21:21:13] @ teyo joined channel #puppet | ||
| [2010/02/18 21:25:00] @ Quit: Alagar: Ping timeout: 268 seconds | ||
| [2010/02/18 21:26:39] @ biertie joined channel #puppet | ||
| [2010/02/18 21:27:55] @ Quit: jaredrhine: Ping timeout: 256 seconds | ||
| [2010/02/18 21:28:49] @ swygue joined channel #puppet | ||
| [2010/02/18 21:34:29] @ Quit: bug: Quit: bug | ||
| [2010/02/18 21:37:49] @ blahdeblah joined channel #puppet | ||
| [2010/02/18 21:45:26] @ Quit: nigelk: Quit: nigelk | ||
| [2010/02/18 21:45:37] @ cliff-hm joined channel #puppet | ||
| [2010/02/18 21:45:49] @ Quit: jfreeman: Read error: Operation timed out | ||
| [2010/02/18 21:45:52] @ joe-mac left channel #puppet () | ||
| [2010/02/18 21:46:48] @ bug joined channel #puppet | ||
| [2010/02/18 22:16:43] @ jfreeman joined channel #puppet | ||
| [2010/02/18 22:19:24] @ jaredrhine joined channel #puppet | ||
| [2010/02/18 22:19:30] @ PaulWay[w] joined channel #puppet | ||
| [2010/02/18 22:21:02] @ jbooth__ joined channel #puppet | ||
| [2010/02/18 22:21:06] @ Quit: Insyte_: Write error: Broken pipe | ||
| [2010/02/18 22:21:07] @ Quit: jbooth_: Write error: Broken pipe | ||
| [2010/02/18 22:21:11] @ Insyte joined channel #puppet | ||
| [2010/02/18 22:21:21] @ Quit: nakano_: Quit: Coyote finally caught me | ||
| [2010/02/18 22:21:43] @ nakano joined channel #puppet | ||
| [2010/02/18 22:24:37] @ cmatheson joined channel #puppet | ||
| [2010/02/18 22:24:40] @ Quit: ppickfor: Remote host closed the connection | ||
| [2010/02/18 22:25:02] @ cwebber joined channel #puppet | ||
| [2010/02/18 22:25:43] <cmatheson> i'm trying to share a file with puppet, but i'm getting an error that "No specified source was found from puppet:///...". how can i debug this? | ||
| [2010/02/18 22:26:36] <PaulWay[w]> /var/log/puppet/puppetmaster.log? | ||
| [2010/02/18 22:26:44] <PaulWay[w]> /var/log/puppet/puppet.log | ||
| [2010/02/18 22:26:54] <PaulWay[w]> puppet -tov --debug on client | ||
| [2010/02/18 22:27:26] @ Quit: sebas891: Quit: Leaving. | ||
| [2010/02/18 22:27:35] <agaffney> cmatheson: what's your puppet:/// URL? | ||
| [2010/02/18 22:28:25] <cmatheson> agaffney: it's puppet:///webserver/files/libmime-lite-html-perl_1.23-1_all.deb (this is puppet 0.24.5) | ||
| [2010/02/18 22:29:17] <cmatheson> the server says "debug: mount[webserver]: Describing /webserver/files/libmime-lite-html-perl_1.23-1_all.deb for test" (no errors below that) | ||
| [2010/02/18 22:29:46] <agaffney> you probably don't need the 'files/' part | ||
| [2010/02/18 22:29:59] <agaffney> where is your file located within /etc/puppet? | ||
| [2010/02/18 22:30:13] <cmatheson> agaffney: it's in modules/webserver/files | ||
| [2010/02/18 22:30:18] <agaffney> is it /etc/puppet/modules/webserver/files/libmime-lite-html-perl_1.23-1_all.deb? | ||
| [2010/02/18 22:30:22] <agaffney> then yes, drop the files/ | ||
| [2010/02/18 22:30:33] <agaffney> just do puppet:///webserver/libmime-lite-html-perl_1.23-1_all.deb | ||
| [2010/02/18 22:31:15] <PaulWay[w]> the files/ is implied by the puppet:/// url | ||
| [2010/02/18 22:31:19] <PaulWay[w]> sort of. | ||
| [2010/02/18 22:31:50] <cmatheson> agaffney: PaulWay[w]: awesome thanks, that works | ||
| [2010/02/18 22:31:53] @ tjoe joined channel #puppet | ||
| [2010/02/18 22:31:54] @ Quit: cwebber: Read error: Connection reset by peer | ||
| [2010/02/18 22:31:59] @ cwebber joined channel #puppet | ||
| [2010/02/18 22:32:17] <PaulWay[w]> agaffney did all the work really... | ||
| [2010/02/18 22:32:32] <agaffney> heh | ||
| [2010/02/18 22:32:37] * agaffney hoards all the credit | ||
| [2010/02/18 22:33:16] <PaulWay[w]> :-) | ||
| [2010/02/18 22:40:52] @ Quit: ambroff: Quit: Ex-Chat | ||
| [2010/02/18 22:43:10] <cmatheson> is there a way to require that an action is performed only after all my packages have been installed? | ||
| [2010/02/18 22:43:54] <agaffney> after => [ Package[foo1], Package[foo2], Package[foo3], Package[foo4], ... ] | ||
| [2010/02/18 22:46:30] <cmatheson> oh sorry, i think i'm misunderstanding my problem. it seems like puppet is trying to install my packages in an order that causes my package manager to fail. are those not installed in the order specified? | ||
| [2010/02/18 22:48:12] <cmatheson> dang, never mind, i just got apt in an inconsistent state with my local_deb definition that i've been playing around with | ||
| [2010/02/18 22:48:32] @ littleidea joined channel #puppet | ||
| [2010/02/18 22:52:58] @ Quit: cwebber: Quit: cwebber | ||
| [2010/02/18 22:55:10] @ ccaum joined channel #puppet | ||
| [2010/02/18 22:59:43] @ Quit: swygue: Ping timeout: 256 seconds | ||
| [2010/02/18 23:03:02] @ WALoeIII joined channel #puppet | ||
| [2010/02/18 23:04:38] @ Quit: WALoeIII: Client Quit | ||
| [2010/02/18 23:06:18] @ Quit: QMan: Read error: Connection reset by peer | ||
| [2010/02/18 23:06:25] @ QMan joined channel #puppet | ||
| [2010/02/18 23:06:57] @ joe-mac joined channel #puppet | ||
| [2010/02/18 23:09:58] @ zz_RedPepper is now known as RedPepper | ||
| [2010/02/18 23:10:39] @ Quit: cmatheson: Quit: leaving | ||
| [2010/02/18 23:11:19] @ skiold joined channel #puppet | ||
| [2010/02/18 23:12:49] @ Quit: vzctl_: Remote host closed the connection | ||
| [2010/02/18 23:13:01] <RedPepper> hi there | ||
| [2010/02/18 23:13:06] <RedPepper> i need some help | ||
| [2010/02/18 23:13:15] @ Quit: jfreeman: Ping timeout: 252 seconds | ||
| [2010/02/18 23:13:26] <RedPepper> my definiton cannot process arrays as option | ||
| [2010/02/18 23:13:27] @ vzctl_ joined channel #puppet | ||
| [2010/02/18 23:14:20] <RedPepper> http://privatepaste.com/debfa73172 | ||
| [2010/02/18 23:22:05] @ Quit: cliff-hm: Ping timeout: 260 seconds | ||
| [2010/02/18 23:27:00] <ccaum> Did ssh_authorized_keys not do what you need? http://docs.reductivelabs.com/references/stable/type.html#ssh-authorized-key | ||
| [2010/02/18 23:28:50] <RedPepper> ccaum i am trying to understand puppet | ||
| [2010/02/18 23:28:54] <RedPepper> i am a beginner | ||
| [2010/02/18 23:29:14] <RedPepper> so i tried to reiplement it to understand how the language work | ||
| [2010/02/18 23:29:19] <RedPepper> *reimplement | ||
| [2010/02/18 23:29:41] <ccaum> Sounds good. | ||
| [2010/02/18 23:29:42] <RedPepper> but i have searched and puppet seems to have only limited support of arrays | ||
| [2010/02/18 23:30:01] <RedPepper> which means i cannot pass arrays to definitons like that | ||
| [2010/02/18 23:30:04] <RedPepper> am i right ? | ||
| [2010/02/18 23:30:34] <ccaum> So which parameter is the array getting set to? | ||
| [2010/02/18 23:31:58] <RedPepper> i tried authroized-keys { keys: [ filename => "home" , ensure => present; user => "mbecker", filename => "home", ensure => present; ] } | ||
| [2010/02/18 23:32:08] <RedPepper> authorized-keys i mean | ||
| [2010/02/18 23:32:35] <RedPepper> the error message is about [ and ] | ||
| [2010/02/18 23:34:25] <RedPepper> Could not parse for environment production: Syntax error at '['; expected ']' at /etc/puppet/manifests/nodes.pp:5 | ||
| [2010/02/18 23:34:33] <RedPepper> is the exact message | ||
| [2010/02/18 23:34:39] <ccaum> authorized-keys{ "keys": user => ["root","mbecker"], filename => "home", ensure => present; } | ||
| [2010/02/18 23:34:47] <RedPepper> aaah | ||
| [2010/02/18 23:34:50] <RedPepper> i see | ||
| [2010/02/18 23:34:50] <ccaum> THe arrays are the values | ||
| [2010/02/18 23:35:03] <RedPepper> this makes sense | ||
| [2010/02/18 23:35:05] <RedPepper> ;) | ||
| [2010/02/18 23:35:11] <RedPepper> thanks a lot | ||
| [2010/02/18 23:35:17] <ccaum> Although, for this define I would use the name as the user value | ||
| [2010/02/18 23:35:49] <ccaum> So you could do: $keys_users = ["root","mbecker"] | ||
| [2010/02/18 23:36:08] <ccaum> Then do: authorized-keys { $keys_users: filename => "home", ensure => present; } | ||
| [2010/02/18 23:36:41] <ccaum> You can add this line to your define: $user = $title | ||
| [2010/02/18 23:36:46] <RedPepper> would eliminate that stupid comment | ||
| [2010/02/18 23:36:49] @ Quit: lilmatt_: Quit: lilmatt_ | ||
| [2010/02/18 23:37:06] <ccaum> Actually, sorry. Do $user = $name | ||
| [2010/02/18 23:37:42] <RedPepper> isnt $title the same like $name | ||
| [2010/02/18 23:37:49] <RedPepper> ? | ||
| [2010/02/18 23:37:50] <ccaum> Yes and no | ||
| [2010/02/18 23:37:55] <RedPepper> please explain | ||
| [2010/02/18 23:38:08] <ccaum> If name's value is not set then puppet gives it the value of title | ||
| [2010/02/18 23:38:20] <RedPepper> ah okay | ||
| [2010/02/18 23:38:22] <RedPepper> i get | ||
| [2010/02/18 23:39:11] <ccaum> So you can do this: file { "My Awesomely Bad Title But I Don't Care": name => /etc/nsswitch.conf, content => puppet:///somewhere/file;} | ||
| [2010/02/18 23:39:32] <RedPepper> hehe ;) | ||
| [2010/02/18 23:39:38] <ccaum> And you can refer to that file resources with File["My Awesomely Bad Title But I Don't Care"] | ||
| [2010/02/18 23:40:27] <ccaum> I'm going to head to bed. Good luck in your puppeteering | ||
| [2010/02/18 23:40:52] @ Quit: ccaum: Quit: ccaum | ||
| [2010/02/18 23:47:21] @ Quit: axisys: Read error: Connection reset by peer | ||
| [2010/02/18 23:47:56] @ axisys joined channel #puppet | ||
| [2010/02/18 23:48:38] @ Quit: bug: Quit: bug | ||
| [2010/02/18 23:49:01] @ swygue joined channel #puppet | ||
| [2010/02/18 23:49:58] @ Quit: littleidea: Quit: littleidea | ||
| [2010/02/18 23:50:18] @ Quit: artista_frustrad: Ping timeout: 272 seconds |
Generated by irclog2html.py 2.6 by Marius Gedminas - find it at mg.pov.lt!