| [2011/10/28 00:01:36] @ Log started by gepetto | ||
| [2011/10/28 00:01:36] @ Quit: DanielFriesen: Ping timeout: 240 seconds | ||
| [2011/10/28 00:03:13] @ jaminja joined channel #puppet | ||
| [2011/10/28 00:03:13] @ Quit: jaminja: Changing host | ||
| [2011/10/28 00:03:13] @ jaminja joined channel #puppet | ||
| [2011/10/28 00:03:19] @ jaytaph joined channel #puppet | ||
| [2011/10/28 00:05:05] <ohadlevy> yevlempy: not sure if it was tested against ruby 1.9 | ||
| [2011/10/28 00:05:16] <ohadlevy> yevlempy: in anycase, it looks for ftools, maybe a missing gem? | ||
| [2011/10/28 00:05:30] <d3c> I'd like to manage multiple private keys for a node. I'm thinking define pk { ... } but those should modify the same file (~/.ssh/config) (add to it for each define). how may I do this? | ||
| [2011/10/28 00:11:42] @ hooper joined channel #puppet | ||
| [2011/10/28 00:12:15] <yevlempy> ohadlevy, puppet-dashboard has some issues with ruby -v 1.9.2, ftools is fileutils here | ||
| [2011/10/28 00:13:56] @ los324 joined channel #puppet | ||
| [2011/10/28 00:14:08] @ Quit: cosman2001: Quit: cosman2001 | ||
| [2011/10/28 00:14:09] @ raphdg joined channel #puppet | ||
| [2011/10/28 00:15:32] @ larstobi joined channel #puppet | ||
| [2011/10/28 00:16:28] * ohadlevy wonder if foreman runs with 1.9.2 | ||
| [2011/10/28 00:16:38] <ohadlevy> easy to find out | ||
| [2011/10/28 00:18:02] <fragfutter> d3c: augeas | ||
| [2011/10/28 00:19:49] @ Quit: brtl: Ping timeout: 258 seconds | ||
| [2011/10/28 00:20:05] @ cosman2001 joined channel #puppet | ||
| [2011/10/28 00:21:36] <d3c> fragfutter: how does this integrate with puppet? looking into it now | ||
| [2011/10/28 00:23:03] @ brtl joined channel #puppet | ||
| [2011/10/28 00:24:28] @ shug joined channel #puppet | ||
| [2011/10/28 00:25:42] @ Ramonster joined channel #puppet | ||
| [2011/10/28 00:26:31] @ Quit: langworthy: Quit: langworthy | ||
| [2011/10/28 00:26:41] @ pjd3 joined channel #puppet | ||
| [2011/10/28 00:27:21] <d3c> fragfutter: I see now. thanks for the tip | ||
| [2011/10/28 00:31:13] @ Quit: pjd3: Ping timeout: 245 seconds | ||
| [2011/10/28 00:31:33] <walterheck> is there any decent docs for puppet-module-tool? It seems like it is in the process of becoming for puppet what drush is for drupal? | ||
| [2011/10/28 00:33:08] @ zorg1 joined channel #puppet | ||
| [2011/10/28 00:33:18] @ Quit: zorg1: Remote host closed the connection | ||
| [2011/10/28 00:34:27] @ Quit: kubicek: Excess Flood | ||
| [2011/10/28 00:35:08] @ kubicek joined channel #puppet | ||
| [2011/10/28 00:35:17] <_rc> the thing with analogies is now people have to find out what drush does | ||
| [2011/10/28 00:35:53] <_rc> https://github.com/puppetlabs/puppet-module-tool#readme | ||
| [2011/10/28 00:36:47] <walterheck> _rc: oh yeah, sorry :) | ||
| [2011/10/28 00:40:26] @ trickyf joined channel #puppet | ||
| [2011/10/28 00:41:59] @ zipkid joined channel #puppet | ||
| [2011/10/28 00:42:22] <whack> walterheck: puppet faces is more akin to drush | ||
| [2011/10/28 00:42:46] <whack> https://github.com/puppetlabs/puppet-module-tool docs here | ||
| [2011/10/28 00:45:01] @ Meier joined channel #puppet | ||
| [2011/10/28 00:48:13] @ maes_ joined channel #puppet | ||
| [2011/10/28 00:50:29] @ Quit: maes_`: Ping timeout: 258 seconds | ||
| [2011/10/28 00:50:46] @ MartVisser joined channel #puppet | ||
| [2011/10/28 00:52:58] <Raboo> does anyone know if the labs42/example42 guy hangs in here? | ||
| [2011/10/28 00:55:05] @ kees_ joined channel #puppet | ||
| [2011/10/28 01:00:46] @ Quit: cosman2001: Quit: cosman2001 | ||
| [2011/10/28 01:02:18] @ Quit: Holocaine: | ||
| [2011/10/28 01:03:17] @ Quit: jsurfer: Quit: jsurfer | ||
| [2011/10/28 01:03:22] @ jonhattan joined channel #puppet | ||
| [2011/10/28 01:05:03] @ Quit: crazed: Read error: Connection reset by peer | ||
| [2011/10/28 01:08:23] @ Quit: artkrz: Read error: Connection reset by peer | ||
| [2011/10/28 01:08:38] @ artkrz joined channel #puppet | ||
| [2011/10/28 01:09:57] @ jsurfer joined channel #puppet | ||
| [2011/10/28 01:11:34] @ crazed joined channel #puppet | ||
| [2011/10/28 01:12:53] @ mmoya joined channel #puppet | ||
| [2011/10/28 01:13:29] @ MattyM joined channel #puppet | ||
| [2011/10/28 01:13:59] @ Quit: octe: Quit: leaving | ||
| [2011/10/28 01:14:03] @ itguru joined channel #puppet | ||
| [2011/10/28 01:14:04] @ Quit: itguru: Changing host | ||
| [2011/10/28 01:14:04] @ itguru joined channel #puppet | ||
| [2011/10/28 01:15:09] <fragfutter> are there any limits on namevar? can i use a : inside? | ||
| [2011/10/28 01:16:39] @ quit (okay bye) | ||
| [2011/10/28 01:20:07] @ Joined channel #puppet | ||
| [2011/10/28 01:20:07] @ Topic is "Important Security Announcement: http://bit.ly/AltNames | Thanks for coming to PuppetConf! Videos available http://www.youtube.com/user/puppetlabsinc | Puppet 2.7.6 and 2.6.12 available at downloads.puppetlabs.com | http://docs.puppetlabs.com | Bugs & Feature Requests http://bit.ly/dKVa0A." | ||
| [2011/10/28 01:20:07] @ Topic set by stahnma!~stahnma@fedora/stahnma on Mon Oct 24 13:04:13 -0700 2011 | ||
| [2011/10/28 01:20:20] @ Mode +Ccnt by adams.freenode.net | ||
| [2011/10/28 01:22:16] @ Quit: Spads_: Ping timeout: 260 seconds | ||
| [2011/10/28 01:23:02] @ Quit: m1ndsurfer: | ||
| [2011/10/28 01:23:22] <whack> fragfutter: % puppet apply -e 'notify { "Hello world, something:with::colons_R_)%((": ; }' | ||
| [2011/10/28 01:23:25] <whack> notice: Hello world, something:with::colons_R_)%(( | ||
| [2011/10/28 01:23:27] @ Quit: erodriguez: Read error: Connection reset by peer | ||
| [2011/10/28 01:29:45] @ Quit: itguru: Quit: Leaving | ||
| [2011/10/28 01:30:57] @ itguru joined channel #puppet | ||
| [2011/10/28 01:35:54] @ ecolitan_ joined channel #puppet | ||
| [2011/10/28 01:37:12] <kees_> how does a client/puppet agent with the puppet agent get new manifests from the puppetmaster? i've changed my simple manifest on the server to create a file in /tmp, but it doesn't show up on the agent; what am i missing? | ||
| [2011/10/28 01:37:21] @ Quit: ecolitan_: Remote host closed the connection | ||
| [2011/10/28 01:39:50] @ Quit: Spads: Quit: Reconnecting | ||
| [2011/10/28 01:40:01] @ Spads joined channel #puppet | ||
| [2011/10/28 01:43:28] @ Quit: illsci: Ping timeout: 248 seconds | ||
| [2011/10/28 01:44:26] @ Quit: TheDigitalNinja: Ping timeout: 260 seconds | ||
| [2011/10/28 01:47:26] @ Quit: fir31ight: Remote host closed the connection | ||
| [2011/10/28 01:47:48] @ Quit: gaveen: Ping timeout: 258 seconds | ||
| [2011/10/28 01:48:26] @ erodriguez joined channel #puppet | ||
| [2011/10/28 01:48:35] @ fir31ight joined channel #puppet | ||
| [2011/10/28 01:49:01] @ Quit: kolla: Remote host closed the connection | ||
| [2011/10/28 01:50:57] @ Quit: danikov: Quit: danikov | ||
| [2011/10/28 01:54:25] @ sebnash joined channel #puppet | ||
| [2011/10/28 01:55:35] @ ckauhaus joined channel #puppet | ||
| [2011/10/28 01:56:06] @ xim1 left channel #puppet () | ||
| [2011/10/28 02:01:06] @ gaveen joined channel #puppet | ||
| [2011/10/28 02:02:19] @ sihil joined channel #puppet | ||
| [2011/10/28 02:03:48] @ Quit: hooper: Ping timeout: 244 seconds | ||
| [2011/10/28 02:06:54] @ Quit: jaminja: Ping timeout: 244 seconds | ||
| [2011/10/28 02:08:46] @ danikov joined channel #puppet | ||
| [2011/10/28 02:14:00] <artkrz> kees_: it can be number of things | ||
| [2011/10/28 02:16:02] @ jaminja joined channel #puppet | ||
| [2011/10/28 02:17:34] @ mogitaff joined channel #puppet | ||
| [2011/10/28 02:22:12] @ Holocaine joined channel #puppet | ||
| [2011/10/28 02:23:09] @ Quit: csanchez: Quit: csanchez | ||
| [2011/10/28 02:27:01] @ csanchez joined channel #puppet | ||
| [2011/10/28 02:28:25] <walterheck> can anyone point me to a good explanation or example of how a module foo should use foo::params? I understand that that is best practice, right? | ||
| [2011/10/28 02:29:45] <_rc> from where do you understand it? it doesn't sound like a great best practice if it didn't come with an explanation | ||
| [2011/10/28 02:32:01] <walterheck> I see multiple modules take that approach, most notably the example42 modules from labs42 | ||
| [2011/10/28 02:33:26] <_rc> http://www.example42.com/?q=understandExample42PuppetModules | ||
| [2011/10/28 02:33:50] <walterheck> but what you are saying is that it's not best practice? | ||
| [2011/10/28 02:34:20] <_rc> no, what I'm saying is you shouldn't accept it as one till you understand it | ||
| [2011/10/28 02:36:24] <walterheck> well, if it's not best practice then i'm not sure I need to learn how they work, which is why I'm asking here. The collective of people here have a much better idea of how to do things properly then I can google around for in an entire day | ||
| [2011/10/28 02:37:11] <_rc> best practice isn't a one size fits all proposition. you need to find a set of practices that make sense and are consistent to you | ||
| [2011/10/28 02:38:01] <BadKarma> yeah example42 modules are very nice, saved us a lot of work and helped learn the clever way of doing things - recommended | ||
| [2011/10/28 02:38:24] <walterheck> well, partly I agree. Best tool for the job and all. But our puppet infra is still very small, so whenever I need to expand it using new features (run stages, environments, whatever) I'd like to get a sense of what is most commonly used and start research from there | ||
| [2011/10/28 02:38:25] @ Quit: itguru: Quit: This computer has gone to sleep | ||
| [2011/10/28 02:41:56] @ ken_barber joined channel #puppet | ||
| [2011/10/28 02:54:16] @ Quit: jcspray: Quit: jcspray | ||
| [2011/10/28 02:55:30] @ Quit: frostynova: Remote host closed the connection | ||
| [2011/10/28 03:04:50] @ Quit: Chillax: Quit: No Ping reply in 180 seconds. | ||
| [2011/10/28 03:04:56] @ Quit: Ancient: Ping timeout: 260 seconds | ||
| [2011/10/28 03:06:02] @ Chillax joined channel #puppet | ||
| [2011/10/28 03:08:13] @ Quit: jsurfer: Quit: jsurfer | ||
| [2011/10/28 03:11:01] @ Quit: shug: Quit: This computer has gone to sleep | ||
| [2011/10/28 03:13:45] @ Quit: bettydre1mit: Quit: Lost terminal | ||
| [2011/10/28 03:14:19] @ Ancient joined channel #puppet | ||
| [2011/10/28 03:15:25] @ Quit: csanchez: Read error: Connection reset by peer | ||
| [2011/10/28 03:17:08] <Volcane> walterheck: forget about best practise, learn the tool | ||
| [2011/10/28 03:17:23] <Volcane> everyone is different and does things differently | ||
| [2011/10/28 03:19:53] <Volcane> walterheck: and as for your specific question - this is even covered by examples on the puppetlabs blog | ||
| [2011/10/28 03:23:40] @ csanchez joined channel #puppet | ||
| [2011/10/28 03:24:58] @ Quit: choonming: Quit: Leaving | ||
| [2011/10/28 03:25:26] @ walkeran_lappy joined channel #puppet | ||
| [2011/10/28 03:30:22] <Volcane> ah :) | ||
| [2011/10/28 03:30:25] <Volcane> oops, wrong # | ||
| [2011/10/28 03:40:48] @ `aimka` joined channel #puppet | ||
| [2011/10/28 03:41:15] @ simon-_ joined channel #puppet | ||
| [2011/10/28 03:42:07] @ Quit: Holocaine: | ||
| [2011/10/28 03:42:56] @ Britz joined channel #puppet | ||
| [2011/10/28 03:44:31] @ Quit: sihil: Ping timeout: 260 seconds | ||
| [2011/10/28 03:44:59] @ tdoe joined channel #puppet | ||
| [2011/10/28 03:45:26] @ Britz left channel #puppet () | ||
| [2011/10/28 03:46:28] <BadKarma> Could not prepare for execution: Got 1 failure(s) while initializing: change from directory to file failed: Could not set 'file on ensure: Is a directory - /var/lib/puppet/facts | ||
| [2011/10/28 03:46:59] <BadKarma> any idea about this one it keeps on complaining, when I removed the dir the puppetmasterd starts ok but on next restart is unhappy again, rhel6 | ||
| [2011/10/28 03:47:17] <BadKarma> i guess I am looking for a more permanent solution | ||
| [2011/10/28 03:48:00] <misc> when did it start to appear ? | ||
| [2011/10/28 03:48:50] <Volcane> you used --genconfig to make your configs right? | ||
| [2011/10/28 03:51:00] <Fai1ure> so.. After reading what "Pro Puppet" has to say about scoping, I'm still not totally grokking that bit fully | ||
| [2011/10/28 03:51:29] <Fai1ure> has anyone written something that does explain the (new) scoping concepts in puppet very clearly? | ||
| [2011/10/28 03:52:15] <BadKarma> misc: since the very first day | ||
| [2011/10/28 03:52:15] <tdoe> hello alll, I' relative new with puppet and got a problem with "if defined(Class["bla-${hostname}"] | ||
| [2011/10/28 03:52:15] <tdoe> I imported the file which includes the class two lines before with a "import <myfile>", But it never finds its way inside the if statetment... | ||
| [2011/10/28 03:52:15] <tdoe> Problem is that it is not given that the class really exists for each host, but if it exists it has to be executed.. | ||
| [2011/10/28 03:52:15] <tdoe> Any Idea what I made wrong? | ||
| [2011/10/28 03:52:19] <BadKarma> Volcane: yes | ||
| [2011/10/28 03:52:52] <Volcane> BadKarma: #9491 but it has to be said its really bad form to ask questions the 2nd hit on google answers for you | ||
| [2011/10/28 03:52:53] <gepetto> Volcane: BadKarma: #9491 is http://projects.puppetlabs.com/issues/show/9491 "Puppet - Bug #9491: --genconfig creating invalid configuration. It has a status of Accepted and is assigned to -" | ||
| [2011/10/28 03:53:43] <_rc> tdoe: import isn't for making classes be defined/used. include is | ||
| [2011/10/28 03:57:21] @ itguru joined channel #puppet | ||
| [2011/10/28 03:57:21] @ Quit: itguru: Changing host | ||
| [2011/10/28 03:57:21] @ itguru joined channel #puppet | ||
| [2011/10/28 03:57:56] @ Quit: elementai: Quit: Leaving. | ||
| [2011/10/28 04:00:05] @ Quit: csanchez: Quit: csanchez | ||
| [2011/10/28 04:01:33] <tdoe> _rc: thanks, but if I understand it right, then with include I am only be able to give the classname. But in my case I have all hostspecific classes in an seperate file which is imported by the "baseclass" with import, and only when the corresponding class to the host exists (within the if define) it should be imported. | ||
| [2011/10/28 04:01:33] <tdoe> Maybe the if define is wrong, but how can I execute a class only if it exists or is it possible to execute a non existing class without throwing an error for examle with something like try: import blabla-${hostname} ? | ||
| [2011/10/28 04:02:18] <Volcane> dont use import | ||
| [2011/10/28 04:02:23] <Volcane> if you're using import you did it wrong | ||
| [2011/10/28 04:04:06] <Volcane> and you're probably doing something thats overly clever | ||
| [2011/10/28 04:04:29] <Volcane> and ppl cant help you because its just not how puppet works | ||
| [2011/10/28 04:05:37] @ Quit: jonhattan: Quit: llevaré una chaquete de guns'n'roses | ||
| [2011/10/28 04:07:08] <walkeran_lappy> Another day, another import FTF :( | ||
| [2011/10/28 04:08:07] @ csanchez joined channel #puppet | ||
| [2011/10/28 04:10:40] @ Quit: Demosthenes: Ping timeout: 248 seconds | ||
| [2011/10/28 04:11:06] <Espen-_o> I have a dynamic motd that changes every run. How can I ignore that in my reports? | ||
| [2011/10/28 04:11:11] @ Demosthenes joined channel #puppet | ||
| [2011/10/28 04:12:17] <Espen-_o> Is it even possible? | ||
| [2011/10/28 04:12:36] <Volcane> no :( | ||
| [2011/10/28 04:14:54] <tdoe> Volcano: thanks...going to to try a bit to solve the riddle | ||
| [2011/10/28 04:14:56] @ Quit: itguru: Quit: This computer has gone to sleep | ||
| [2011/10/28 04:15:39] <Volcane> tdoe: best way to ask for help is to show code though | ||
| [2011/10/28 04:15:44] <dcarley> are they not influenced by the loglevel metaparam? | ||
| [2011/10/28 04:15:51] <Volcane> dcarley: no :( | ||
| [2011/10/28 04:16:09] * misc find Volcane a little bit sad today | ||
| [2011/10/28 04:16:33] <Volcane> I opened #7555 which ended in an exercise of bikeshedding over implimentations rather than the desirability of the final outcome | ||
| [2011/10/28 04:16:33] <gepetto> Volcane: #7555 is http://projects.puppetlabs.com/issues/show/7555 "Puppet - Feature #7555: should be able to exclude a resource from reporting. It has a status of Needs More Information and is assigned to Nigel Kersten" | ||
| [2011/10/28 04:16:45] <Espen-_o> Guess I will have to change my motd so that every node doesn't show up with a change icon in the dashboard | ||
| [2011/10/28 04:17:15] <misc> of you could use a exec to set the content of the motd, instead of a file ? | ||
| [2011/10/28 04:19:03] @ Quit: jaminja: Ping timeout: 252 seconds | ||
| [2011/10/28 04:19:38] @ Quit: Enf: Quit: Leaving | ||
| [2011/10/28 04:19:58] <Espen-_o> Yeah I could look into that. | ||
| [2011/10/28 04:20:39] <tdoe> Volcano: ;-) ok, here is a bit of code: | ||
| [2011/10/28 04:20:40] <tdoe> The Base-Class: | ||
| [2011/10/28 04:20:40] <tdoe> class crontabs { | ||
| [2011/10/28 04:20:40] <tdoe> tag("crontabs") | ||
| [2011/10/28 04:20:40] <tdoe> notify{"INSIDE CRONTABS CLASS: Needed Class: crontabs-${hostname}": } | ||
| [2011/10/28 04:20:40] <tdoe> include "defines/*.pp" | ||
| [2011/10/28 04:20:40] <tdoe> if ( defined( Class["crontabs-${hostname}"] ) ) { | ||
| [2011/10/28 04:20:41] <tdoe> notify{"HOSTSPECIFIC CRON CLASS FOUND": } | ||
| [2011/10/28 04:20:41] <tdoe> import "crontabs-$hostname" | ||
| [2011/10/28 04:20:42] <tdoe> } else { | ||
| [2011/10/28 04:20:42] <tdoe> notify{"HOSTSPECIFIC CRON CLASS NOT FOUND crontabs-${hostname}": } | ||
| [2011/10/28 04:20:43] <tdoe> } | ||
| [2011/10/28 04:20:43] <tdoe> } | ||
| [2011/10/28 04:20:44] <tdoe> And the content of the file included by 'include "defines/*.pp"' | ||
| [2011/10/28 04:20:56] <Volcane> tdoe: use pastie.org pls | ||
| [2011/10/28 04:21:03] <tdoe> oh sorry | ||
| [2011/10/28 04:22:15] <Volcane> defined() is only true for *included* classes | ||
| [2011/10/28 04:22:21] <Volcane> and its parse order dependant | ||
| [2011/10/28 04:23:36] <tdoe> here is the pasti link..... sorry for that ;-) | ||
| [2011/10/28 04:23:36] <tdoe> http://pastie.org/2772608 | ||
| [2011/10/28 04:24:02] <Volcane> also you dont include files so line 4 makes no sense | ||
| [2011/10/28 04:24:31] <Volcane> actually nothing there makes any sense | ||
| [2011/10/28 04:24:49] <tdoe> :-( | ||
| [2011/10/28 04:25:06] <Volcane> you're tryingt o only include a class if it exist on the disk? | ||
| [2011/10/28 04:25:25] <tdoe> Volcano: yes | ||
| [2011/10/28 04:25:29] @ erthad left channel #puppet () | ||
| [2011/10/28 04:25:39] <Volcane> no builtin way to do that | ||
| [2011/10/28 04:26:24] @ erthad joined channel #puppet | ||
| [2011/10/28 04:26:33] @ Quit: erthad: Changing host | ||
| [2011/10/28 04:26:33] @ erthad joined channel #puppet | ||
| [2011/10/28 04:26:55] <tdoe> ok, thanks a lot for the help, then I have to find a better way | ||
| [2011/10/28 04:27:23] @ Quit: walkeran_lappy: Quit: Leaving. | ||
| [2011/10/28 04:27:43] @ jaminja joined channel #puppet | ||
| [2011/10/28 04:27:50] @ Quit: yevlempy: Ping timeout: 258 seconds | ||
| [2011/10/28 04:27:54] <erthad> is there a way to make environment :undef rather than "production" when it is not set? | ||
| [2011/10/28 04:28:26] <Volcane> it cant be unset | ||
| [2011/10/28 04:35:18] @ Quit: tdoe: Ping timeout: 276 seconds | ||
| [2011/10/28 04:44:12] <erthad> is there a section like [agent], [server] in puppet.conf (except [main]) for the environment to be set for masterless puppet run (i.e. puppet apply) | ||
| [2011/10/28 04:44:13] <erthad> ? | ||
| [2011/10/28 04:45:02] <Volcane> puppet agent uses [agent] puppet server uses [server] | ||
| [2011/10/28 04:45:05] <Volcane> puppet apply uses? | ||
| [2011/10/28 04:45:43] <erthad> puppet apply ignores [agent] -- I've just checked that | ||
| [2011/10/28 04:46:11] <Volcane> puppet foo uses [foo] | ||
| [2011/10/28 04:47:58] <erthad> no, environment set in [apply] section does not get passed to variable | ||
| [2011/10/28 04:49:03] <Volcane> try [user] ? that would be really dumb if thats right but try it | ||
| [2011/10/28 04:50:47] <Raboo> has lsbmajdistrelease been removed in the latest release of facter? | ||
| [2011/10/28 04:51:26] <Raboo> what is puppet server?, isn't it puppet master? | ||
| [2011/10/28 04:52:11] @ iclebyte joined channel #puppet | ||
| [2011/10/28 04:52:17] <Raboo> what should i use instead of lsbmajdistrelease | ||
| [2011/10/28 04:52:27] <Volcane> Raboo: do yo have the lsb packages installed? | ||
| [2011/10/28 04:52:41] <erthad> Volcane: it does. I should have looked at run_mode for that | ||
| [2011/10/28 04:53:11] <Volcane> erthad: wow thats incredibly dumb | ||
| [2011/10/28 04:53:45] <Raboo> huh? | ||
| [2011/10/28 04:53:47] <Raboo> lsb? | ||
| [2011/10/28 04:53:59] <Volcane> Raboo: your OS has lsb packages that enable that fact | ||
| [2011/10/28 04:54:10] <Raboo> ohh | ||
| [2011/10/28 04:54:13] <Raboo> ok | ||
| [2011/10/28 04:54:29] <Raboo> i guess not then | ||
| [2011/10/28 04:55:18] @ Quit: walterheck: Quit: Computer has gone to sleep | ||
| [2011/10/28 04:58:00] <Raboo> i have now a catch 22 | ||
| [2011/10/28 04:58:10] <Raboo> i have a module, called utils | ||
| [2011/10/28 04:58:21] <Raboo> which are the default packages i want added after a minimal install | ||
| [2011/10/28 04:58:30] <Raboo> and i have a package called vmware-tools | ||
| [2011/10/28 04:58:36] @ nul0op joined channel #puppet | ||
| [2011/10/28 04:58:59] <Raboo> which require redhat-lsb, if it ain't installed it breaks yum, by adding a repo file with a missing value | ||
| [2011/10/28 04:59:21] <Raboo> so it breaks yum, then it tries to install redhat-lsb | ||
| [2011/10/28 04:59:30] <Raboo> which of course fails because yum is broken | ||
| [2011/10/28 04:59:48] <Volcane> cant just require lsb package is installed before tools? | ||
| [2011/10/28 05:00:15] <Raboo> can i require these utils module before everything? | ||
| [2011/10/28 05:00:30] <Raboo> or should i have a package requirement in the vmware-tools module? | ||
| [2011/10/28 05:00:56] <Volcane> adding it on the package is good - however if yo have code that uses those facts | ||
| [2011/10/28 05:01:02] <Volcane> those facts will only exist on *next* puppet run | ||
| [2011/10/28 05:01:32] <Raboo> nope, it breaks yum completly | ||
| [2011/10/28 05:01:38] <Raboo> it cannot install anything | ||
| [2011/10/28 05:01:53] @ skm joined channel #puppet | ||
| [2011/10/28 05:02:07] <Raboo> bbl, meeting | ||
| [2011/10/28 05:02:26] <Kiall> It sounds like the correct fix, and least risky fix, is to have VMWare tools explicitly require redhat-lsb... | ||
| [2011/10/28 05:02:44] <Kiall> otherwise a small mistake could lead to it mucking up again ;) | ||
| [2011/10/28 05:04:00] @ yevlempy joined channel #puppet | ||
| [2011/10/28 05:04:39] @ marrusl joined channel #puppet | ||
| [2011/10/28 05:06:57] @ Quit: themadcanudist: Quit: Leaving. | ||
| [2011/10/28 05:08:28] @ Quit: yevlempy: Ping timeout: 258 seconds | ||
| [2011/10/28 05:08:51] @ Quit: erthad: Ping timeout: 260 seconds | ||
| [2011/10/28 05:09:35] @ sam_ joined channel #puppet | ||
| [2011/10/28 05:11:07] @ Quit: erodriguez: Quit: erodriguez | ||
| [2011/10/28 05:15:49] @ foudfou joined channel #puppet | ||
| [2011/10/28 05:16:06] @ AphisOne joined channel #puppet | ||
| [2011/10/28 05:16:43] <foudfou> Hi all, how do I modify puppet.conf on all nodes ? | ||
| [2011/10/28 05:17:43] @ AphisOne left channel #puppet () | ||
| [2011/10/28 05:17:47] @ yevlempy joined channel #puppet | ||
| [2011/10/28 05:19:43] @ Quit: csanchez: Quit: csanchez | ||
| [2011/10/28 05:21:26] <n1x0n> Is there any difference between require and after ? | ||
| [2011/10/28 05:22:09] @ tnguyen joined channel #puppet | ||
| [2011/10/28 05:22:39] @ itguru joined channel #puppet | ||
| [2011/10/28 05:22:52] <_rc> yes, after doesn't exist | ||
| [2011/10/28 05:23:00] <_rc> it's before/require | ||
| [2011/10/28 05:23:07] @ kelseyhightower joined channel #puppet | ||
| [2011/10/28 05:23:13] <n1x0n> :-D | ||
| [2011/10/28 05:23:25] <_rc> and notify/subscribe | ||
| [2011/10/28 05:23:32] * n1x0n wasted few bytes of bandwidth | ||
| [2011/10/28 05:24:05] <n1x0n> _rc: _rc mea culpa, thx | ||
| [2011/10/28 05:24:40] @ erthad joined channel #puppet | ||
| [2011/10/28 05:25:24] @ rgsteele joined channel #puppet | ||
| [2011/10/28 05:25:39] @ Quit: AshishH: Remote host closed the connection | ||
| [2011/10/28 05:26:58] <rgsteele> How does one actually test a Puppet function within irb? Puppet::Parser::Functions.function(:myfunc) returns "myfunc", so I know it's accessible, and I've done the prerequisite "require 'puppet'" and "require '/path/to/myfunc.rb'". I'm just not sure how to call it within irb (var = myfunc('arg1', 'arg2') doesn't work) | ||
| [2011/10/28 05:27:53] <masterzen> rgsteele: functions live in the scope | ||
| [2011/10/28 05:28:19] <masterzen> rgsteele: let me check exactly how you can call them | ||
| [2011/10/28 05:30:38] @ Quit: bobra: Ping timeout: 260 seconds | ||
| [2011/10/28 05:30:46] <rgsteele> Hm... perhaps: "scope = Puppet::Parser::Scope.new()", followed by "Puppet::Parser::Functions.function("myfunc")", followed by "scope.function_myfunc(['arg1', 'arg2'])", or something similar | ||
| [2011/10/28 05:31:48] <masterzen> rgsteele: ok, you need a scope: scope = Puppet::Parser::Scope.new | ||
| [2011/10/28 05:32:00] @ Quit: nul0op: Ping timeout: 240 seconds | ||
| [2011/10/28 05:32:01] <masterzen> rgsteele: then, scope.function_myfunc(...) would do it | ||
| [2011/10/28 05:32:12] <rgsteele> Yeah, that's what I just tried | ||
| [2011/10/28 05:32:19] <masterzen> rgsteele: yes, I should read before typing :) | ||
| [2011/10/28 05:32:34] <rgsteele> NoMethodError: undefined method `environment' for nil:NilClass | ||
| [2011/10/28 05:32:40] <rgsteele> will pastebin the full backtrace | ||
| [2011/10/28 05:33:38] @ sihil joined channel #puppet | ||
| [2011/10/28 05:33:43] @ Quit: yevlempy: Quit: Leaving | ||
| [2011/10/28 05:33:52] @ Quit: sihil: Read error: Connection reset by peer | ||
| [2011/10/28 05:35:38] @ Quit: blentz: Ping timeout: 244 seconds | ||
| [2011/10/28 05:37:38] @ Quit: simon-_: Ping timeout: 260 seconds | ||
| [2011/10/28 05:39:15] @ gob_bluth joined channel #puppet | ||
| [2011/10/28 05:39:51] @ jovy joined channel #puppet | ||
| [2011/10/28 05:40:10] <rgsteele> Ah, hang on, I see some problems | ||
| [2011/10/28 05:41:42] <gob_bluth> hi, i upgraded to the new version of puppet on deb6 (we last were on the puppetmaster on deb5) and i've copied over our /etc/puppet directory, i'm now getting "Peer's certificate has an invalid signature." | ||
| [2011/10/28 05:41:43] @ foudfou left channel #puppet () | ||
| [2011/10/28 05:41:49] <jY> anyone know the cause of getting the following error.. but then next puppet run it's not there till i change something in the manifest | ||
| [2011/10/28 05:41:50] <jY> err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class module::pusher for host.domain.com at /etc/puppet/manifests/nodes-production.pp:30 on node host.domain.com | ||
| [2011/10/28 05:42:04] @ TooExcited joined channel #puppet | ||
| [2011/10/28 05:42:31] <gob_bluth> jY: you don't have module::pusher in the main class module {} declaration. or, you could have a typing error (like missing a ':' etc) | ||
| [2011/10/28 05:43:10] <jY> gob_bluth: the odd part it the next run it runs things from module::pusher | ||
| [2011/10/28 05:43:12] @ Quit: itguru: Quit: This computer has gone to sleep | ||
| [2011/10/28 05:43:22] @ cliff-hm joined channel #puppet | ||
| [2011/10/28 05:43:33] <gob_bluth> jY: oh, dunno then. that's odd | ||
| [2011/10/28 05:45:12] @ philbert_777 joined channel #puppet | ||
| [2011/10/28 05:45:57] @ ffrank joined channel #puppet | ||
| [2011/10/28 05:46:50] <ffrank> hi. puppetd --test (2.6.8) doesn't seem to return 0 after a succesfull run, but instead the number of resources that changed(?) questions: 1. WTF? 2. can I disable this? | ||
| [2011/10/28 05:48:23] <ffrank> oh nice - it *does* return 0 on error. oh god, why... | ||
| [2011/10/28 05:49:35] <fragfutter> --detailed-exitcodes | ||
| [2011/10/28 05:53:10] <ffrank> ah, so --test implies that now? so I want --onetime --no-daemonize instead, right? | ||
| [2011/10/28 05:54:10] @ Bogdar joined channel #puppet | ||
| [2011/10/28 05:54:49] @ iranzo is now known as iranzo_AFK | ||
| [2011/10/28 05:55:13] @ cast joined channel #puppet | ||
| [2011/10/28 05:57:11] <ffrank> fragfutter: working fine, thanks | ||
| [2011/10/28 05:57:31] <rgsteele> masterzen: Think I got most of it cracked. The only thing I haven't been able to get is pulling a scoped variable from the manifest in my function. Line 5 here shows what doesn't work: http://pastie.org/2772924. I think the fact that it's a parameterized class is what's killing me. | ||
| [2011/10/28 05:57:32] @ Quit: iranzo_AFK: Remote host closed the connection | ||
| [2011/10/28 05:59:49] <masterzen> rgsteele: I think you can't lookupvar directly a hash instance. Do the following: lookupvar("ec_lb::lb::instances") this should return a ruby hash matching your puppet hash. Then you can access the correct instance and so on | ||
| [2011/10/28 06:00:31] @ brandon_dacrib joined channel #puppet | ||
| [2011/10/28 06:00:39] @ mwcjr joined channel #puppet | ||
| [2011/10/28 06:02:21] @ indigo joined channel #puppet | ||
| [2011/10/28 06:04:27] @ uphillian joined channel #puppet | ||
| [2011/10/28 06:04:38] <sam_> Hi. I've recently moved from WEBbrick to Mongrel with multiple puppetmasterd processes (fronted by an httpd). By previously workin inventory is now not populating. I can see my db connections in the process list, but nothing gets written. If I drop back to single process + webbrick (all else being equal) then all is well again. Is the REST terminus the only one supported under Mongrel? | ||
| [2011/10/28 06:05:11] @ ffrank left channel #puppet ("Leaving") | ||
| [2011/10/28 06:05:40] @ Quit: ezekiel: Remote host closed the connection | ||
| [2011/10/28 06:06:10] @ Quit: marrusl: Ping timeout: 258 seconds | ||
| [2011/10/28 06:07:24] <Bogdar> sam_, do you use SQLlite or Mysql DB ? | ||
| [2011/10/28 06:07:29] <sam_> mysql | ||
| [2011/10/28 06:07:59] @ lborda joined channel #puppet | ||
| [2011/10/28 06:08:38] <Bogdar> sam_, post your httpd balancer config somewhere please | ||
| [2011/10/28 06:08:57] <sam_> Bogdar: sure, 2 ticks ... | ||
| [2011/10/28 06:10:45] @ elementai joined channel #puppet | ||
| [2011/10/28 06:10:49] @ frostynova joined channel #puppet | ||
| [2011/10/28 06:11:06] @ slap_stick joined channel #puppet | ||
| [2011/10/28 06:11:26] <slap_stick> Hey how can I use a notify in an exec it seems from | ||
| [2011/10/28 06:11:33] <sam_> Bogdar: http://pastebin.com/MM38WDW7 | ||
| [2011/10/28 06:11:56] <slap_stick> The output that it does the service restart before the exec Is returned | ||
| [2011/10/28 06:14:01] <Bogdar> sam_, I'd advice you to switch to passenger - http://projects.puppetlabs.com/projects/1/wiki/Using_Passenger | ||
| [2011/10/28 06:14:12] @ Quit: jaydg: Quit: Verlassend | ||
| [2011/10/28 06:15:03] @ Bass10 joined channel #puppet | ||
| [2011/10/28 06:15:20] <Bogdar> sam_, Or have a look at nginx + unicorn setup | ||
| [2011/10/28 06:15:23] @ mwcjr left channel #puppet () | ||
| [2011/10/28 06:16:01] @ Quit: Bass10: Max SendQ exceeded | ||
| [2011/10/28 06:16:23] @ Bass10 joined channel #puppet | ||
| [2011/10/28 06:17:12] @ itguru joined channel #puppet | ||
| [2011/10/28 06:17:20] @ Quit: kermit: Quit: Leaving. | ||
| [2011/10/28 06:17:59] @ Quit: itguru: Client Quit | ||
| [2011/10/28 06:18:56] <sam_> Bogdar: I agree; I'd like to stick with this if possible for consistency. I see no reason in principal that this shouldn't work. Scale and be maintainable, I see, but it should work, right? | ||
| [2011/10/28 06:19:05] <kees_> i must be doing something horrible wrong because my variables aren't working: http://pastebin.com/3wqw7r5X .. but what am i doing wrong? | ||
| [2011/10/28 06:20:00] @ blentz joined channel #puppet | ||
| [2011/10/28 06:20:20] <Bogdar> sam_, yes, it should, but I think 'passenger' setup is same complicated as 'mongrel' and it should work faster (I hope) | ||
| [2011/10/28 06:21:23] @ Quit: cliff-hm: Remote host closed the connection | ||
| [2011/10/28 06:22:24] <sam_> Bogdar: This works, just when I switch puppetmasterd to multiple procs and enable mongrel inventory db updates stop. Speed has nothing to do with it in this case. As far as I can see, switching to mongrel borks the db inventory terminus. | ||
| [2011/10/28 06:22:50] <Bogdar> oops | ||
| [2011/10/28 06:22:52] <sam_> Bogdar: I mean, works in all other respects: Scales to my 1000 or so hosts, fails over, etc. | ||
| [2011/10/28 06:23:19] <Bogdar> I used mongrel lot of time ago, before puppet was able to use MysqL | ||
| [2011/10/28 06:23:35] @ marrusl joined channel #puppet | ||
| [2011/10/28 06:23:37] <sam_> Bogdar: Thanks anyway :) | ||
| [2011/10/28 06:23:57] <sam_> Anybody else have experience of using inventory under anything other than WEBbrick? | ||
| [2011/10/28 06:24:30] @ itguru joined channel #puppet | ||
| [2011/10/28 06:24:30] @ Quit: itguru: Changing host | ||
| [2011/10/28 06:24:30] @ itguru joined channel #puppet | ||
| [2011/10/28 06:26:50] @ AphisOne joined channel #puppet | ||
| [2011/10/28 06:29:16] @ Quit: sam_: Quit: leaving | ||
| [2011/10/28 06:29:18] @ cliff-hm joined channel #puppet | ||
| [2011/10/28 06:29:50] @ sam_ joined channel #puppet | ||
| [2011/10/28 06:30:17] @ Quit: slap_stick: Remote host closed the connection | ||
| [2011/10/28 06:30:23] @ labrown joined channel #puppet | ||
| [2011/10/28 06:32:35] @ Quit: marrusl: Remote host closed the connection | ||
| [2011/10/28 06:32:55] @ AphisOne left channel #puppet () | ||
| [2011/10/28 06:34:59] @ swygue joined channel #puppet | ||
| [2011/10/28 06:35:49] @ themadcanudist joined channel #puppet | ||
| [2011/10/28 06:39:32] <indigo> is there a good way to configure the environment for exec such that it uses the home of the user i specify? | ||
| [2011/10/28 06:39:33] @ Quit: ghg: Quit: Out of here. | ||
| [2011/10/28 06:40:21] <indigo> i could set $HOME in the exec{...}, but then I'd need to know what it is, while i'd prefer to use what is specified by the OS configuration. | ||
| [2011/10/28 06:40:57] <rgsteele> masterzen: Thanks, I'll give it a shot. | ||
| [2011/10/28 06:42:17] <cast> indigo: you could have exec call a wrapper that sets everything up just right | ||
| [2011/10/28 06:42:52] <indigo> the actual problem i'm trying to solve here is authenticating to ssh so i can do a bzr checkout | ||
| [2011/10/28 06:42:53] <rgsteele> sam_: Mongrel and Webrick don't scale at all. We use Passenger on 150+ servers, 3 Puppetmasters. | ||
| [2011/10/28 06:43:22] <indigo> i thought i'd create a service account, and have that account generate a key pair, and put the public key on the ssh server that has the source branch. | ||
| [2011/10/28 06:44:15] @ Quit: swygue: Ping timeout: 252 seconds | ||
| [2011/10/28 06:44:48] @ Kazuhiro joined channel #puppet | ||
| [2011/10/28 06:46:27] @ Quit: brandon_dacrib: Quit: brandon_dacrib | ||
| [2011/10/28 06:46:30] @ Quit: ezryx: Remote host closed the connection | ||
| [2011/10/28 06:47:23] @ ezryx joined channel #puppet | ||
| [2011/10/28 06:50:07] @ kermit joined channel #puppet | ||
| [2011/10/28 06:51:23] <indigo> ok, here's another possibility...how can I manage /etc/ssh/ssh_config without conflicting with other things that might want to manage it? | ||
| [2011/10/28 06:52:16] <jpalmer> indigo: one of the key concepts of "centralized config management" is: there is one central place to manage configs. In short, the *correct* answer is, manage your configs with 1 tool. not multiple. | ||
| [2011/10/28 06:52:18] @ brandon_dacrib joined channel #puppet | ||
| [2011/10/28 06:53:27] @ johnston joined channel #puppet | ||
| [2011/10/28 06:54:33] <fragfutter> indigo: augeas | ||
| [2011/10/28 06:54:53] <_rc> fragfutter: 0 jpalmer: 1 | ||
| [2011/10/28 06:54:58] <indigo> jpalmer: sure, the one tool is puppet. But, what if i have one module that requires some particular Host entry in ssh_config, and another module that requires another entry? | ||
| [2011/10/28 06:55:00] <fragfutter> damit | ||
| [2011/10/28 06:55:20] <sam_> I've just dropped the inventory_ tables and fallen back to WEBbrick. I get logging complainging about the SQL failure, due to fact of table when attempting to update the cache. | ||
| [2011/10/28 06:55:40] <sam_> When I move back to Mongrel, the cache update messages log happily, and the local YAML mtime changes. | ||
| [2011/10/28 06:55:45] <_rc> then you have a ssh module with a ssh::section define, and you use the ssh::section define in the two modules that care | ||
| [2011/10/28 06:56:16] <jpalmer> indigo: use one module to manage sshd, and put all of the logic there. | ||
| [2011/10/28 06:56:19] <sam_> I think its pretty-much a given that for Mongrel the REST inventory terminus is assumed. This is implied in the docs, but isn't stated. | ||
| [2011/10/28 06:56:42] <fragfutter> indigo: http://pastie.org/2773260 | ||
| [2011/10/28 06:56:51] @ Quit: jaminja: Read error: Operation timed out | ||
| [2011/10/28 06:57:02] <sam_> and whilst REST would be cool with multiple masters and then an inventory server, sucks with multiple processes on the same box you just want to balance and write to the same db. | ||
| [2011/10/28 06:57:52] @ Quit: johnston: Ping timeout: 265 seconds | ||
| [2011/10/28 06:58:19] <sam_> rgsteele: I'll guess I'll go that route then. I wanted to keep my tiers seperated. Guess I can't. | ||
| [2011/10/28 06:58:59] <sam_> rgsteele: I am mod_balancing many mongrels. | ||
| [2011/10/28 06:59:11] @ mawser joined channel #puppet | ||
| [2011/10/28 06:59:43] @ Quit: skm: Quit: Computer has gone to sleep. | ||
| [2011/10/28 06:59:59] <joe-mac> mongrel sucks | ||
| [2011/10/28 07:00:44] <indigo> so what if the file i want to manage is ssh_config, not sshd_config? | ||
| [2011/10/28 07:00:58] @ johnston joined channel #puppet | ||
| [2011/10/28 07:01:19] <indigo> augeas doesn't seem to know anything about it | ||
| [2011/10/28 07:02:21] <Dominic> indigo: we've been having this discussion today in #augeas. There's a lens in the latest trunk, but not released yet.. you can drop it onto your system and then use the load_path param of the augeas type. | ||
| [2011/10/28 07:02:24] <_rc> I'd avoid augeas unless it's a last resort; it's configuration editing rather than configuration management | ||
| [2011/10/28 07:02:46] <indigo> mostly i just want to put Host entries in it; so is there some way I can make a resource in puppet that is a host entry, then have puppet concatenate them all together to produce /etc/ssh/ssh_config? | ||
| [2011/10/28 07:03:07] <_rc> indigo: yes, puppet-concat | ||
| [2011/10/28 07:03:19] <_rc> https://github.com/ripienaar/puppet-concat | ||
| [2011/10/28 07:03:35] <fragfutter> indigo: have a ssh.d.puppet folder with all files recursively managed and purged by puppet. each define notifies an exec that will cat them all together | ||
| [2011/10/28 07:04:02] @ spiette joined channel #puppet | ||
| [2011/10/28 07:04:07] @ Quit: Stenbryggen: Quit: Leaving. | ||
| [2011/10/28 07:04:11] <_rc> fragfutter: concat will do that for you, saves you a bunch of effort in writing it | ||
| [2011/10/28 07:04:15] <jpalmer> indigo: I'd also suggest reading through the wiki, for some "best practices" type info. | ||
| [2011/10/28 07:05:52] <Raboo> i have a stage where i create a yum repo | ||
| [2011/10/28 07:05:56] @ Quit: doo: Remote host closed the connection | ||
| [2011/10/28 07:06:00] <Raboo> if i want something done before that | ||
| [2011/10/28 07:06:05] <Raboo> do i use before? | ||
| [2011/10/28 07:06:11] <Raboo> in that stage | ||
| [2011/10/28 07:06:23] @ doo joined channel #puppet | ||
| [2011/10/28 07:07:08] @ Quit: jamison: Excess Flood | ||
| [2011/10/28 07:07:10] <_rc> yes, you either use before from the thing that goes before, or require from the repo | ||
| [2011/10/28 07:07:26] <Raboo> ok, so require in the repo | ||
| [2011/10/28 07:07:38] <Raboo> but it didn't go before | ||
| [2011/10/28 07:07:42] <Raboo> it went after | ||
| [2011/10/28 07:07:45] <Raboo> when i did require | ||
| [2011/10/28 07:07:56] <Raboo> so that means it requires 2 puppet runs before it works | ||
| [2011/10/28 07:08:08] <Raboo> or i don't know | ||
| [2011/10/28 07:08:19] <Raboo> i'm starting to get confused | ||
| [2011/10/28 07:08:27] <Raboo> it installed the package | ||
| [2011/10/28 07:08:32] <Raboo> somehow | ||
| [2011/10/28 07:08:34] <_rc> I suspect you got something wrong. Show us the manifest and the log and maybe we can help more. | ||
| [2011/10/28 07:08:36] <Raboo> and it broke yum | ||
| [2011/10/28 07:08:40] @ Quit: sebnash: Quit: Linkinus - http://linkinus.com | ||
| [2011/10/28 07:08:50] @ jamison joined channel #puppet | ||
| [2011/10/28 07:08:52] <Raboo> ok | ||
| [2011/10/28 07:08:57] @ AphisOne joined channel #puppet | ||
| [2011/10/28 07:09:07] <Raboo> will do a new run. and check the logs and pastie them | ||
| [2011/10/28 07:09:37] @ AphisOne left channel #puppet () | ||
| [2011/10/28 07:10:10] @ kaptk2 joined channel #puppet | ||
| [2011/10/28 07:12:58] @ noecc joined channel #puppet | ||
| [2011/10/28 07:14:11] @ ldlework joined channel #puppet | ||
| [2011/10/28 07:15:17] <gepetto> ::redmine:: Wiki edit: Simplest_Puppet_Install_Pattern (#8) @ http://projects.puppetlabs.com/projects/puppet/wiki/Simplest_Puppet_Install_Pattern?version=8 (by James Turnbull) | ||
| [2011/10/28 07:15:17] <gepetto> ::redmine:: Wiki edit: Advanced_Puppet_Pattern (#13) @ http://projects.puppetlabs.com/projects/puppet/wiki/Advanced_Puppet_Pattern?version=13 (by James Turnbull) | ||
| [2011/10/28 07:16:07] <Raboo> _rc http://pastie.org/2773359 | ||
| [2011/10/28 07:17:45] @ Quit: larstobi: Quit: Leaving. | ||
| [2011/10/28 07:17:47] @ rsnhyperion joined channel #puppet | ||
| [2011/10/28 07:18:24] <Raboo> ohh | ||
| [2011/10/28 07:18:25] <Raboo> hold | ||
| [2011/10/28 07:18:34] <Raboo> i gotta fix yum first | ||
| [2011/10/28 07:18:38] <_rc> Raboo: so what that's showing is it tries to install Packge[redhat-lsb] with a busted yum config | ||
| [2011/10/28 07:18:42] @ larstobi joined channel #puppet | ||
| [2011/10/28 07:18:48] @ Quit: larstobi: Client Quit | ||
| [2011/10/28 07:19:11] <_rc> Raboo: oh. are you trying to install it so you get the fact to work? | ||
| [2011/10/28 07:19:34] <_rc> that's not going to work, as facts are determined at the start of the puppet run | ||
| [2011/10/28 07:19:46] @ Quit: Kazuhiro: Quit: Leaving. | ||
| [2011/10/28 07:19:57] <Raboo> _rc i've updated the paste | ||
| [2011/10/28 07:20:01] @ verwilst joined channel #puppet | ||
| [2011/10/28 07:20:13] <Raboo> _rc ok | ||
| [2011/10/28 07:20:23] <_rc> you'll need to do something like if $lsbmajdistrelease { yumrepo { "vmware": } } | ||
| [2011/10/28 07:20:39] @ Quit: d3c: Quit: leaving | ||
| [2011/10/28 07:21:01] <_rc> which won't try and put the vmware repo down until you have that fact. it'll still take two runs | ||
| [2011/10/28 07:21:15] <_rc> but it won't put down a broken vmware repo | ||
| [2011/10/28 07:21:27] <Raboo> ok | ||
| [2011/10/28 07:21:50] <Raboo> can't a module trigger a new puppet run? | ||
| [2011/10/28 07:21:54] <Raboo> or a command | ||
| [2011/10/28 07:22:24] <_rc> from within the puppet catalog itself? no | ||
| [2011/10/28 07:22:29] <Raboo> yes | ||
| [2011/10/28 07:22:31] <Raboo> oh | ||
| [2011/10/28 07:22:40] @ marczak joined channel #puppet | ||
| [2011/10/28 07:23:32] <_rc> if you're going to use those lsb facts a great deal, I'd put it in your provisioning step, before you install/start puppet for the first time | ||
| [2011/10/28 07:24:01] <_rc> otherwise try and write as though you don't have them available | ||
| [2011/10/28 07:24:43] <Raboo> ok | ||
| [2011/10/28 07:27:13] @ eshamow_ joined channel #puppet | ||
| [2011/10/28 07:27:29] @ Quit: elementai: Ping timeout: 256 seconds | ||
| [2011/10/28 07:28:17] @ soh joined channel #puppet | ||
| [2011/10/28 07:28:46] <Raboo> _rc if i'm going to use if $lsbmajdistrelease { , should i have it before case $operatingsystem maybe? | ||
| [2011/10/28 07:28:53] <Raboo> or it doesn't matter? | ||
| [2011/10/28 07:29:24] @ Quit: serverhorror: Quit: Ex-Chat | ||
| [2011/10/28 07:29:25] @ kangman joined channel #puppet | ||
| [2011/10/28 07:31:18] @ Quit: kelseyhightower: Read error: No route to host | ||
| [2011/10/28 07:31:38] @ kelseyhightower joined channel #puppet | ||
| [2011/10/28 07:33:26] @ Quit: rharrison: Quit: Leaving | ||
| [2011/10/28 07:33:48] @ asteve joined channel #puppet | ||
| [2011/10/28 07:33:58] @ skm joined channel #puppet | ||
| [2011/10/28 07:34:12] <_rc> Raboo: whatever reads best for you | ||
| [2011/10/28 07:34:23] <Raboo> if i use a $variable in one module | ||
| [2011/10/28 07:34:23] @ walterheck joined channel #puppet | ||
| [2011/10/28 07:34:32] <Raboo> can i read that variable from the other module? | ||
| [2011/10/28 07:35:16] @ riha left channel #puppet () | ||
| [2011/10/28 07:35:16] <_rc> if you follow the scoping rules | ||
| [2011/10/28 07:35:32] <_rc> http://docs.puppetlabs.com/guides/scope_and_puppet.html | ||
| [2011/10/28 07:36:00] @ Quit: kelseyhightower: Ping timeout: 248 seconds | ||
| [2011/10/28 07:36:23] @ zwi joined channel #puppet | ||
| [2011/10/28 07:37:31] <Raboo> err: Failed to apply catalog: Could not find dependency Yumrepo[vmware] for Package[vmware-tools] at /etc/puppet/modules/vmware-tools/manifests/init.pp:43 | ||
| [2011/10/28 07:37:39] <Raboo> but it doesn't load the catalog | ||
| [2011/10/28 07:37:44] <Raboo> when it fails at that point | ||
| [2011/10/28 07:38:06] <Raboo> so using that if doesn't realy work, unless i can make puppet continue the run even if there are errors.. | ||
| [2011/10/28 07:38:15] <Volcane> did you create a yumrepo resource? | ||
| [2011/10/28 07:38:19] <Volcane> and include the class its in? | ||
| [2011/10/28 07:38:37] <_rc> as there's an if condition, you need to put the package inside it too | ||
| [2011/10/28 07:39:01] @ neonflux joined channel #puppet | ||
| [2011/10/28 07:39:02] <_rc> Volcane: he did, but it's dependent on lsb facts, so he has that world of pain | ||
| [2011/10/28 07:39:15] <Raboo> lol | ||
| [2011/10/28 07:39:19] <Volcane> ah - so its just not being done cos of the if, ok - not been paying enough attention | ||
| [2011/10/28 07:39:31] <Raboo> thats a good way of describing it :) | ||
| [2011/10/28 07:40:34] @ EspadaV8 is now known as EspadaV8_away | ||
| [2011/10/28 07:41:22] @ tomodachi left channel #puppet () | ||
| [2011/10/28 07:41:46] @ mcarpent joined channel #puppet | ||
| [2011/10/28 07:42:38] @ swygue joined channel #puppet | ||
| [2011/10/28 07:43:06] @ timyim joined channel #puppet | ||
| [2011/10/28 07:44:16] @ Quit: johnston: Ping timeout: 265 seconds | ||
| [2011/10/28 07:44:18] <Raboo> can i perhaps put a if for the entire class? | ||
| [2011/10/28 07:45:53] <_rc> you'd need to put your redhat-lsb package outside it, otherwise you never get into the if | ||
| [2011/10/28 07:47:55] <_rc> Raboo: simpler fix for you. use the yum macros. baseurl => "http://packages.vmware.com/tools/esx/${vmwarever_real}/rhel${lsbmajdistrelease}/${yum_basearch}/", | ||
| [2011/10/28 07:48:06] <_rc> er wait | ||
| [2011/10/28 07:48:41] <_rc> "http://packages.vmware.com/tools/esx/${vmwarever_real}/\$releasever/\$basearch/" | ||
| [2011/10/28 07:48:47] @ Quit: rsnhyperion: Remote host closed the connection | ||
| [2011/10/28 07:49:03] @ rsnhyperion joined channel #puppet | ||
| [2011/10/28 07:49:21] <_rc> and have yum expand $releasever and $basearch, avoiding the pain of the lsb facts | ||
| [2011/10/28 07:49:27] <Raboo> _rc ok, thanks, i gotta run | ||
| [2011/10/28 07:49:28] @ littleidea joined channel #puppet | ||
| [2011/10/28 07:49:37] <Raboo> be back in 20 | ||
| [2011/10/28 07:51:43] @ benkevan joined channel #puppet | ||
| [2011/10/28 07:55:56] @ Razique joined channel #puppet | ||
| [2011/10/28 07:59:07] @ ghg joined channel #puppet | ||
| [2011/10/28 07:59:32] @ Quit: gaveen: Remote host closed the connection | ||
| [2011/10/28 08:00:09] @ Quit: artkrz: Quit: Linkinus - http://linkinus.com | ||
| [2011/10/28 08:02:35] @ dnievas joined channel #puppet | ||
| [2011/10/28 08:03:01] @ Quit: dnievas: Client Quit | ||
| [2011/10/28 08:03:21] @ dnievas joined channel #puppet | ||
| [2011/10/28 08:03:40] @ Quit: dnievas: Client Quit | ||
| [2011/10/28 08:04:37] @ newtMcKerr joined channel #puppet | ||
| [2011/10/28 08:04:50] @ Quit: rutger: Remote host closed the connection | ||
| [2011/10/28 08:06:14] @ illsci joined channel #puppet | ||
| [2011/10/28 08:10:39] @ Quit: newtMcKerr: Quit: Leaving. | ||
| [2011/10/28 08:12:04] @ choonming joined channel #puppet | ||
| [2011/10/28 08:12:24] @ jsurfer joined channel #puppet | ||
| [2011/10/28 08:12:34] @ Quit: negronjl_: Quit: Bye | ||
| [2011/10/28 08:13:59] @ Quit: mawser: Quit: mawser | ||
| [2011/10/28 08:15:09] @ Quit: kees_: Remote host closed the connection | ||
| [2011/10/28 08:15:48] @ Quit: frostynova: Remote host closed the connection | ||
| [2011/10/28 08:17:28] @ Quit: Vasik|work: Remote host closed the connection | ||
| [2011/10/28 08:18:51] @ kelseyhightower joined channel #puppet | ||
| [2011/10/28 08:18:56] @ rsnhyperion_ joined channel #puppet | ||
| [2011/10/28 08:20:04] @ Quit: itguru: Quit: This computer has gone to sleep | ||
| [2011/10/28 08:20:46] @ rsnhyperion__ joined channel #puppet | ||
| [2011/10/28 08:21:12] @ Quit: rsnhyperion: Ping timeout: 240 seconds | ||
| [2011/10/28 08:21:12] @ rsnhyperion__ is now known as rsnhyperion | ||
| [2011/10/28 08:22:39] @ Stenbryggen joined channel #puppet | ||
| [2011/10/28 08:23:09] @ Quit: oatsport1: Read error: Connection reset by peer | ||
| [2011/10/28 08:23:12] @ Quit: rsnhyperion_: Ping timeout: 240 seconds | ||
| [2011/10/28 08:24:23] @ itguru joined channel #puppet | ||
| [2011/10/28 08:24:23] @ Quit: itguru: Changing host | ||
| [2011/10/28 08:24:23] @ itguru joined channel #puppet | ||
| [2011/10/28 08:24:29] @ Quit: rsnhyperion: Remote host closed the connection | ||
| [2011/10/28 08:24:44] @ rsnhyperion joined channel #puppet | ||
| [2011/10/28 08:26:55] @ Quit: fir31ight: Remote host closed the connection | ||
| [2011/10/28 08:27:55] @ dan__t_ joined channel #puppet | ||
| [2011/10/28 08:29:58] @ Quit: DSpair: Quit: Leaving | ||
| [2011/10/28 08:29:59] <jedi4ever> newbie question: if I pass a variable to a parametrized class, class bla($myip) | ||
| [2011/10/28 08:30:25] <jedi4ever> how do I refer to it in a template? using <%= $myip %> doesn't seem to get it | ||
| [2011/10/28 08:30:36] @ Quit: itguru: Ping timeout: 276 seconds | ||
| [2011/10/28 08:30:38] <_rc> try without the $ | ||
| [2011/10/28 08:30:39] <Volcane> <%= myip %> | ||
| [2011/10/28 08:30:45] <nahamu> what was the name in the parameterized class? | ||
| [2011/10/28 08:30:58] @ Mode -o Volcane by Volcane | ||
| [2011/10/28 08:31:25] @ Quit: mogitaff: Quit: Leaving | ||
| [2011/10/28 08:31:45] <jedi4ever> Volcane: yep, that did the trick | ||
| [2011/10/28 08:33:53] @ Quit: kelseyhightower: Quit: kelseyhightower | ||
| [2011/10/28 08:33:57] @ fir31ight joined channel #puppet | ||
| [2011/10/28 08:36:17] @ brandon_dacrib_ joined channel #puppet | ||
| [2011/10/28 08:36:21] @ kelseyhightower joined channel #puppet | ||
| [2011/10/28 08:36:53] @ Quit: ridankulous: Quit: Changing server | ||
| [2011/10/28 08:38:48] @ Quit: brandon_dacrib: Ping timeout: 255 seconds | ||
| [2011/10/28 08:38:48] @ brandon_dacrib_ is now known as brandon_dacrib | ||
| [2011/10/28 08:39:56] @ Quit: Meier: Quit: Leaving. | ||
| [2011/10/28 08:40:01] @ Quit: fir31ight: Remote host closed the connection | ||
| [2011/10/28 08:40:23] @ fir31ight joined channel #puppet | ||
| [2011/10/28 08:42:07] @ Quit: MartVisser: Quit: Leaving | ||
| [2011/10/28 08:42:55] @ joshcooper joined channel #puppet | ||
| [2011/10/28 08:43:00] @ methods joined channel #puppet | ||
| [2011/10/28 08:43:12] @ Quit: Ramonster: Quit: So Long and thanks for all the fish | ||
| [2011/10/28 08:43:26] <methods> when i do a compile on the server using the fact data and manifests can i inspect the generated template files that would be sent to the client ? | ||
| [2011/10/28 08:49:23] @ Quit: jkoppe: Quit: Leaving. | ||
| [2011/10/28 08:49:44] <rgsteele> masterzen: Hrm, still having some troubles: http://pastie.org/2773793 | ||
| [2011/10/28 08:52:40] <rgsteele> It's in the "instances = lookupvar('ec_lb::lb::instances')" line that it's failing | ||
| [2011/10/28 08:52:56] <rgsteele> Are you sure you can grab the variable like that? | ||
| [2011/10/28 08:55:54] @ Quit: djambar: Ping timeout: 255 seconds | ||
| [2011/10/28 08:55:55] <Volcane> scope.lookupvar probably | ||
| [2011/10/28 08:56:28] @ Quit: Razique: Quit: Razique | ||
| [2011/10/28 08:57:21] <Volcane> the puppet error though | ||
| [2011/10/28 08:57:29] <Volcane> thats cos your get_instance method returns false | ||
| [2011/10/28 08:57:36] <Volcane> and false has no at method | ||
| [2011/10/28 08:57:46] <Volcane> you're assuming it has at line 40 | ||
| [2011/10/28 08:57:53] @ Quit: danikov: Quit: danikov | ||
| [2011/10/28 08:58:02] @ Quit: soh: Quit: Computer has gone to sleep. | ||
| [2011/10/28 08:58:34] @ trickyf left channel #puppet () | ||
| [2011/10/28 08:58:59] <indigo> is there a secure way i can install a private ssh key on a host? | ||
| [2011/10/28 08:59:57] <rgsteele> Volcane: I was looking at the "from /etc/puppet/modules/custom/lib/puppet/parser/functions/keepalived_prio.rb:7:in `function_keepalived_prio'" line, which was where it grabbed that variable. | ||
| [2011/10/28 09:00:04] <rgsteele> Volcane: Ah, yeah | ||
| [2011/10/28 09:00:13] <rgsteele> Volcane: Thanks | ||
| [2011/10/28 09:00:23] <indigo> i tried just copying it with file {...}, but I get an error 400, permission denied when I run the agent. Presumably because id_rsa is mode 400...which makes me wonder what the security implications of hosting any file in a module are. | ||
| [2011/10/28 09:00:33] @ ryancoleman joined channel #puppet | ||
| [2011/10/28 09:01:07] <rgsteele> Volcane: Hm, scope.lookupvar seems not to work. Guess I'll dig more. | ||
| [2011/10/28 09:01:34] <rgsteele> Volcane: scope.lookupvar is for templates, I think. | ||
| [2011/10/28 09:01:43] <rgsteele> I think for functions, it's jsut lookupvar. | ||
| [2011/10/28 09:02:01] <rgsteele> Oh... maybe the variable is in scope | ||
| [2011/10/28 09:03:44] <rgsteele> Guess not | ||
| [2011/10/28 09:03:57] <rgsteele> I wonder if it has anything to do with the fact that the class is parameterized | ||
| [2011/10/28 09:04:20] <rgsteele> lookupvar('foo::bar::baz') might not work as expected if bar is parameterized | ||
| [2011/10/28 09:06:18] @ marrusl joined channel #puppet | ||
| [2011/10/28 09:07:13] @ Quit: jsurfer: Remote host closed the connection | ||
| [2011/10/28 09:07:39] @ jsurfer joined channel #puppet | ||
| [2011/10/28 09:09:01] @ Quit: conner: Remote host closed the connection | ||
| [2011/10/28 09:11:40] @ Quit: raphdg: Remote host closed the connection | ||
| [2011/10/28 09:12:32] <gob_bluth> is there a way i can test if puppetmaster is going through apache/passenger ? | ||
| [2011/10/28 09:14:37] @ Quit: ryancoleman: Quit: Leaving. | ||
| [2011/10/28 09:14:44] <indigo> how is the parameter to file() interpreted? A file path on the puppet master? The agent applying the manifest? Is it a local path? A URI? | ||
| [2011/10/28 09:15:02] <Volcane> path on the master | ||
| [2011/10/28 09:16:28] @ sumsuch joined channel #puppet | ||
| [2011/10/28 09:17:23] @ csanchez joined channel #puppet | ||
| [2011/10/28 09:19:07] @ hobbeswalsh joined channel #puppet | ||
| [2011/10/28 09:19:34] @ Quit: steakknife: Quit: Leaving. | ||
| [2011/10/28 09:20:51] @ maxmartin joined channel #puppet | ||
| [2011/10/28 09:22:12] @ Quit: marrusl: Quit: Ex-Chat | ||
| [2011/10/28 09:23:37] @ Quit: alanevans: Remote host closed the connection | ||
| [2011/10/28 09:24:02] @ Quit: los324: Quit: Leaving. | ||
| [2011/10/28 09:24:22] @ lwhalen joined channel #puppet | ||
| [2011/10/28 09:25:35] @ Quit: kelseyhightower: Quit: kelseyhightower | ||
| [2011/10/28 09:25:56] @ Quit: gniks1: Quit: Leaving. | ||
| [2011/10/28 09:26:31] @ sebnash joined channel #puppet | ||
| [2011/10/28 09:27:08] @ itguru joined channel #puppet | ||
| [2011/10/28 09:28:35] @ hooper joined channel #puppet | ||
| [2011/10/28 09:28:52] @ danikov joined channel #puppet | ||
| [2011/10/28 09:29:30] @ tremble joined channel #puppet | ||
| [2011/10/28 09:30:16] <tremble> Before I raise a support case, has anyone seem puppet get stuck in a partially shutdown state before? | ||
| [2011/10/28 09:30:32] <tremble> puppet-agent[21537]: Shutdown/restart in progress; skipping run | ||
| [2011/10/28 09:31:23] @ Quit: jsurfer: Remote host closed the connection | ||
| [2011/10/28 09:31:53] @ gniks joined channel #puppet | ||
| [2011/10/28 09:31:53] <tremble> I seem to have a number of hosts that have all got into this state. Not sure how long for, some of them it would appear to have been months. (Just started monitoring the age of /var/lib/puppet/classes.txt) | ||
| [2011/10/28 09:32:02] @ jsurfer joined channel #puppet | ||
| [2011/10/28 09:33:55] @ Quit: maxmartin: Quit: Computer has gone to sleep. | ||
| [2011/10/28 09:35:55] @ newtMcKerr joined channel #puppet | ||
| [2011/10/28 09:36:47] @ alfism joined channel #puppet | ||
| [2011/10/28 09:36:50] @ negronjl joined channel #puppet | ||
| [2011/10/28 09:38:37] @ Quit: walterheck: Quit: Computer has gone to sleep | ||
| [2011/10/28 09:41:18] @ rsnhyperion_ joined channel #puppet | ||
| [2011/10/28 09:42:01] @ jkoppe joined channel #puppet | ||
| [2011/10/28 09:42:13] @ Quit: rsnhyperion: Read error: Operation timed out | ||
| [2011/10/28 09:42:13] @ rsnhyperion_ is now known as rsnhyperion | ||
| [2011/10/28 09:42:41] @ abetterlie joined channel #puppet | ||
| [2011/10/28 09:43:36] @ Quit: the_ramink: Ping timeout: 255 seconds | ||
| [2011/10/28 09:44:57] @ scsinutz joined channel #puppet | ||
| [2011/10/28 09:46:14] @ Quit: gob_bluth: Quit: ChatZilla 0.9.87 [Firefox 7.0.1/20110928134238] | ||
| [2011/10/28 09:48:38] @ Quit: alfism: Quit: alfism | ||
| [2011/10/28 09:49:28] @ Quit: nottings: Ping timeout: 260 seconds | ||
| [2011/10/28 09:49:46] @ scsinutz left channel #puppet () | ||
| [2011/10/28 09:49:50] @ nottings joined channel #puppet | ||
| [2011/10/28 09:50:39] @ alanevans joined channel #puppet | ||
| [2011/10/28 09:51:03] <TooExcited> Hello, gentlemen. I have a peculiar issue with my Java class for Ubuntu. It can't find a dependency which is... right there. Advice? :) http://pastebin.com/raw.php?i=vTf9vUWA | ||
| [2011/10/28 09:51:25] @ soh joined channel #puppet | ||
| [2011/10/28 09:51:30] @ claussen joined channel #puppet | ||
| [2011/10/28 09:54:06] @ maxmartin joined channel #puppet | ||
| [2011/10/28 09:54:57] @ kenperkins joined channel #puppet | ||
| [2011/10/28 09:55:42] @ alfism joined channel #puppet | ||
| [2011/10/28 09:56:01] <xalimar> TooExcited: looks like the file { "partnerlist": line is commented out since the line above is missing the */ | ||
| [2011/10/28 09:56:02] @ Quit: ckauhaus: Ping timeout: 244 seconds | ||
| [2011/10/28 09:56:20] <TooExcited> haha! Now I see it *facepalm* | ||
| [2011/10/28 09:56:24] <TooExcited> Thank you :D | ||
| [2011/10/28 09:57:04] @ Quit: sebnash: Ping timeout: 260 seconds | ||
| [2011/10/28 09:57:36] @ sebnash joined channel #puppet | ||
| [2011/10/28 09:57:43] <xalimar> np :) | ||
| [2011/10/28 09:59:06] @ gregp76 joined channel #puppet | ||
| [2011/10/28 09:59:36] @ Quit: soh: Quit: Computer has gone to sleep. | ||
| [2011/10/28 10:02:27] @ Quit: lborda: Remote host closed the connection | ||
| [2011/10/28 10:02:59] @ Quit: sebnash: Quit: Linkinus - http://linkinus.com | ||
| [2011/10/28 10:03:27] @ Quit: fir31ight: Remote host closed the connection | ||
| [2011/10/28 10:05:35] @ los324 joined channel #puppet | ||
| [2011/10/28 10:05:40] @ los324 left channel #puppet () | ||
| [2011/10/28 10:08:53] @ Wolfspyre joined channel #puppet | ||
| [2011/10/28 10:11:25] @ Quit: itguru: Quit: This computer has gone to sleep | ||
| [2011/10/28 10:13:15] @ cosman2001 joined channel #puppet | ||
| [2011/10/28 10:14:38] @ ba6 joined channel #puppet | ||
| [2011/10/28 10:14:39] @ djm68 joined channel #puppet | ||
| [2011/10/28 10:17:27] @ the_ramink joined channel #puppet | ||
| [2011/10/28 10:18:24] @ Quit: MattyM: Ping timeout: 258 seconds | ||
| [2011/10/28 10:19:02] @ Quit: verwilst: Quit: Ex-Chat | ||
| [2011/10/28 10:19:10] @ Quit: nevyn: Ping timeout: 258 seconds | ||
| [2011/10/28 10:19:57] @ lak joined channel #puppet | ||
| [2011/10/28 10:19:58] @ Quit: lak: Changing host | ||
| [2011/10/28 10:19:58] @ lak joined channel #puppet | ||
| [2011/10/28 10:20:08] @ Quit: alfism: Read error: Connection reset by peer | ||
| [2011/10/28 10:20:41] @ alfism joined channel #puppet | ||
| [2011/10/28 10:20:55] @ nevyn joined channel #puppet | ||
| [2011/10/28 10:21:29] @ ianbrandt joined channel #puppet | ||
| [2011/10/28 10:22:08] @ astrostl joined channel #puppet | ||
| [2011/10/28 10:22:58] <ashp> you'd think oracle could keep their own docs for oracle enterprise accurate :/ | ||
| [2011/10/28 10:23:01] @ methods left channel #puppet () | ||
| [2011/10/28 10:24:03] <rgsteele> Can you do a lookupvar on variables that *aren't* facts? | ||
| [2011/10/28 10:24:04] @ fir31ight joined channel #puppet | ||
| [2011/10/28 10:24:39] @ walterheck joined channel #puppet | ||
| [2011/10/28 10:25:08] @ Quit: mat_: Quit: leaving | ||
| [2011/10/28 10:26:13] @ soh joined channel #puppet | ||
| [2011/10/28 10:26:30] @ mat_ joined channel #puppet | ||
| [2011/10/28 10:26:33] @ tilgovi joined channel #puppet | ||
| [2011/10/28 10:26:34] @ Quit: tilgovi: Changing host | ||
| [2011/10/28 10:26:34] @ tilgovi joined channel #puppet | ||
| [2011/10/28 10:26:59] @ Quit: jsm: Quit: jsm | ||
| [2011/10/28 10:27:34] @ Quit: philbert_777: Ping timeout: 260 seconds | ||
| [2011/10/28 10:28:05] <jpalmer> rgsteele: puppet supports ENC (external node connectors) so you can have puppet lookup values for things. | ||
| [2011/10/28 10:28:10] @ Quit: ezryx: Remote host closed the connection | ||
| [2011/10/28 10:28:34] @ Quit: rsnhyperion: Remote host closed the connection | ||
| [2011/10/28 10:28:50] @ rsnhyperion joined channel #puppet | ||
| [2011/10/28 10:28:55] <the_ramink> rgsteele: in templates, <%= scope.lookupvar('mysql::params::long_query_time') %> | ||
| [2011/10/28 10:29:24] <rgsteele> jpalmer: I was wondering if extlookup would work, but I'll do some more reading on what you suggest. Thanks. | ||
| [2011/10/28 10:29:26] <rgsteele> the_ramink: This is in a custom function, not a template | ||
| [2011/10/28 10:30:54] <TooExcited> I would love to be able to know server-side when installation of a module has finished. What's the neatest way to go? Facts? | ||
| [2011/10/28 10:31:19] @ Quit: bmahe: Quit: Leaving | ||
| [2011/10/28 10:33:26] <rgsteele> TooExcited: How do you want to be notified? | ||
| [2011/10/28 10:33:54] <TooExcited> I'm flexible, since I'm already using a python script as external node thingy | ||
| [2011/10/28 10:33:56] <TooExcited> :) | ||
| [2011/10/28 10:34:05] @ Razique joined channel #puppet | ||
| [2011/10/28 10:34:36] @ Quit: [diecast]: Changing host | ||
| [2011/10/28 10:34:36] @ [diecast] joined channel #puppet | ||
| [2011/10/28 10:39:12] <TooExcited> oh hey, just read about the REST API exposed by the Inventory Service. Basically I can query puppetmaster for all node facts | ||
| [2011/10/28 10:39:15] <TooExcited> Neat | ||
| [2011/10/28 10:39:48] <TooExcited> I reckon I'll pop in a fact for each module I install | ||
| [2011/10/28 10:41:12] <TooExcited> External node script and installation completion reporting is my way of dealing with dependencies across multiple machines :D | ||
| [2011/10/28 10:41:15] @ philbert_777 joined channel #puppet | ||
| [2011/10/28 10:45:51] @ larstobi joined channel #puppet | ||
| [2011/10/28 10:46:44] @ lborda joined channel #puppet | ||
| [2011/10/28 10:47:21] <rgsteele> Well that stinks - lookupvar(...) is only for facts. | ||
| [2011/10/28 10:49:18] @ ckauhaus joined channel #puppet | ||
| [2011/10/28 10:50:00] @ Quit: jamison: Excess Flood | ||
| [2011/10/28 10:50:48] @ johnston joined channel #puppet | ||
| [2011/10/28 10:51:30] @ langworthy joined channel #puppet | ||
| [2011/10/28 10:51:37] @ shadoi joined channel #puppet | ||
| [2011/10/28 10:51:50] @ jamison joined channel #puppet | ||
| [2011/10/28 10:53:55] @ pdtpatrick joined channel #puppet | ||
| [2011/10/28 10:55:15] <pdtpatrick> Question .. where can i see the changelog to see the difference between 2.6.2 vs 2.7.1 ? | ||
| [2011/10/28 10:55:55] @ Quit: mat_: Quit: leaving | ||
| [2011/10/28 10:57:21] @ mat_ joined channel #puppet | ||
| [2011/10/28 10:59:02] @ Quit: tilgovi: Remote host closed the connection | ||
| [2011/10/28 10:59:52] @ KaiserBeto1 joined channel #puppet | ||
| [2011/10/28 11:00:37] @ Quit: soh: Quit: Computer has gone to sleep. | ||
| [2011/10/28 11:01:32] <jamesturnbull> pdtpatrick: wiki:release_notes | ||
| [2011/10/28 11:01:34] <gepetto> jamesturnbull: pdtpatrick: wiki:release_notes is http://projects.puppetlabs.com/projects/puppet/wiki/release_notes "Puppet - Release Notes - Puppet Labs" | ||
| [2011/10/28 11:01:57] @ Quit: timyim: Ping timeout: 265 seconds | ||
| [2011/10/28 11:02:33] <pdtpatrick> much appreciated | ||
| [2011/10/28 11:02:36] @ lindenle_ joined channel #puppet | ||
| [2011/10/28 11:02:41] @ Quit: pugnacity: Ping timeout: 244 seconds | ||
| [2011/10/28 11:03:43] <rgsteele> Hm, I wonder what it would take to extend lookupvar to fetch custom variables in addition to facts | ||
| [2011/10/28 11:04:42] @ Quit: astrostl: | ||
| [2011/10/28 11:05:55] <whack> rgsteele: lookupvar fetches anything that works like $foo in puppet manifest | ||
| [2011/10/28 11:06:49] @ pugnacity joined channel #puppet | ||
| [2011/10/28 11:08:12] <rgsteele> whack: It seems to balk here: http://pastie.org/2773793 | ||
| [2011/10/28 11:08:43] <rgsteele> At least, in irb | ||
| [2011/10/28 11:08:57] <whack> in irb? | ||
| [2011/10/28 11:09:06] <whack> why not use it in puppet and see what happens? | ||
| [2011/10/28 11:09:07] <rgsteele> But, irb should have access to all the stuff in the manifest since I 'require puppet', no? | ||
| [2011/10/28 11:09:20] <rgsteele> whack: I did, see the very bottom of the paste | ||
| [2011/10/28 11:11:08] <whack> % puppet apply -e 'class a::b { $c = "Hello" } include a::b notice(inline_template("<%= scope.lookupvar(\"a::b::c\") %>"))' | ||
| [2011/10/28 11:11:11] <whack> notice: Scope(Class[main]): Hello | ||
| [2011/10/28 11:12:06] <rgsteele> whack: That's using scope.lookupvar from a template | ||
| [2011/10/28 11:12:11] <rgsteele> I'm just using lookupvar from a function | ||
| [2011/10/28 11:12:23] <whack> yes. | ||
| [2011/10/28 11:13:17] @ slseed joined channel #puppet | ||
| [2011/10/28 11:14:17] <whack> why not just pass it in to your function? | ||
| [2011/10/28 11:14:22] <whack> functions take arguments for a reason ;) | ||
| [2011/10/28 11:14:58] @ dbarcelo joined channel #puppet | ||
| [2011/10/28 11:15:01] @ kelseyhightower joined channel #puppet | ||
| [2011/10/28 11:15:38] @ Quit: doo: Remote host closed the connection | ||
| [2011/10/28 11:16:20] <rgsteele> whack: Trying to limit the number of arguments. If it can just accept $hostname, then I can stuff the functionality under the hood because nobody will ever have to call it with different arguments. | ||
| [2011/10/28 11:16:57] <whack> https://github.com/jordansissel/puppet-examples/tree/master/function-with-lookupvar | ||
| [2011/10/28 11:17:09] <whack> works for me? | ||
| [2011/10/28 11:18:18] <slseed> I have a ton of new failed tasks in dashboard under background tasks. I can use the "Mark all as read" button because it causes dashboard to hang forever. Anyone know how I can clear these from the command line? | ||
| [2011/10/28 11:18:41] <slseed> That was I "can't" use the "Mark all as read"... | ||
| [2011/10/28 11:19:30] @ Quit: kubicek: Excess Flood | ||
| [2011/10/28 11:20:48] @ kubicek joined channel #puppet | ||
| [2011/10/28 11:20:49] @ Quit: fsweetser: Read error: Operation timed out | ||
| [2011/10/28 11:21:04] @ fsweetser joined channel #puppet | ||
| [2011/10/28 11:21:08] @ geekbri joined channel #puppet | ||
| [2011/10/28 11:23:06] @ soh joined channel #puppet | ||
| [2011/10/28 11:25:14] @ Quit: lak: Quit: Leaving. | ||
| [2011/10/28 11:26:54] @ bmahe joined channel #puppet | ||
| [2011/10/28 11:26:54] @ Quit: bmahe: Changing host | ||
| [2011/10/28 11:26:54] @ bmahe joined channel #puppet | ||
| [2011/10/28 11:27:07] @ ranulf joined channel #puppet | ||
| [2011/10/28 11:28:15] @ doo joined channel #puppet | ||
| [2011/10/28 11:30:08] @ madhatter_ joined channel #puppet | ||
| [2011/10/28 11:30:20] @ Quit: mcarpent: Ping timeout: 260 seconds | ||
| [2011/10/28 11:31:01] @ Quit: philbert_777: Quit: Beware of programmers who carry screwdrivers. | ||
| [2011/10/28 11:33:57] @ Quit: zwi: Quit: Leaving. | ||
| [2011/10/28 11:38:36] @ zwi joined channel #puppet | ||
| [2011/10/28 11:38:46] @ Quit: L-s-L: Quit: leaving | ||
| [2011/10/28 11:42:32] @ noecc left channel #puppet ("pax") | ||
| [2011/10/28 11:42:34] @ Quit: claussen: Quit: claussen | ||
| [2011/10/28 11:44:40] @ Quit: highclasshole: Quit: WeeChat 0.3.2 | ||
| [2011/10/28 11:46:22] @ MartVisser joined channel #puppet | ||
| [2011/10/28 11:46:23] @ Quit: MartVisser: Client Quit | ||
| [2011/10/28 11:49:55] @ highclasshole joined channel #puppet | ||
| [2011/10/28 11:50:05] @ toi joined channel #puppet | ||
| [2011/10/28 11:54:27] @ Quit: dan__t_: Ping timeout: 252 seconds | ||
| [2011/10/28 11:55:03] @ Quit: Bass10: Quit: Leaving | ||
| [2011/10/28 11:55:35] @ Quit: indigo: Quit: leaving | ||
| [2011/10/28 11:58:55] @ Quit: madhatter_: Ping timeout: 256 seconds | ||
| [2011/10/28 12:02:15] @ jsm joined channel #puppet | ||
| [2011/10/28 12:04:16] @ Quit: soh: Quit: Computer has gone to sleep. | ||
| [2011/10/28 12:04:53] @ Quit: uphillian: Remote host closed the connection | ||
| [2011/10/28 12:06:43] @ uphillian joined channel #puppet | ||
| [2011/10/28 12:11:34] @ madhatter_ joined channel #puppet | ||
| [2011/10/28 12:14:51] @ Quit: pdtpatrick: Ping timeout: 276 seconds | ||
| [2011/10/28 12:18:13] @ Quit: jsm: Quit: jsm | ||
| [2011/10/28 12:19:56] @ DoDaT69 joined channel #puppet | ||
| [2011/10/28 12:20:16] <DoDaT69> Ahh! I just installed puppet via script I have and apparently it went up to 2.7.5.. now I got issues! | ||
| [2011/10/28 12:20:40] <DoDaT69> anyone have a quick reference to some upgrade docs? | ||
| [2011/10/28 12:20:41] @ Quit: walkeran: Remote host closed the connection | ||
| [2011/10/28 12:22:36] @ walkeran joined channel #puppet | ||
| [2011/10/28 12:22:43] @ Quit: cliff-hm: Ping timeout: 256 seconds | ||
| [2011/10/28 12:27:49] <Volcane> "via script"? | ||
| [2011/10/28 12:28:55] <walterheck> when I pass an array into a define, I can loop through it in an erg with ech.do. Can I do the same inside my .pp recipe? | ||
| [2011/10/28 12:29:22] @ Quit: viq: Remote host closed the connection | ||
| [2011/10/28 12:30:28] <semaphore> how do i know what virtual resources i can realize? | ||
| [2011/10/28 12:30:38] @ sduchesneau joined channel #puppet | ||
| [2011/10/28 12:31:25] @ Quit: brtl: Quit: Leaving. | ||
| [2011/10/28 12:32:06] @ lak joined channel #puppet | ||
| [2011/10/28 12:32:07] @ Quit: lak: Changing host | ||
| [2011/10/28 12:32:07] @ lak joined channel #puppet | ||
| [2011/10/28 12:34:52] @ cliff-hm joined channel #puppet | ||
| [2011/10/28 12:35:02] @ Quit: kelseyhightower: Quit: kelseyhightower | ||
| [2011/10/28 12:36:52] @ Quit: jamison: Excess Flood | ||
| [2011/10/28 12:37:20] @ erodriguez joined channel #puppet | ||
| [2011/10/28 12:37:40] <rgsteele> whack: Yeah, the problem is that the class is parameterized | ||
| [2011/10/28 12:37:50] @ jamison joined channel #puppet | ||
| [2011/10/28 12:38:12] <rgsteele> So, pulling the value like: lookupvar('my::scoped::var') doesn't work if my::scoped is parameterized | ||
| [2011/10/28 12:39:44] @ viq joined channel #puppet | ||
| [2011/10/28 12:39:45] @ Quit: viq: Changing host | ||
| [2011/10/28 12:39:45] @ viq joined channel #puppet | ||
| [2011/10/28 12:40:28] <DoDaT69> Volcane - yes, I have a script I copy to new machines we spin up to install a few base packages, puppet being the main one. | ||
| [2011/10/28 12:40:34] <DoDaT69> a few repos, etc.. | ||
| [2011/10/28 12:42:44] <DoDaT69> I run puppetmaster via apache.. did that change in the latest version? | ||
| [2011/10/28 12:42:49] <DoDaT69> the configuration? | ||
| [2011/10/28 12:48:53] @ jongrocho joined channel #puppet | ||
| [2011/10/28 12:49:52] @ Quit: fir31ight: Remote host closed the connection | ||
| [2011/10/28 12:50:19] @ Quit: rgsteele: Quit: ChatZilla 0.9.86.1 [Firefox 3.0.7/2009030423] | ||
| [2011/10/28 12:50:33] @ Quit: littleidea: Read error: Connection reset by peer | ||
| [2011/10/28 12:51:57] <DoDaT69> \quit | ||
| [2011/10/28 12:51:59] @ Quit: DoDaT69: Quit: [BX] Tickle-Me Elmo uses BitchX. *giggle* *giggle* *giggle* | ||
| [2011/10/28 12:52:18] @ fir31ight joined channel #puppet | ||
| [2011/10/28 12:52:36] @ DoDaT69 joined channel #puppet | ||
| [2011/10/28 12:54:49] @ Quit: csanchez: Quit: csanchez | ||
| [2011/10/28 12:55:32] @ Quit: key: Remote host closed the connection | ||
| [2011/10/28 12:58:05] @ AphisOne joined channel #puppet | ||
| [2011/10/28 12:59:18] <gepetto> ::redmine:: Wiki edit: Documentation_Start (#21) @ http://projects.puppetlabs.com/projects/puppet/wiki/Documentation_Start?version=21 (by James Turnbull) | ||
| [2011/10/28 12:59:18] <gepetto> ::redmine:: Wiki edit: Documentation_Start (#22) @ http://projects.puppetlabs.com/projects/puppet/wiki/Documentation_Start?version=22 (by James Turnbull) | ||
| [2011/10/28 12:59:18] <gepetto> ::redmine:: Wiki edit: SideBar (#41) @ http://projects.puppetlabs.com/projects/puppet/wiki/SideBar?version=41 (by James Turnbull) | ||
| [2011/10/28 13:01:49] <illsci> I'm trying to include a module from inside another module and I'm getting a namespace error... I tried including ::zend using top scope syntax but that didn't work either. Error 400 on SERVER: Invalid tag "::zend" at /etc/puppet/modules/cvjobs/manifests/init.pp:3 | ||
| [2011/10/28 13:01:51] <hal-j> Random offtopic question — Anyone in here lease colo space in hong kong? | ||
| [2011/10/28 13:02:13] <illsci> Can you include modules in other modules? How do you do that | ||
| [2011/10/28 13:02:29] <illsci> hal-j: I've been to hong kong to setup a site there... | ||
| [2011/10/28 13:02:39] @ marrusl joined channel #puppet | ||
| [2011/10/28 13:02:44] <illsci> im sure they have colo space there | ||
| [2011/10/28 13:03:01] @ AphisOne left channel #puppet () | ||
| [2011/10/28 13:03:26] <hal-j> looking for ballpark rack space costs, for some budgeting exercises. Hit me in a private message (so we don't pollute the chat here) if you can shed some light for me :) | ||
| [2011/10/28 13:03:35] @ Quit: pugnacity: Ping timeout: 244 seconds | ||
| [2011/10/28 13:05:48] <ashp> i just watched a 2 hour webex of someone installing oracle in preperation for bundling it into oracle and urghhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh | ||
| [2011/10/28 13:07:09] @ key joined channel #puppet | ||
| [2011/10/28 13:07:21] @ pugnacity joined channel #puppet | ||
| [2011/10/28 13:07:53] <semiosis> on ubuntu oneiric facter reports architecture => x86_64, however in puppet manifests $architecture = "amd64" :[ | ||
| [2011/10/28 13:08:02] <semiosis> anyone seen this before? | ||
| [2011/10/28 13:09:05] <MrHeavy> ashp: I feel your pain, we had to do the same thing with Sybase ASE | ||
| [2011/10/28 13:09:24] <MrHeavy> Minus the WebEx | ||
| [2011/10/28 13:09:33] <semaphore> semiosis: iirc, x86_64 is a linux thing, amd64 is uh, bsds | ||
| [2011/10/28 13:09:52] <semiosis> semaphore: i'm on ubuntu oneiric, linux all the way | ||
| [2011/10/28 13:10:09] <semaphore> does one typically realize resources in a different module? | ||
| [2011/10/28 13:10:37] <MrHeavy> semaphore: It's a pretty common thing to do with users, as one example | ||
| [2011/10/28 13:10:47] <MrHeavy> Groups, etc. | ||
| [2011/10/28 13:10:57] <semiosis> facter doesnt report amd64 for anything at all :/ | ||
| [2011/10/28 13:10:58] <semaphore> MrHeavy: how about like munin config | ||
| [2011/10/28 13:10:59] <MrHeavy> As for file resources and other stuff like that, I probably wouldn't | ||
| [2011/10/28 13:11:29] <MrHeavy> semaphore: There's a pile of ways to skin that cat, I'd probably export resources from those modules and pull them in with munin's | ||
| [2011/10/28 13:11:43] <semaphore> yeah, we can't export resources yet :| | ||
| [2011/10/28 13:11:43] <MrHeavy> Not totally sure though | ||
| [2011/10/28 13:12:09] <MrHeavy> So if you're realizing resources with query syntax I think that's cool | ||
| [2011/10/28 13:12:23] <MrHeavy> If you're explicitly giving resource names that's a bit much of a cross-dependency thing for me | ||
| [2011/10/28 13:12:42] <semaphore> that's what i was attempting to avoid, yes | ||
| [2011/10/28 13:18:29] @ soh joined channel #puppet | ||
| [2011/10/28 13:18:45] @ Quit: fir31ight: Remote host closed the connection | ||
| [2011/10/28 13:19:39] @ Quit: soh: Client Quit | ||
| [2011/10/28 13:21:13] @ kelseyhightower joined channel #puppet | ||
| [2011/10/28 13:28:09] @ Quit: Nadir_Seen_Fire: Ping timeout: 255 seconds | ||
| [2011/10/28 13:28:23] @ Quit: pugnacity: Ping timeout: 244 seconds | ||
| [2011/10/28 13:29:49] @ Nadir_Seen_Fire joined channel #puppet | ||
| [2011/10/28 13:31:32] @ pugnacity joined channel #puppet | ||
| [2011/10/28 13:33:33] @ thisKat joined channel #puppet | ||
| [2011/10/28 13:34:24] <walterheck> is it recommended to use hiera for configuration variables like here: http://www.craigdunn.org/2011/10/puppet-configuration-variables-and-hiera/ and here: http://www.craigdunn.org/2011/10/secret-variables-in-puppet-with-hiera-and-gpg/ ? | ||
| [2011/10/28 13:34:41] <walterheck> it seems like a really nice and extendable way to keep config values? | ||
| [2011/10/28 13:34:57] <walterheck> crayfishx: ^^ ? | ||
| [2011/10/28 13:38:59] <nate_h> conner_ custome ones | ||
| [2011/10/28 13:39:07] @ Quit: dbarcelo: Read error: Connection reset by peer | ||
| [2011/10/28 13:39:11] <nate_h> ^conner, custom ones with templates | ||
| [2011/10/28 13:39:21] @ dbarcelo joined channel #puppet | ||
| [2011/10/28 13:39:24] <nate_h> ^conner, was gonna modify the blkperl one to work with suse though eventually | ||
| [2011/10/28 13:40:44] <^conner> nate_h, awww. I have to setup bond interfaces... I'm doing that as a shell script from kickstart now | ||
| [2011/10/28 13:41:09] <nate_h> ^conner, ya for me autoyast already has built in xml optinos for bonding | ||
| [2011/10/28 13:41:29] <^conner> nate_h, but when a node become a VM host... I new a huge pile of bridge interfaces | ||
| [2011/10/28 13:41:44] <nate_h> ^conner, what hypervisor? | ||
| [2011/10/28 13:42:10] @ jari joined channel #puppet | ||
| [2011/10/28 13:42:19] @ Quit: tvsutton: Remote host closed the connection | ||
| [2011/10/28 13:42:20] <nate_h> ^conner, this module has options for bonding, etc | ||
| [2011/10/28 13:42:21] <blkperl> nate_h: cool | ||
| [2011/10/28 13:42:24] <nate_h> https://github.com/blkperl/puppet-network | ||
| [2011/10/28 13:42:50] <blkperl> also if you write tests that would be awesome :) | ||
| [2011/10/28 13:43:51] @ jsm joined channel #puppet | ||
| [2011/10/28 13:43:56] @ fir31ight joined channel #puppet | ||
| [2011/10/28 13:44:04] <^conner> nate_h, libvirt/kvm | ||
| [2011/10/28 13:44:25] <jsm> i'm running puppet 2.7.1, and i'm trying to find definitive docs on where to put my custom fact on the puppetmaster, and how i distribute it to the nodes | ||
| [2011/10/28 13:44:31] <nate_h> ^conner, what about openswitch? | ||
| [2011/10/28 13:44:31] <nate_h> \ | ||
| [2011/10/28 13:44:31] <^conner> blkperl, that module looks great... it works with rhel6? | ||
| [2011/10/28 13:44:49] <blkperl> i assume so... havn't tested it | ||
| [2011/10/28 13:45:37] <^conner> nate_h, never used it | ||
| [2011/10/28 13:45:50] @ tvsutton joined channel #puppet | ||
| [2011/10/28 13:46:30] <^conner> nate_h, it still needs at least one bridge interface that's vlan tagged | ||
| [2011/10/28 13:47:40] <^conner> nate_h, the blade switches I have can do all of that stuff too... if I cared | ||
| [2011/10/28 13:47:50] <nate_h> ^conner, ya, just figured it would simplify it a little, we are using it for opennebula | ||
| [2011/10/28 13:48:25] <^conner> nate_h, well it depends on what your doing... I used to use the nexus vswitch with vmware at another job because we needed to do per vm network accounting | ||
| [2011/10/28 13:48:39] @ tilgovi joined channel #puppet | ||
| [2011/10/28 13:48:42] <nate_h> ^conner, ya i mean if you have a nexus vswitch then you're set already :) | ||
| [2011/10/28 13:49:11] <^conner> nate_h, don't have that here... but the blade switches do almost all the same magic based on mac address | ||
| [2011/10/28 13:49:22] @ Quit: jkoppe: Read error: Connection reset by peer | ||
| [2011/10/28 13:50:03] <nate_h> ^conner, ibm blades or hp? | ||
| [2011/10/28 13:50:24] <^conner> ibm | ||
| [2011/10/28 13:50:35] <^conner> they are such a pita to deal with now that ibm bought them | ||
| [2011/10/28 13:52:20] <jsm> i've enabled pluginsync=true in [main] on the pupptemaster, i put my custom fact in /var/lib/puppet/facts on the puppet master, but i'm not seeing the plugin sync to the client on a puppet agent run. | ||
| [2011/10/28 13:53:16] @ ccaum joined channel #puppet | ||
| [2011/10/28 13:54:49] <FlexGuy> anybody created hardware (psu) monitoring task/template for machines? | ||
| [2011/10/28 13:55:35] <[diecast]> for nagios or something? | ||
| [2011/10/28 13:56:07] <^conner> FlexGuy, look at the nagios ipmi stuff | ||
| [2011/10/28 13:56:22] <^conner> there's probably an lm_sensors plugin too | ||
| [2011/10/28 13:56:41] <FlexGuy> yes i saw nagios... ok i think it was not part of puppet integration possibilities thanks | ||
| [2011/10/28 13:57:04] <FlexGuy> could it be done on windows machines? i have some asus boards but a lot a Dell pcs here.. | ||
| [2011/10/28 13:57:04] <^conner> FlexGuy, puppet is not a monitoring tool... it's a configuration too | ||
| [2011/10/28 13:57:19] <torrancew> jsm: check here http://docs.puppetlabs.com/guides/plugins_in_modules.html | ||
| [2011/10/28 13:57:19] <^conner> ipmi is ipmi | ||
| [2011/10/28 13:58:46] @ Quit: key: Remote host closed the connection | ||
| [2011/10/28 13:59:32] <FlexGuy> anybody would like to discuss/compare cfEngine to puppet? | ||
| [2011/10/28 13:59:35] @ Quit: uphillian: Quit: Leaving. | ||
| [2011/10/28 13:59:49] <illsci> how do you have more than one thing happen in a stage? stage {"pre": before => Stage["main"]} class { 'apt': stage => 'pre', } class { 'yum': stage => 'pre', } | ||
| [2011/10/28 14:00:03] <illsci> that's giving me an error... | ||
| [2011/10/28 14:00:11] <illsci> I want to have both those classes happen in pre | ||
| [2011/10/28 14:00:17] <Dominic> illsci: what's the error? | ||
| [2011/10/28 14:00:33] <illsci> SERVER: Duplicate definition: Stage[pre] is already defined in file /etc/puppet/manifests/site.pp at line 3 | ||
| [2011/10/28 14:00:54] <illsci> line 3 is the stage definition | ||
| [2011/10/28 14:01:55] @ Quit: brandon_dacrib: Quit: brandon_dacrib | ||
| [2011/10/28 14:02:09] @ key joined channel #puppet | ||
| [2011/10/28 14:02:13] @ Quit: skm: Read error: Connection reset by peer | ||
| [2011/10/28 14:03:42] @ skm joined channel #puppet | ||
| [2011/10/28 14:04:14] <illsci> no idea? | ||
| [2011/10/28 14:07:28] @ Quit: blentz: Ping timeout: 248 seconds | ||
| [2011/10/28 14:07:46] <rodjek> you absolutely sure you don't have another stage { 'pre': } hiding there somewhere? | ||
| [2011/10/28 14:09:09] <jsm> torrancew: thanks for that | ||
| [2011/10/28 14:10:39] @ soh joined channel #puppet | ||
| [2011/10/28 14:11:02] <the_ramink> illsci: is all that on one line in your site.pp? | ||
| [2011/10/28 14:11:02] <illsci> I do define stage again in a module | ||
| [2011/10/28 14:11:09] <illsci> no it's not | ||
| [2011/10/28 14:11:46] <illsci> So I have stage {"pre": before => Stage["main"]} in my site.pp where I'm trying to enforce some order and then I have the same exact thing in a module's init.pp | ||
| [2011/10/28 14:11:57] <the_ramink> only in site pp | ||
| [2011/10/28 14:11:57] <illsci> I thought they were scoped.... could that be why? | ||
| [2011/10/28 14:12:02] <illsci> hmm | ||
| [2011/10/28 14:12:08] <rodjek> you can't define stuff twice | ||
| [2011/10/28 14:12:18] <rodjek> that'll cause a duplicate definition error (funnily enough) | ||
| [2011/10/28 14:12:42] <illsci> yeah I only have it defined once in site.pp | ||
| [2011/10/28 14:12:45] @ verwilst joined channel #puppet | ||
| [2011/10/28 14:12:55] <rodjek> i thought you just said you defined it in your module as well | ||
| [2011/10/28 14:12:56] <the_ramink> illsci: even if you can scope stages which I'm doubtful of it'll only lead to insanity. | ||
| [2011/10/28 14:13:07] <illsci> I did | ||
| [2011/10/28 14:13:12] <rodjek> then it's defined twice | ||
| [2011/10/28 14:13:21] @ Quit: johnston: Ping timeout: 265 seconds | ||
| [2011/10/28 14:13:21] <illsci> I have it defined one time IN site.pp | ||
| [2011/10/28 14:13:28] <^conner> FlexGuy, no. I suggest you try cfengine and draw your on conclusions | ||
| [2011/10/28 14:13:34] <illsci> but I see what's up now... | ||
| [2011/10/28 14:13:36] <rodjek> yes, but it appears twice in the compiled catalogue | ||
| [2011/10/28 14:13:38] <illsci> thanks | ||
| [2011/10/28 14:15:17] @ Quit: key: Remote host closed the connection | ||
| [2011/10/28 14:19:54] @ gebi joined channel #puppet | ||
| [2011/10/28 14:20:36] <optiz0r> eric0: fixed my ssl issues last night. Must have run puppet on this box long ago without actually setting it up. Hit this bug: http://projects.puppetlabs.com/issues/4948 - deleting crl.pem on the client fixed | ||
| [2011/10/28 14:24:54] @ Quit: Razique: Quit: Razique | ||
| [2011/10/28 14:24:59] @ sako joined channel #puppet | ||
| [2011/10/28 14:27:06] @ flakrat joined channel #puppet | ||
| [2011/10/28 14:27:15] @ Quit: simNIX: Quit: Ik ga weg | ||
| [2011/10/28 14:28:20] @ Quit: hooper: Ping timeout: 258 seconds | ||
| [2011/10/28 14:30:29] <jsm> where does one define roles in terms of the /etc/puppet directory structure? | ||
| [2011/10/28 14:31:01] <jsm> i'm referring to this http://projects.puppetlabs.com/projects/1/wiki/Infrastructure_Design_Guidelines | ||
| [2011/10/28 14:31:07] <rodjek> i like to put them in a company specific module | ||
| [2011/10/28 14:31:30] <rodjek> modules/<company name>/manifests/role/web.pp for example | ||
| [2011/10/28 14:32:13] <jsm> rodjek: how do you send parameters to your roles? | ||
| [2011/10/28 14:32:29] <jsm> or rather, how do the roles get the parameters :) | ||
| [2011/10/28 14:32:42] <rodjek> jsm: i don't use an ENC, so i can make my roles defined types | ||
| [2011/10/28 14:32:49] <rodjek> and just pass parameters in the normal way | ||
| [2011/10/28 14:33:00] @ Quit: skm: Read error: Connection reset by peer | ||
| [2011/10/28 14:33:45] @ Quit: labrown: Quit: Leaving | ||
| [2011/10/28 14:34:20] @ Quit: tnguyen: Read error: Operation timed out | ||
| [2011/10/28 14:34:24] @ Quit: illsci: Ping timeout: 240 seconds | ||
| [2011/10/28 14:34:51] @ skm joined channel #puppet | ||
| [2011/10/28 14:36:02] <flakrat> I have one puppet client that isn't successfully applying its manifest, out of a group of identically configured clients, all sharing the same puppet config that are working properly | ||
| [2011/10/28 14:36:35] <flakrat> bah, just thought of something, running the client in debug mode | ||
| [2011/10/28 14:41:40] @ Quit: geekbri: Remote host closed the connection | ||
| [2011/10/28 14:42:06] @ skoom joined channel #puppet | ||
| [2011/10/28 14:42:13] @ Quit: thisKat: Quit: Computer has gone to sleep. | ||
| [2011/10/28 14:42:31] @ Quit: skm: Read error: Connection reset by peer | ||
| [2011/10/28 14:42:55] @ skoom is now known as skm | ||
| [2011/10/28 14:43:03] @ Quit: madhatter_: Quit: Thanks for the fish. | ||
| [2011/10/28 14:44:33] @ rsnhyperion_ joined channel #puppet | ||
| [2011/10/28 14:46:34] <flakrat> ok, --test shows it hanging here: "debug: Puppet::Type::Package::ProviderYum: Executing '/usr/bin/python /usr/lib/ruby/site_ruby/1.8/puppet/provider/package/yumhelper.py'" | ||
| [2011/10/28 14:46:55] @ Quit: rsnhyperion: Ping timeout: 244 seconds | ||
| [2011/10/28 14:46:55] @ Quit: lindenle_: Ping timeout: 258 seconds | ||
| [2011/10/28 14:46:55] @ rsnhyperion_ is now known as rsnhyperion | ||
| [2011/10/28 14:47:07] <rodjek> flakrat: have you tried running that manually? | ||
| [2011/10/28 14:47:18] <flakrat> let me try it | ||
| [2011/10/28 14:47:33] @ Quit: rsnhyperion: Client Quit | ||
| [2011/10/28 14:49:17] @ Quit: jimi_c: Read error: Connection reset by peer | ||
| [2011/10/28 14:49:30] @ Quit: asteve: Quit: asteve | ||
| [2011/10/28 14:50:12] <flakrat> rodjek, that was it, I had updated it to CentOS 5.7, during which new CentOS-*.repo files were added that were resulting in yum hanging | ||
| [2011/10/28 14:50:44] <flakrat> oddly enough, I was relying on puppet to clean out those files, since we point to our own internal repos, catch 22 in this case | ||
| [2011/10/28 14:51:10] <flakrat> thanks for the suggestion | ||
| [2011/10/28 14:51:14] <rodjek> no worries | ||
| [2011/10/28 14:56:13] @ Quit: spiette: Ping timeout: 244 seconds | ||
| [2011/10/28 14:58:39] @ Quit: ldlework: Ping timeout: 276 seconds | ||
| [2011/10/28 14:59:01] @ skoom joined channel #puppet | ||
| [2011/10/28 14:59:07] @ pdtpatrick joined channel #puppet | ||
| [2011/10/28 14:59:14] <pdtpatrick> Question .. i'm getting this error: | ||
| [2011/10/28 14:59:21] <pdtpatrick> err: Could not run Puppet configuration client: Error 400 on SERVER: Not authorized to call find on /file_metadata/files/apache2.conf Could not retrieve file metadata for puppet:///files/apache2.conf: Error 400 on SERVER: Not authorized to call find on /file_metadata/files/apache2.conf at /etc/puppet/manifests/site.pp:27 | ||
| [2011/10/28 14:59:34] <pdtpatrick> sorry for the spam .. will pastebin next time | ||
| [2011/10/28 15:00:36] @ Quit: skm: Ping timeout: 265 seconds | ||
| [2011/10/28 15:00:36] @ skoom is now known as skm | ||
| [2011/10/28 15:01:15] @ gregp76_ joined channel #puppet | ||
| [2011/10/28 15:01:20] @ Quit: gregp76: Ping timeout: 248 seconds | ||
| [2011/10/28 15:01:20] @ gregp76_ is now known as gregp76 | ||
| [2011/10/28 15:02:24] @ Quit: alanevans: Remote host closed the connection | ||
| [2011/10/28 15:05:55] @ Quit: marczak: Ping timeout: 256 seconds | ||
| [2011/10/28 15:06:18] <rodjek> pdtpatrick: sounds like a problem in your auth.conf | ||
| [2011/10/28 15:07:36] @ Quit: lwhalen: Ping timeout: 255 seconds | ||
| [2011/10/28 15:08:54] <pdtpatrick> here's my configuration | ||
| [2011/10/28 15:08:55] <pdtpatrick> http://pastebin.com/3EzL8cGE | ||
| [2011/10/28 15:09:04] <pdtpatrick> shows the site.pp .. the auth.. and the error | ||
| [2011/10/28 15:09:33] @ Quit: marrusl: Quit: Ex-Chat | ||
| [2011/10/28 15:09:49] @ kelseyhightower_ joined channel #puppet | ||
| [2011/10/28 15:09:49] <rodjek> ok, so what does your fileserver.conf have in it? | ||
| [2011/10/28 15:10:28] <pdtpatrick> http://pastebin.com/ux8yJYxk | ||
| [2011/10/28 15:11:07] <rodjek> what's the fqdn of the server you're trying to run puppet on? | ||
| [2011/10/28 15:11:17] <pdtpatrick> ptaylor.ubuntu11.dev | ||
| [2011/10/28 15:11:20] <pdtpatrick> crap | ||
| [2011/10/28 15:11:24] <rodjek> well, there's your problem | ||
| [2011/10/28 15:11:28] <pdtpatrick> i need to allow ubuntu11.dev | ||
| [2011/10/28 15:11:30] <henk> Use modules, no need to configure the fileserver then :) | ||
| [2011/10/28 15:11:44] <rodjek> well, yeah, that too | ||
| [2011/10/28 15:11:49] @ Quit: Nadir_Seen_Fire: Ping timeout: 240 seconds | ||
| [2011/10/28 15:12:01] <pdtpatrick> im still learning the basics ..i'll get to modules shortly | ||
| [2011/10/28 15:12:18] @ Quit: kelseyhightower: Ping timeout: 276 seconds | ||
| [2011/10/28 15:12:18] @ kelseyhightower_ is now known as kelseyhightower | ||
| [2011/10/28 15:12:39] <henk> pdtpatrick: Get to them before you get to the fileserver ;) | ||
| [2011/10/28 15:12:48] @ Kazuhiro joined channel #puppet | ||
| [2011/10/28 15:13:53] <pdtpatrick> okay i'll do that now - sounds fun anyway | ||
| [2011/10/28 15:18:01] @ Quit: sduchesneau: Remote host closed the connection | ||
| [2011/10/28 15:18:29] @ marrusl joined channel #puppet | ||
| [2011/10/28 15:19:07] @ jimi_c joined channel #puppet | ||
| [2011/10/28 15:20:56] @ claussen joined channel #puppet | ||
| [2011/10/28 15:21:40] @ mcarpent joined channel #puppet | ||
| [2011/10/28 15:21:43] @ Quit: shadoi: Quit: Leaving. | ||
| [2011/10/28 15:24:34] @ kaptk2 left channel #puppet () | ||
| [2011/10/28 15:24:51] @ Quit: n8: Quit: n8 | ||
| [2011/10/28 15:26:32] @ Quit: lborda: Quit: Ex-Chat | ||
| [2011/10/28 15:29:49] @ bman1 joined channel #puppet | ||
| [2011/10/28 15:30:44] @ gregp76_ joined channel #puppet | ||
| [2011/10/28 15:30:59] @ DanielFriesen joined channel #puppet | ||
| [2011/10/28 15:31:11] @ Quit: alfism: Quit: alfism | ||
| [2011/10/28 15:34:05] @ kelseyhightower_ joined channel #puppet | ||
| [2011/10/28 15:34:24] @ Quit: gregp76: Ping timeout: 240 seconds | ||
| [2011/10/28 15:34:24] @ gregp76_ is now known as gregp76 | ||
| [2011/10/28 15:34:49] @ jsurfer_ joined channel #puppet | ||
| [2011/10/28 15:35:22] @ Quit: ken_barber: Quit: Leaving. | ||
| [2011/10/28 15:36:00] @ Quit: kelseyhightower: Ping timeout: 248 seconds | ||
| [2011/10/28 15:36:00] @ kelseyhightower_ is now known as kelseyhightower | ||
| [2011/10/28 15:38:29] @ Quit: jsurfer: Ping timeout: 252 seconds | ||
| [2011/10/28 15:38:29] @ jsurfer_ is now known as jsurfer | ||
| [2011/10/28 15:40:54] @ dbarcelo_ joined channel #puppet | ||
| [2011/10/28 15:41:57] @ Quit: jsm: Quit: Leaving. | ||
| [2011/10/28 15:42:43] @ Quit: flakrat: Quit: Leaving | ||
| [2011/10/28 15:43:34] @ Quit: kermit: Quit: Leaving. | ||
| [2011/10/28 15:43:36] @ Quit: ckauhaus: Ping timeout: 240 seconds | ||
| [2011/10/28 15:43:49] @ kermit joined channel #puppet | ||
| [2011/10/28 15:43:53] @ Quit: dbarcelo: Ping timeout: 256 seconds | ||
| [2011/10/28 15:44:26] @ Quit: jongrocho: Remote host closed the connection | ||
| [2011/10/28 15:44:31] @ Quit: kangman: Remote host closed the connection | ||
| [2011/10/28 15:44:49] @ jongrocho joined channel #puppet | ||
| [2011/10/28 15:45:29] @ Quit: rew: Quit: Leaving. | ||
| [2011/10/28 15:46:09] @ Quit: sako: Ping timeout: 258 seconds | ||
| [2011/10/28 15:46:12] @ Quit: verwilst: Quit: Ex-Chat | ||
| [2011/10/28 15:46:34] @ marczak joined channel #puppet | ||
| [2011/10/28 15:47:32] @ blentz joined channel #puppet | ||
| [2011/10/28 15:49:36] @ Quit: DanielFriesen: Ping timeout: 240 seconds | ||
| [2011/10/28 15:50:37] @ Quit: jari: Quit: leaving | ||
| [2011/10/28 15:53:11] @ rsnhyperion joined channel #puppet | ||
| [2011/10/28 15:53:29] @ Quit: kelseyhightower: Quit: kelseyhightower | ||
| [2011/10/28 15:54:31] @ Holocaine joined channel #puppet | ||
| [2011/10/28 15:55:53] @ kelseyhightower joined channel #puppet | ||
| [2011/10/28 15:57:51] @ Quit: themadcanudist: Ping timeout: 260 seconds | ||
| [2011/10/28 15:58:54] @ Quit: zwi: Quit: Leaving. | ||
| [2011/10/28 15:59:52] @ simNIX joined channel #puppet | ||
| [2011/10/28 16:00:47] @ Quit: neonflux: Quit: Leaving. | ||
| [2011/10/28 16:01:23] @ dan__t_ joined channel #puppet | ||
| [2011/10/28 16:06:10] @ Quit: justdave: Quit: firmware update | ||
| [2011/10/28 16:06:42] @ tizzo joined channel #puppet | ||
| [2011/10/28 16:07:35] @ Quit: Kazuhiro: Quit: Leaving. | ||
| [2011/10/28 16:08:44] @ shadoi joined channel #puppet | ||
| [2011/10/28 16:10:45] @ Quit: marczak: Ping timeout: 252 seconds | ||
| [2011/10/28 16:12:58] @ justdave joined channel #puppet | ||
| [2011/10/28 16:15:48] @ Quit: soh: Quit: Computer has gone to sleep. | ||
| [2011/10/28 16:16:40] @ Quit: ghg: Quit: Computer has gone to sleep. | ||
| [2011/10/28 16:17:30] @ Quit: DJClean: Read error: Operation timed out | ||
| [2011/10/28 16:21:20] @ Quit: mmoya: Ping timeout: 248 seconds | ||
| [2011/10/28 16:21:59] @ Quit: clustermagnet: Ping timeout: 244 seconds | ||
| [2011/10/28 16:23:24] @ Quit: tvincent: | ||
| [2011/10/28 16:23:28] @ Quit: negronjl: Ping timeout: 248 seconds | ||
| [2011/10/28 16:29:09] @ Quit: benkevan: Quit: leaving | ||
| [2011/10/28 16:30:05] @ KaiserBeto1 left channel #puppet () | ||
| [2011/10/28 16:31:01] @ DanielFriesen joined channel #puppet | ||
| [2011/10/28 16:32:13] @ gregp76 left channel #puppet () | ||
| [2011/10/28 16:32:27] @ Quit: langworthy: Quit: langworthy | ||
| [2011/10/28 16:33:03] @ Quit: lak: Quit: Leaving. | ||
| [2011/10/28 16:33:55] @ langworthy joined channel #puppet | ||
| [2011/10/28 16:38:42] @ Quit: lanky: Quit: leaving | ||
| [2011/10/28 16:39:38] @ soh joined channel #puppet | ||
| [2011/10/28 16:40:20] @ lanky joined channel #puppet | ||
| [2011/10/28 16:40:37] @ Quit: lanky: Client Quit | ||
| [2011/10/28 16:42:01] @ lanky joined channel #puppet | ||
| [2011/10/28 16:42:35] @ Quit: lanky: Client Quit | ||
| [2011/10/28 16:45:13] @ Quit: purpleidea: Ping timeout: 252 seconds | ||
| [2011/10/28 16:45:33] @ Quit: soh: Quit: Computer has gone to sleep. | ||
| [2011/10/28 16:47:04] @ purpleidea joined channel #puppet | ||
| [2011/10/28 16:47:04] @ Quit: purpleidea: Changing host | ||
| [2011/10/28 16:47:05] @ purpleidea joined channel #puppet | ||
| [2011/10/28 16:52:57] @ Quit: bosszaru: Quit: Leaving. | ||
| [2011/10/28 16:53:01] @ Quit: mcarpent: Remote host closed the connection | ||
| [2011/10/28 16:56:52] @ Quit: jsurfer: Remote host closed the connection | ||
| [2011/10/28 16:57:13] @ jsurfer joined channel #puppet | ||
| [2011/10/28 16:59:01] @ Quit: eshamow_: Quit: eshamow_ | ||
| [2011/10/28 16:59:48] @ Quit: maxmartin: Quit: Computer has gone to sleep. | ||
| [2011/10/28 17:03:16] @ Quit: joshcooper: Quit: joshcooper | ||
| [2011/10/28 17:04:56] @ joshcooper joined channel #puppet | ||
| [2011/10/28 17:05:09] <rodjek> /win 5 | ||
| [2011/10/28 17:05:13] <rodjek> bleh | ||
| [2011/10/28 17:05:24] @ marczak joined channel #puppet | ||
| [2011/10/28 17:05:43] <semaphore> meta 5 | ||
| [2011/10/28 17:05:46] @ Quit: newtMcKerr: Quit: Leaving. | ||
| [2011/10/28 17:05:46] <whack> Password: | ||
| [2011/10/28 17:06:24] <rodjek> shuddup you two | ||
| [2011/10/28 17:08:12] <whack> :( | ||
| [2011/10/28 17:08:14] <whack> <3 | ||
| [2011/10/28 17:08:59] <rodjek> smartarses :) | ||
| [2011/10/28 17:09:01] @ Quit: joshcooper: Ping timeout: 240 seconds | ||
| [2011/10/28 17:09:37] @ Quit: diq: Remote host closed the connection | ||
| [2011/10/28 17:14:18] @ Quit: ianbrandt: Quit: ianbrandt | ||
| [2011/10/28 17:15:13] @ Quit: hobbeswalsh: Quit: hobbeswalsh | ||
| [2011/10/28 17:16:52] @ Quit: cast: Remote host closed the connection | ||
| [2011/10/28 17:20:37] @ Quit: blentz: Ping timeout: 240 seconds | ||
| [2011/10/28 17:23:14] @ Quit: dan__t_: Ping timeout: 260 seconds | ||
| [2011/10/28 17:30:25] @ Quit: djm68: Quit: leaving | ||
| [2011/10/28 17:32:02] @ mcarpent joined channel #puppet | ||
| [2011/10/28 17:32:30] @ Quit: tilgovi: Ping timeout: 255 seconds | ||
| [2011/10/28 17:33:32] @ Quit: marrusl: Quit: Ex-Chat | ||
| [2011/10/28 17:33:41] @ blentz joined channel #puppet | ||
| [2011/10/28 17:35:41] @ newtMcKerr joined channel #puppet | ||
| [2011/10/28 17:36:10] @ Quit: newtMcKerr: Client Quit | ||
| [2011/10/28 17:38:13] @ Quit: DanielFriesen: Ping timeout: 240 seconds | ||
| [2011/10/28 17:39:13] @ alterDanikov joined channel #puppet | ||
| [2011/10/28 17:42:08] @ alteralterdaniko joined channel #puppet | ||
| [2011/10/28 17:42:12] @ jwhitlock is now known as jwhitlock_zzz | ||
| [2011/10/28 17:42:15] @ Quit: danikov: Ping timeout: 252 seconds | ||
| [2011/10/28 17:43:59] @ Quit: kenperkins: Quit: Computer has gone to sleep. | ||
| [2011/10/28 17:44:28] @ danikov joined channel #puppet | ||
| [2011/10/28 17:44:39] @ Quit: alterDanikov: Ping timeout: 244 seconds | ||
| [2011/10/28 17:44:51] @ Quit: danikov: Read error: Connection reset by peer | ||
| [2011/10/28 17:45:16] @ danikov joined channel #puppet | ||
| [2011/10/28 17:47:01] @ Quit: alteralterdaniko: Ping timeout: 240 seconds | ||
| [2011/10/28 17:47:43] @ Quit: skm: Read error: Connection reset by peer | ||
| [2011/10/28 17:48:49] @ DanielFriesen joined channel #puppet | ||
| [2011/10/28 17:49:23] @ Quit: langworthy: Quit: langworthy | ||
| [2011/10/28 17:50:28] @ alterDanikov joined channel #puppet | ||
| [2011/10/28 17:50:37] @ skm joined channel #puppet | ||
| [2011/10/28 17:51:05] @ alteralterdaniko joined channel #puppet | ||
| [2011/10/28 17:51:28] @ Quit: danikov: Read error: Connection reset by peer | ||
| [2011/10/28 17:52:45] @ danikov joined channel #puppet | ||
| [2011/10/28 17:53:18] @ Quit: jongrocho: Remote host closed the connection | ||
| [2011/10/28 17:53:18] @ Quit: alteralterdaniko: Read error: Connection reset by peer | ||
| [2011/10/28 17:53:20] @ Quit: danikov: Read error: Connection reset by peer | ||
| [2011/10/28 17:53:35] @ danikov joined channel #puppet | ||
| [2011/10/28 17:54:01] @ Quit: alterDanikov: Read error: Connection reset by peer | ||
| [2011/10/28 17:57:09] @ Quit: danikov: Read error: Connection reset by peer | ||
| [2011/10/28 17:57:28] @ danikov joined channel #puppet | ||
| [2011/10/28 17:57:35] @ hooper joined channel #puppet | ||
| [2011/10/28 17:59:28] @ alterDanikov joined channel #puppet | ||
| [2011/10/28 17:59:38] @ Quit: bronto: Ping timeout: 244 seconds | ||
| [2011/10/28 18:00:42] @ Quit: alterDanikov: Read error: Connection reset by peer | ||
| [2011/10/28 18:01:42] @ tilgovi joined channel #puppet | ||
| [2011/10/28 18:02:59] @ Nadir_Seen_Fire joined channel #puppet | ||
| [2011/10/28 18:03:16] @ Quit: danikov: Ping timeout: 260 seconds | ||
| [2011/10/28 18:03:35] @ Quit: tilgovi: Read error: Connection reset by peer | ||
| [2011/10/28 18:05:24] @ tilgovi joined channel #puppet | ||
| [2011/10/28 18:05:27] @ pjd3 joined channel #puppet | ||
| [2011/10/28 18:05:33] @ Quit: tilgovi: Changing host | ||
| [2011/10/28 18:05:33] @ tilgovi joined channel #puppet | ||
| [2011/10/28 18:05:36] @ Quit: DanielFriesen: Ping timeout: 240 seconds | ||
| [2011/10/28 18:07:02] @ maxmartin joined channel #puppet | ||
| [2011/10/28 18:10:33] @ DanielFriesen joined channel #puppet | ||
| [2011/10/28 18:13:27] @ Quit: Nadir_Seen_Fire: Ping timeout: 255 seconds | ||
| [2011/10/28 18:15:27] @ Quit: abetterlie: Ping timeout: 258 seconds | ||
| [2011/10/28 18:17:20] @ Quit: tilgovi: Remote host closed the connection | ||
| [2011/10/28 18:17:22] @ dwalu joined channel #puppet | ||
| [2011/10/28 18:17:52] @ dwalu left channel #puppet () | ||
| [2011/10/28 18:17:53] @ alanevans joined channel #puppet | ||
| [2011/10/28 18:18:40] @ dwalu joined channel #puppet | ||
| [2011/10/28 18:20:06] @ Quit: jamison: Excess Flood | ||
| [2011/10/28 18:21:05] <dwalu> Hi! I have a file which when it is changes, it notifies a service to restart. I've also got a custom fact which extracts the release of that file via "svn info /path/to/svn". What I'm trying to do is figure out the best way to send a notice back to the master with that fact .. what I was thinking was the file declaration would Notify both the Service, and an Exec which just contains a line that says notify {" Deployed release | ||
| [2011/10/28 18:21:05] <dwalu> $deployed_version":}. Is there a more standard way of sending facts back to the master for informational purposes? | ||
| [2011/10/28 18:21:19] @ langworthy joined channel #puppet | ||
| [2011/10/28 18:21:51] @ jamison joined channel #puppet | ||
| [2011/10/28 18:22:44] <dwalu> the main reason I'm doing this is so I can associate it with a tag and have tagmai include the release whenever there's a deployment so everybody knows what's now live | ||
| [2011/10/28 18:25:51] @ mrwacky42 joined channel #puppet | ||
| [2011/10/28 18:28:54] <dwalu> it's feeling like the way I want to use Notify I need to rewrite my class to be a defined type instead | ||
| [2011/10/28 18:30:06] @ Quit: mrwacky42: Ping timeout: 255 seconds | ||
| [2011/10/28 18:31:56] @ neonflux joined channel #puppet | ||
| [2011/10/28 18:32:44] <dwalu> I guess the big question here is, how do I notify a notify? | ||
| [2011/10/28 18:33:45] @ Quit: erodriguez: Quit: erodriguez | ||
| [2011/10/28 18:34:46] @ Quit: devdas: Ping timeout: 244 seconds | ||
| [2011/10/28 18:36:35] @ Quit: xizhendu: Ping timeout: 260 seconds | ||
| [2011/10/28 18:36:57] @ xizhendu joined channel #puppet | ||
| [2011/10/28 18:38:46] @ Quit: mcarpent: Remote host closed the connection | ||
| [2011/10/28 18:39:29] @ Quit: rsnhyperion: Quit: rsnhyperion | ||
| [2011/10/28 18:43:35] @ Quit: xizhendu: Ping timeout: 260 seconds | ||
| [2011/10/28 18:44:15] @ xizhendu joined channel #puppet | ||
| [2011/10/28 18:48:39] @ jaminja joined channel #puppet | ||
| [2011/10/28 18:48:40] @ bman1 left channel #puppet () | ||
| [2011/10/28 18:48:56] @ frostynova joined channel #puppet | ||
| [2011/10/28 18:49:56] @ Quit: the_ramink: Ping timeout: 260 seconds | ||
| [2011/10/28 18:51:11] @ paroneay` is now known as paroneayea | ||
| [2011/10/28 18:51:17] @ Quit: paroneayea: Changing host | ||
| [2011/10/28 18:51:17] @ paroneayea joined channel #puppet | ||
| [2011/10/28 18:52:28] @ Quit: langworthy: Quit: langworthy | ||
| [2011/10/28 18:54:58] @ Quit: MrBIOS-seamicro: Quit: MrBIOS-seamicro | ||
| [2011/10/28 18:58:18] @ Quit: jrickman: Quit: Leaving... | ||
| [2011/10/28 18:58:54] @ Quit: choonming: Read error: Operation timed out | ||
| [2011/10/28 19:06:26] @ Quit: hooper: Ping timeout: 258 seconds | ||
| [2011/10/28 19:06:27] @ Quit: bmahe: Quit: Leaving | ||
| [2011/10/28 19:07:22] @ thoraxe joined channel #puppet | ||
| [2011/10/28 19:09:33] @ Quit: catay: Ping timeout: 276 seconds | ||
| [2011/10/28 19:16:06] <thoraxe> is it possible to read in an array of values from an external file? | ||
| [2011/10/28 19:16:20] @ shadoi1 joined channel #puppet | ||
| [2011/10/28 19:16:33] @ Quit: neonflux: Quit: Leaving. | ||
| [2011/10/28 19:17:54] <thoraxe> doing it witn normal extlookup seems ot be making puppet barf | ||
| [2011/10/28 19:18:48] @ Quit: shadoi: Ping timeout: 240 seconds | ||
| [2011/10/28 19:20:46] @ catay joined channel #puppet | ||
| [2011/10/28 19:20:48] @ Quit: tizzo: Ping timeout: 240 seconds | ||
| [2011/10/28 19:22:23] <thoraxe> ahh looks like just use extra commas | ||
| [2011/10/28 19:23:15] @ Quit: jamison: Excess Flood | ||
| [2011/10/28 19:23:23] @ Quit: jaminja: Ping timeout: 260 seconds | ||
| [2011/10/28 19:24:21] @ jamison joined channel #puppet | ||
| [2011/10/28 19:28:19] @ soh joined channel #puppet | ||
| [2011/10/28 19:29:11] @ jongrocho joined channel #puppet | ||
| [2011/10/28 19:29:19] @ Quit: pjd3: Ping timeout: 260 seconds | ||
| [2011/10/28 19:33:55] @ themadcanudist joined channel #puppet | ||
| [2011/10/28 19:37:17] @ ccaum left channel #puppet () | ||
| [2011/10/28 19:37:52] @ Quit: jongrocho: Quit: Leaving | ||
| [2011/10/28 19:38:01] @ jongrocho joined channel #puppet | ||
| [2011/10/28 19:39:49] @ Quit: jongrocho: Client Quit | ||
| [2011/10/28 19:39:58] @ jongrocho joined channel #puppet | ||
| [2011/10/28 19:42:47] @ Quit: frostynova: Remote host closed the connection | ||
| [2011/10/28 19:42:47] @ the_ramink joined channel #puppet | ||
| [2011/10/28 19:43:59] @ Quit: jongrocho: Client Quit | ||
| [2011/10/28 19:45:18] @ choonming joined channel #puppet | ||
| [2011/10/28 19:45:39] @ choonming_ joined channel #puppet | ||
| [2011/10/28 19:47:13] @ Quit: Holocaine: | ||
| [2011/10/28 19:47:25] @ Quit: soh: Quit: Computer has gone to sleep. | ||
| [2011/10/28 19:49:41] @ Quit: choonming: Ping timeout: 244 seconds | ||
| [2011/10/28 19:51:54] @ frostynova joined channel #puppet | ||
| [2011/10/28 19:53:04] @ KaiserBeto1 joined channel #puppet | ||
| [2011/10/28 19:58:18] @ Quit: proton: Ping timeout: 256 seconds | ||
| [2011/10/28 19:58:26] @ proton joined channel #puppet | ||
| [2011/10/28 20:05:45] @ Quit: choonming_: Read error: Connection timed out | ||
| [2011/10/28 20:05:52] @ philbert_777 joined channel #puppet | ||
| [2011/10/28 20:08:27] @ choonming_ joined channel #puppet | ||
| [2011/10/28 20:10:08] @ bmahe joined channel #puppet | ||
| [2011/10/28 20:10:09] @ Quit: bmahe: Changing host | ||
| [2011/10/28 20:10:09] @ bmahe joined channel #puppet | ||
| [2011/10/28 20:11:05] @ soh joined channel #puppet | ||
| [2011/10/28 20:15:48] @ Quit: soh: Client Quit | ||
| [2011/10/28 20:16:57] <dwalu> if I create a custom fact, how do I pass that fact as a parameter to a parameterized class? would I just say myfact => $myfact, ? | ||
| [2011/10/28 20:21:08] @ Quit: cliff-hm: Ping timeout: 260 seconds | ||
| [2011/10/28 20:23:47] @ Quit: paroneayea: Read error: Connection reset by peer | ||
| [2011/10/28 20:25:45] @ paroneayea joined channel #puppet | ||
| [2011/10/28 20:27:28] @ tilgovi joined channel #puppet | ||
| [2011/10/28 20:30:28] @ Quit: choonming_: Read error: Connection timed out | ||
| [2011/10/28 20:30:44] @ Kazuhiro joined channel #puppet | ||
| [2011/10/28 20:31:40] @ dan__t_ joined channel #puppet | ||
| [2011/10/28 20:32:23] @ Kazuhiro left channel #puppet () | ||
| [2011/10/28 20:35:23] @ marrusl joined channel #puppet | ||
| [2011/10/28 20:36:46] @ Quit: scooby2: Changing host | ||
| [2011/10/28 20:36:46] @ scooby2 joined channel #puppet | ||
| [2011/10/28 20:38:43] @ EspadaV8_away is now known as EspadaV8 | ||
| [2011/10/28 20:39:06] <dwalu> can you notify a defined type? | ||
| [2011/10/28 20:43:20] <dwalu> is there a channel people actually use? | ||
| [2011/10/28 20:44:05] <jpalmer> sure. this one. but think about the target audience. most of us are professional admins/ops, which usually means the channel is active during business hours. | ||
| [2011/10/28 20:44:21] <dwalu> so I'm the only nerd working late hours? | ||
| [2011/10/28 20:45:05] <jpalmer> I didn't say that. but it appears you are the only person using the channel at this hour ;) | ||
| [2011/10/28 20:45:17] <dwalu> hah :) | ||
| [2011/10/28 20:45:48] <jpalmer> as for your custom fact question, yes. you'd use it like any other fact. with the obvious caveat that.. until the fact runs successfully, it'll be undefined or "empty" | ||
| [2011/10/28 20:47:23] @ Quit: dan__t_: Ping timeout: 260 seconds | ||
| [2011/10/28 20:48:26] @ Quit: skm: Quit: Computer has gone to sleep. | ||
| [2011/10/28 20:48:35] <dwalu> thanks. I think my problem is a lot bigger. I last used puppet with 0.24 and my fu is weak now. | ||
| [2011/10/28 20:49:14] <jpalmer> well, you haven't really mentioned what the problem is, either ;) | ||
| [2011/10/28 20:50:12] @ tizzo-afk joined channel #puppet | ||
| [2011/10/28 20:50:13] <dwalu> well I've written a defined type named log_console_release, which just notifies some data it extracts from svn, and put it into log_console_release.pp, now I'm trying to figure out how I can notify that defined type whenever I update a file, so I can get a logging message about deployments | ||
| [2011/10/28 20:51:02] @ Quit: jsurfer: Remote host closed the connection | ||
| [2011/10/28 20:51:08] <jpalmer> you manipulate a .pp file, based on data froma defined type? | ||
| [2011/10/28 20:51:28] @ jsurfer joined channel #puppet | ||
| [2011/10/28 20:51:58] @ pjd3 joined channel #puppet | ||
| [2011/10/28 20:52:22] <dwalu> sorry, I said that in clearly. so I created a file named log_console_release.pp which has a defined type named log_console_release. That defined type takes one parameter, the fact which contains the pertinent data, and has one statement: notify { "Just deployed $console_release":} | ||
| [2011/10/28 20:52:32] <dwalu> $console_release is the data I want to notify back to the server log | ||
| [2011/10/28 20:52:34] <jpalmer> without knowing your needs or environment.. I'd suggest not doing that. I'd suggest using a fact to extract the data from SVN, and using the value of that fact in your puppet manifests | ||
| [2011/10/28 20:52:50] <jpalmer> oh ok. gotcha | ||
| [2011/10/28 20:52:58] <dwalu> in-clearly == unclearly | ||
| [2011/10/28 20:53:13] <dwalu> essentially I'm just trying to notify my dev team when deployments happen and what version is deployed | ||
| [2011/10/28 20:53:30] <dwalu> I get the release through a fact that just calls svn info /svn/path | ||
| [2011/10/28 20:53:39] @ soh joined channel #puppet | ||
| [2011/10/28 20:53:42] <jpalmer> well, I think the "notify" type does something a little different than you may think ;) | ||
| [2011/10/28 20:54:17] <dwalu> hmm. inside of some of puppet labs' repos I've seen notify used that way, sort of as puppet's equivalent to the logger command | ||
| [2011/10/28 20:54:51] <jpalmer> the notify type only notifies a resource of a change so it can restart, or reload as appropriate. for instance.. if you edit your sshd_config, you'd "notify" the sshd service so it can load the new changes. | ||
| [2011/10/28 20:55:05] <dwalu> like notify { "Can't parse public key file $key_src_file for key $title on the keymaster: skipping ensure => $ensure": } | ||
| [2011/10/28 20:55:37] <dwalu> is from puppet labs' ssh module | ||
| [2011/10/28 20:56:22] <jpalmer> hold on, it appears I may be confused. | ||
| [2011/10/28 20:56:31] <dwalu> so at least in that module it seems possible to use notify as a hawkish way to send a message to the puppet master's log | ||
| [2011/10/28 20:56:36] <jpalmer> http://docs.puppetlabs.com/references/2.7.0/type.html#notify <-- seems to indicate you'd use it like you currently are. | ||
| [2011/10/28 20:56:41] @ negronjl joined channel #puppet | ||
| [2011/10/28 20:58:35] <dwalu> OK so at least I'm not on crack | ||
| [2011/10/28 20:58:47] <jpalmer> no, but it seems I am. | ||
| [2011/10/28 20:59:50] <dwalu> yeah, I guess there are two types notifies .. the notify command which seems to be puppet's "logger" equivalent, and then the notify that says "hey service, restart" | ||
| [2011/10/28 21:00:59] <dwalu> I think what's changed is it used to be that you could just call a defined type as defined_type($parameters) | ||
| [2011/10/28 21:01:20] <dwalu> and in 2.7 they look more like defined_type{parameter => $parameter} ? | ||
| [2011/10/28 21:02:24] <dwalu> or if not, then my line which says notify => [Service['nodes'], log_console_release($console_release) ], is wrong | ||
| [2011/10/28 21:02:57] <dwalu> maybe I'm using dependencies wrong? basically I just want to call log_console_release whenever this file changes, which is I thought what notify would do | ||
| [2011/10/28 21:03:19] <dwalu> relationship chaining, even | ||
| [2011/10/28 21:08:48] @ Quit: jovy: Ping timeout: 248 seconds | ||
| [2011/10/28 21:16:10] <dwalu> ok I was smoking crack. What I was doing was trying to notify my function which calls Notify. | ||
| [2011/10/28 21:16:35] <dwalu> what I wanted to do was just call (declare?) the defined type after the deploy happened. | ||
| [2011/10/28 21:20:24] <dwalu> thx for helping me clear that up. now I'm allowed to have dinner. | ||
| [2011/10/28 21:23:00] @ Quit: philbert_777: Quit: Give a man a fish and he will eat for a day. Teach him how to fish, and he will sit in a boat and drink beer all day | ||
| [2011/10/28 21:26:08] @ Quit: WALoeIII: Quit: Connection closed for inactivity | ||
| [2011/10/28 21:26:54] @ Quit: the_ramink: Ping timeout: 260 seconds | ||
| [2011/10/28 21:32:49] @ Quit: shadoi1: Quit: Leaving. | ||
| [2011/10/28 21:34:31] @ Quit: jpalmer: Ping timeout: 252 seconds | ||
| [2011/10/28 21:51:18] @ neonflux joined channel #puppet | ||
| [2011/10/28 21:55:53] @ Quit: marrusl: Remote host closed the connection | ||
| [2011/10/28 21:57:02] @ shadoi joined channel #puppet | ||
| [2011/10/28 22:04:09] @ Quit: proton: Changing host | ||
| [2011/10/28 22:04:09] @ proton joined channel #puppet | ||
| [2011/10/28 22:04:31] @ jpalmer joined channel #puppet | ||
| [2011/10/28 22:05:03] @ Quit: jpalmer: Client Quit | ||
| [2011/10/28 22:11:09] @ Quit: shadoi: Quit: Leaving. | ||
| [2011/10/28 22:12:57] @ Quit: bodepd: Quit: ##aws | ||
| [2011/10/28 22:13:05] @ bodepd joined channel #puppet | ||
| [2011/10/28 22:13:19] @ shadoi joined channel #puppet | ||
| [2011/10/28 22:13:21] @ NG_ joined channel #puppet | ||
| [2011/10/28 22:13:44] @ Quit: NG_: Client Quit | ||
| [2011/10/28 22:15:17] @ Quit: kloeri: Remote host closed the connection | ||
| [2011/10/28 22:17:27] @ Quit: shadoi: Ping timeout: 244 seconds | ||
| [2011/10/28 22:31:26] @ kloeri joined channel #puppet | ||
| [2011/10/28 22:31:27] @ gniks1 joined channel #puppet | ||
| [2011/10/28 22:33:03] @ Quit: gniks: Read error: Operation timed out | ||
| [2011/10/28 22:34:58] @ jpalmer joined channel #puppet | ||
| [2011/10/28 22:36:32] @ ghanima joined channel #puppet | ||
| [2011/10/28 22:36:46] <dwalu> is it possible to subscribe a service to a recursive File entry? | ||
| [2011/10/28 22:37:11] <dwalu> or to add refresh only to a definedtype? | ||
| [2011/10/28 22:37:31] <dwalu> I want to run this defined type only when something under that directory has changed | ||
| [2011/10/28 22:38:59] <dwalu> or at least is it possible to only run this defined type when a service refreshes? | ||
| [2011/10/28 22:39:25] <dwalu> right now I notify a service from a recursive directory | ||
| [2011/10/28 22:42:31] @ devdas joined channel #puppet | ||
| [2011/10/28 22:46:46] <dwalu> a generic refresh only parameter would be nice, otherwise I'm not sure how to prevent this function from being run every time the class is run | ||
| [2011/10/28 22:47:12] <dwalu> or am I doing the wrong thing by trying to notify from a recursive directory? | ||
| [2011/10/28 22:48:31] @ Quit: johnmorr: Ping timeout: 260 seconds | ||
| [2011/10/28 22:48:38] @ johnmorr joined channel #puppet | ||
| [2011/10/28 22:48:53] <dwalu> puppet's relationship chaining seems delicate | ||
| [2011/10/28 22:49:35] @ Quit: pjd3: Remote host closed the connection | ||
| [2011/10/28 22:50:32] @ hooper joined channel #puppet | ||
| [2011/10/28 22:51:42] <dwalu> even if I add subscribe => File['/path/to/recursive/dir'] (which never actually changes) the defined type still runs on every puppet run | ||
| [2011/10/28 22:51:48] <dwalu> is there voodoo I'm missing here? | ||
| [2011/10/28 22:52:04] <dwalu> i'm having problems finding anything in the mailing list archives or on the wiki | ||
| [2011/10/28 22:55:04] <dwalu> I'm running 2.7.2, maybe this is just a bug? | ||
| [2011/10/28 22:57:27] <zleslie> Defined types are run anyway | ||
| [2011/10/28 22:57:45] <dwalu> so there's no way to say "only run this if this condition changes"? | ||
| [2011/10/28 22:57:50] <zleslie> regardless of subscribe. Subscribe simplys sets order if needed. | ||
| [2011/10/28 22:58:01] <zleslie> dwalu: you can, but you do it with an exect | ||
| [2011/10/28 22:58:04] <dwalu> really? | ||
| [2011/10/28 22:58:06] <dwalu> :( | ||
| [2011/10/28 22:58:17] <zleslie> What are you trying to do? | ||
| [2011/10/28 22:58:23] <zleslie> your defined type that is | ||
| [2011/10/28 22:58:38] <dwalu> I wrote a defined type that sends a Notify to grab the release from a subversion tree so tag mail can email us when deploys happen | ||
| [2011/10/28 22:59:11] <dwalu> not a notify => in terms of ~> but rather using Notify {"Hey we deployed some new stuff"} | ||
| [2011/10/28 22:59:57] <zleslie> See refreshonly in the exec type: http://docs.puppetlabs.com/references/stable/type.html | ||
| [2011/10/28 23:00:22] <zleslie> Why wrap a define around a notice? | ||
| [2011/10/28 23:00:28] <zleslie> just to get a log message? | ||
| [2011/10/28 23:00:56] <dwalu> because my team needs to know when a new version of our software was deployed | ||
| [2011/10/28 23:01:13] <dwalu> right now I have a recursive directory tree which notifies a service to restart if anything in that directory changes | ||
| [2011/10/28 23:01:22] <dwalu> and I need to send out this email only if that condition happens | ||
| [2011/10/28 23:02:10] <dwalu> what I need to do feels perfectly reasonable to me, does it seem ridiculous to everybody else? | ||
| [2011/10/28 23:03:13] <zleslie> Not at all. I am just trying to understand | ||
| [2011/10/28 23:03:44] <dwalu> Step 1: File ["/path/to/svn"] recurse => true, notify => Service["my service"] | ||
| [2011/10/28 23:03:46] <zleslie> It sounds like you just want a script sitting somewhere in /usr/local/bin, and then an exec resource with refreshonly, then you notify => Exec["my magic script"] | ||
| [2011/10/28 23:04:09] <dwalu> but by doing that I lose the ability to use tagmail? | ||
| [2011/10/28 23:04:34] <zleslie> I don't know what tagmail is | ||
| [2011/10/28 23:04:56] <dwalu> with puppet you can set an arbitrary tag on any type | ||
| [2011/10/28 23:05:08] <zleslie> yes | ||
| [2011/10/28 23:05:09] <dwalu> and if that tag gets run, tag mail can be configured to send out a report about that action | ||
| [2011/10/28 23:05:18] <dwalu> or rather if something with that tag gets "run" | ||
| [2011/10/28 23:05:27] <zleslie> Why not just tag the exec then? | ||
| [2011/10/28 23:05:36] @ Quit: soh: Quit: Computer has gone to sleep. | ||
| [2011/10/28 23:05:57] <dwalu> I guess I hadn't tried that. a defined type seemed like the right way to do it, and less like a shell-script hack | ||
| [2011/10/28 23:06:33] <zleslie> The exec resource is pretty powerful | ||
| [2011/10/28 23:07:28] <dwalu> I'll try that then. This just feels wrong | ||
| [2011/10/28 23:08:05] <zleslie> okay | ||
| [2011/10/28 23:08:09] <dwalu> this can't be right | ||
| [2011/10/28 23:08:19] <dwalu> right now I'm creating a custom Fact so that I can use that fact in other places | ||
| [2011/10/28 23:08:33] <zleslie> Show me some code | ||
| [2011/10/28 23:08:54] <zleslie> It sounds like you are making this more complicted than it need be | ||
| [2011/10/28 23:09:20] <dwalu> I'm not trying to be a jerk, but isn't the whole idea of Facter that you can grab facts and use them in other places? | ||
| [2011/10/28 23:09:33] <dwalu> here's my fact: https://gist.github.com/d41dae2e25f414be3ee0 | ||
| [2011/10/28 23:09:43] <dwalu> that works right, it returns me a revision in a fact named console_revision | ||
| [2011/10/28 23:10:12] <dwalu> heres my defined the that does the notify: https://gist.github.com/1324160 | ||
| [2011/10/28 23:11:25] <dwalu> https://gist.github.com/1324163 is my class that's calling everything | ||
| [2011/10/28 23:11:47] <zleslie> dwalu: Ahh | ||
| [2011/10/28 23:14:38] @ jsm joined channel #puppet | ||
| [2011/10/28 23:14:41] <zleslie> I think if you did something like write the console_revision fact out to a file somewhere, and read it in using a small function, you could acheive what you are looking for | ||
| [2011/10/28 23:15:07] <zleslie> then compare old to new with an if conditional, and then log_console_revision {'': ... | ||
| [2011/10/28 23:15:43] <zleslie> like file { "/my/fun/file": content => "console_revision" } | ||
| [2011/10/28 23:15:56] <zleslie> missing a $ in there | ||
| [2011/10/28 23:16:00] <zleslie> but you get the idea | ||
| [2011/10/28 23:16:31] <zleslie> Its still a bit hack, but defines will get processed every time, so you need to wrap it in a conditional | ||
| [2011/10/28 23:16:56] <zleslie> and puppet does not know about previos runs much, so writing it out to disk could help | ||
| [2011/10/28 23:17:05] <zleslie> dwalu: does that make sense? | ||
| [2011/10/28 23:18:46] <dwalu> will that actually work? | ||
| [2011/10/28 23:19:02] <dwalu> if I write an Exec and have it subscribe to that file, how will the exec know that file changed without puppet's md5sum goodness? | ||
| [2011/10/28 23:19:08] @ Quit: kloeri: Ping timeout: 600 seconds | ||
| [2011/10/28 23:19:49] @ kloeri joined channel #puppet | ||
| [2011/10/28 23:21:05] <dwalu> since as you pointed out puppet doesn't know anything about the previous run? | ||
| [2011/10/28 23:21:12] @ Holocaine joined channel #puppet | ||
| [2011/10/28 23:21:15] <dwalu> or do I need to come up with some shell-based way to compare? | ||
| [2011/10/28 23:23:28] <zleslie> I was thinking of: if $last != $new { log_console_revision {.. | ||
| [2011/10/28 23:24:01] <jsm> the exec could have a conditional | ||
| [2011/10/28 23:24:10] <zleslie> that too | ||
| [2011/10/28 23:24:18] <jsm> so that it only runs if the file contains a string or whater | ||
| [2011/10/28 23:24:21] <jsm> whatever | ||
| [2011/10/28 23:26:03] <dwalu> I'm confused, I don't see how the conditionals work within puppet if puppet can't maintain the last state | ||
| [2011/10/28 23:26:25] <zleslie> But there are still conditions | ||
| [2011/10/28 23:26:34] <dwalu> there are conditions outside of puppet but not within it? | ||
| [2011/10/28 23:26:55] @ Quit: negronjl: Ping timeout: 258 seconds | ||
| [2011/10/28 23:27:01] <zleslie> http://docs.puppetlabs.com/guides/language_guide.html#conditionals | ||
| [2011/10/28 23:27:54] <dwalu> in your example, whenever something under File/recursive/directory changes, it would have to move /tmp/cur-releae to /tmp/old-release before copying everything over from the puppet master, then after the files are copied over it would have to update the fact and compare the fact to the old fact? | ||
| [2011/10/28 23:27:57] @ Quit: druggo: Quit: 离开 | ||
| [2011/10/28 23:30:09] @ Quit: davewongillies: Remote host closed the connection | ||
| [2011/10/28 23:32:05] <zleslie> You could make a new fact called "svn_has_changed" and put all the logic in there | ||
| [2011/10/28 23:32:16] <zleslie> make it bool | ||
| [2011/10/28 23:32:21] @ DJClean joined channel #puppet | ||
| [2011/10/28 23:32:28] <zleslie> then if $svn_has_changed == true { notify_thing | ||
| [2011/10/28 23:32:37] <zleslie> You may have a point about the ext | ||
| [2011/10/28 23:32:40] <zleslie> *exec | ||
| [2011/10/28 23:32:48] <zleslie> without testing, I am unsure | ||
| [2011/10/28 23:32:52] <dwalu> this sounds like it breaks idempotency | ||
| [2011/10/28 23:32:57] @ davewongillies joined channel #puppet | ||
| [2011/10/28 23:33:03] <dwalu> like it might be hackable on an existing system, but not when I bootstrap new servers | ||
| [2011/10/28 23:33:24] <zleslie> I don't see that | ||
| [2011/10/28 23:34:17] <dwalu> i've been working for about 10 hours so my logic is probably skewed at this point, but it seems like it would run into a chicken & the egg scenario where puppet would need that fact to exist before it can compare facts | ||
| [2011/10/28 23:34:56] <zleslie> if you use pluginsync, facts are synced before the catalog is compiled | ||
| [2011/10/28 23:36:16] <dwalu> could I just assign a variable like $old_console_revision => $console_revision, then do that conditional? | ||
| [2011/10/28 23:36:32] @ Quit: Holocaine: | ||
| [2011/10/28 23:36:50] <dwalu> and then do if $old_console_revision != $console_revision then log_console_revision; end? | ||
| [2011/10/28 23:37:03] <zleslie> yes. There is a function called file() that reads the contents of a file. | ||
| [2011/10/28 23:37:24] <zleslie> That is what I was suggesting earlier. | ||
| [2011/10/28 23:37:25] <dwalu> ok I see how that would work since faster is run before compilation | ||
| [2011/10/28 23:37:29] <zleslie> But I haven't test it | ||
| [2011/10/28 23:38:03] <zleslie> There are things that puppet can not do. For everythign else, there is ruby | ||
| [2011/10/28 23:38:20] <zleslie> that was like an amex commercial :) | ||
| [2011/10/28 23:38:29] <dwalu> yeah I was just thinking this would be easier if I rewrote this class in ruby and outside of the dsl? | ||
| [2011/10/28 23:38:56] <dwalu> because hopefully then there's less potential to get order wrong | ||
| [2011/10/28 23:39:05] <zleslie> for sure. If you have some ruby foo, functions are easy to write and you already have your facts | ||
| [2011/10/28 23:39:08] @ Quit: bmahe: Remote host closed the connection | ||
| [2011/10/28 23:39:13] <zleslie> you could even do all the logic in your fact | ||
| [2011/10/28 23:39:30] <zleslie> compare the current revision to the one that you wrote out to a file last time | ||
| [2011/10/28 23:39:50] <zleslie> which is why I was saying: if $has_changed == true {... | ||
| [2011/10/28 23:40:06] <dwalu> oh ok I think I'm getting it | ||
| [2011/10/28 23:40:11] <zleslie> seems like you are done at that point | ||
| [2011/10/28 23:40:13] <dwalu> so I create two facts in that fact definition | ||
| [2011/10/28 23:40:29] <zleslie> sure, but I don't think you need them | ||
| [2011/10/28 23:40:40] <zleslie> just let ruby do all the work | ||
| [2011/10/28 23:40:48] <zleslie> then pass true or false back up | ||
| [2011/10/28 23:40:50] <zleslie> to puppet | ||
| [2011/10/28 23:41:09] <dwalu> so do the comparison in the code that's creating the fact, and return a 1 if it's changed | ||
| [2011/10/28 23:41:15] <dwalu> (as well as create the fact) | ||
| [2011/10/28 23:41:20] <zleslie> yes | ||
| [2011/10/28 23:41:55] @ Quit: davewongillies: Quit: Eaten by a grue | ||
| [2011/10/28 23:42:05] <zleslie> custom facts are awesome | ||
| [2011/10/28 23:43:02] @ davewongillies joined channel #puppet | ||
| [2011/10/28 23:46:39] <dwalu> if I do the conditional within the fact and return the 1, how do I access the return status of that fact? | ||
| [2011/10/28 23:52:15] <dwalu> I guess I'm not clear as to how to access any data beyond facts from a fact | ||
| [2011/10/28 23:54:13] @ Quit: frostynova: Ping timeout: 252 seconds | ||
| [2011/10/28 23:54:49] @ frostynova joined channel #puppet | ||
| [2011/10/28 23:54:50] <dwalu> I guess I'm just not a good enough programmer to figure out how to pass data in and out of puppet like that | ||
| [2011/10/28 23:55:16] <dwalu> it seems like this is all or nothing, either do everything in ruby or everything in puppet unless there's other magic I don't know about | ||
| [2011/10/28 23:56:22] <dwalu> i'm going to screw around with variable assignment for an hour then tell my developers to go fuck themselves and move onto my next ticket | ||
| [2011/10/28 23:57:01] <zleslie> make the fact return 1 or 0 | ||
| [2011/10/28 23:57:12] <dwalu> return to where? | ||
| [2011/10/28 23:57:22] <zleslie> the value of the fact | ||
| [2011/10/28 23:57:30] <dwalu> uhm | ||
| [2011/10/28 23:57:38] <zleslie> as in, $my_shiny_fact == true | ||
| [2011/10/28 23:57:41] <dwalu> so then I'm scrapping the value I need in the fact, the revision number? | ||
| [2011/10/28 23:57:43] <zleslie> or false or whatever | ||
| [2011/10/28 23:57:45] <dwalu> or I'm creating a new fact? | ||
| [2011/10/28 23:57:53] <zleslie> you don't need the revision, you just need to know if it changed, right | ||
| [2011/10/28 23:58:00] <zleslie> sure, a new fact would be fine |
Generated by irclog2html.py 2.9.2 by Marius Gedminas - find it at mg.pov.lt!