| [2011/11/17 00:03:37] @ Log started by gepetto | ||
| [2011/11/17 00:03:37] @ unxbm3r joined channel #puppet | ||
| [2011/11/17 00:03:59] @ Shanlar- joined channel #puppet | ||
| [2011/11/17 00:04:47] @ Quit: rutger_: Remote host closed the connection | ||
| [2011/11/17 00:06:41] @ Quit: Shanlar: Ping timeout: 248 seconds | ||
| [2011/11/17 00:07:18] @ raphdg joined channel #puppet | ||
| [2011/11/17 00:07:30] @ derjohn_mob joined channel #puppet | ||
| [2011/11/17 00:11:42] @ kelseyhightower joined channel #puppet | ||
| [2011/11/17 00:12:04] @ dclp joined channel #puppet | ||
| [2011/11/17 00:15:20] @ Quit: Spads_: Ping timeout: 244 seconds | ||
| [2011/11/17 00:16:55] @ zorg1 joined channel #puppet | ||
| [2011/11/17 00:24:23] @ Quit: jodok: Read error: Connection reset by peer | ||
| [2011/11/17 00:24:41] @ jodok joined channel #puppet | ||
| [2011/11/17 00:24:42] @ Quit: jodok: Changing host | ||
| [2011/11/17 00:24:42] @ jodok joined channel #puppet | ||
| [2011/11/17 00:28:35] <cverdeh> Any ideas how you could use lists in puppet? I can't find any loop syntax to make use of lists outside of the erb template stuff. | ||
| [2011/11/17 00:31:26] @ EL84 joined channel #puppet | ||
| [2011/11/17 00:34:20] <fragfutter> cverdeh: no loops in puppet | ||
| [2011/11/17 00:34:50] @ Quit: tilgovi: Read error: Operation timed out | ||
| [2011/11/17 00:35:16] @ Stenbryggen joined channel #puppet | ||
| [2011/11/17 00:35:23] @ brtl joined channel #puppet | ||
| [2011/11/17 00:35:57] <cverdeh> fragfutter: Ah. Is there any other way to process a list? Map function? | ||
| [2011/11/17 00:36:54] @ Quit: skm: Quit: Leaving... | ||
| [2011/11/17 00:37:07] <fragfutter> cverdeh: you can abuse a define with a list, but i would avoid it. | ||
| [2011/11/17 00:37:46] @ verwilst joined channel #puppet | ||
| [2011/11/17 00:38:03] @ trickyf joined channel #puppet | ||
| [2011/11/17 00:38:40] @ Quit: sarkis_: Ping timeout: 240 seconds | ||
| [2011/11/17 00:39:28] @ jonhattan joined channel #puppet | ||
| [2011/11/17 00:40:30] <cverdeh> fragfutter: I dunno.. I'm defining a resource that will create a configuration, only a couple of parameters are required, and entirely costom attributes are void so I was planning to have the required arguments as normal parameters and the others as a list of [attribute,value]. | ||
| [2011/11/17 00:40:57] <cverdeh> Is there a more puppety way of doing it? | ||
| [2011/11/17 00:41:02] @ trickyf left channel #puppet () | ||
| [2011/11/17 00:41:27] @ mmoya joined channel #puppet | ||
| [2011/11/17 00:42:43] @ trickyf joined channel #puppet | ||
| [2011/11/17 00:42:51] <fragfutter> what is happening with the attribute,value pairs? | ||
| [2011/11/17 00:44:45] <Andorka> can i write in common class definition like this: if ($project = 'asd') then | ||
| [2011/11/17 00:44:45] <Andorka> include common::asd | ||
| [2011/11/17 00:44:45] <Andorka> else | ||
| [2011/11/17 00:44:45] <Andorka> include common::qwe | ||
| [2011/11/17 00:44:51] <Andorka> ? | ||
| [2011/11/17 00:45:02] <cverdeh> They will pretty much be added straight into the configuration stanza; reformated slightly -- like attribute<tab><tab>value | ||
| [2011/11/17 00:45:23] <cverdeh> Some error/logic checking eventually perhaps, to ensure that they aren't garbage. | ||
| [2011/11/17 00:46:44] @ Quit: pieter_: Read error: Connection reset by peer | ||
| [2011/11/17 00:46:58] <fragfutter> cverdeh: so handle them in the template? | ||
| [2011/11/17 00:48:07] <cverdeh> fragfutter: Yes, that's probably the best way of doing it. I'll have a poke. Cheers. | ||
| [2011/11/17 00:49:33] @ Ramonster joined channel #puppet | ||
| [2011/11/17 00:51:06] @ hooper joined channel #puppet | ||
| [2011/11/17 00:54:22] @ Razique joined channel #puppet | ||
| [2011/11/17 00:56:36] <Andorka> how to subscribe exec to all files in selected directory? | ||
| [2011/11/17 00:56:39] @ mpdude_ joined channel #puppet | ||
| [2011/11/17 00:59:01] <fragfutter> Andorka: same way as yesterday. Puppet needs to manage the complete directory and you subscribe to the directory | ||
| [2011/11/17 01:00:00] @ Quit: mpdude: Ping timeout: 248 seconds | ||
| [2011/11/17 01:00:22] <Andorka> oh, sure! | ||
| [2011/11/17 01:00:31] <Andorka> sorry my stupid :( | ||
| [2011/11/17 01:01:52] @ AshishH joined channel #puppet | ||
| [2011/11/17 01:03:14] @ Holocaine joined channel #puppet | ||
| [2011/11/17 01:03:26] @ Spads joined channel #puppet | ||
| [2011/11/17 01:04:43] @ Quit: Holocaine: Client Quit | ||
| [2011/11/17 01:04:54] @ Quit: bmahe: Quit: Leaving | ||
| [2011/11/17 01:06:21] @ Quit: AshishH: Ping timeout: 260 seconds | ||
| [2011/11/17 01:06:52] @ nul0op joined channel #puppet | ||
| [2011/11/17 01:11:23] @ ezryx joined channel #puppet | ||
| [2011/11/17 01:15:22] @ asio joined channel #puppet | ||
| [2011/11/17 01:24:09] @ HDD joined channel #puppet | ||
| [2011/11/17 01:24:29] @ HDD is now known as Guest90556 | ||
| [2011/11/17 01:25:43] @ mogitaff joined channel #puppet | ||
| [2011/11/17 01:26:22] @ Guest90556 is now known as SSD | ||
| [2011/11/17 01:26:30] <SSD> Hi | ||
| [2011/11/17 01:26:43] <SSD> I has problem with puppet agent | ||
| [2011/11/17 01:26:46] <SSD> err: Could not retrieve catalog from remote server: Error 400 on SERVER: undefined method `fact_merge' for nil:NilClass | ||
| [2011/11/17 01:26:46] <SSD> warning: Not using cache on failed catalog | ||
| [2011/11/17 01:26:46] <SSD> err: Could not retrieve catalog; skipping run | ||
| [2011/11/17 01:27:54] <SSD> pls help me | ||
| [2011/11/17 01:31:12] <conntrack> Good old SS disks | ||
| [2011/11/17 01:33:47] <SSD> Sorry? | ||
| [2011/11/17 01:34:49] <Andorka> http://en.wikipedia.org/wiki/Schutzstaffel | ||
| [2011/11/17 01:35:13] <conntrack> solid state disks | ||
| [2011/11/17 01:35:46] <conntrack> I have two in my imac | ||
| [2011/11/17 01:36:22] <Andorka> desktop? | ||
| [2011/11/17 01:36:28] <SSD> sorry, pls back to our question | ||
| [2011/11/17 01:36:29] <Andorka> i have two in my laptop | ||
| [2011/11/17 01:36:49] <SSD> I need some help about my puppet agent | ||
| [2011/11/17 01:39:02] @ duerF joined channel #puppet | ||
| [2011/11/17 01:40:26] <conntrack> Andorka: Yes, in raid zero | ||
| [2011/11/17 01:41:26] <conntrack> Andorka: I thought about using three but I'd have to have lost a CD drive | ||
| [2011/11/17 01:41:49] <Andorka> i don't need cdrom in my laptop :) | ||
| [2011/11/17 01:41:53] <Andorka> i throw it away | ||
| [2011/11/17 01:42:02] @ artkrz joined channel #puppet | ||
| [2011/11/17 01:42:17] <conntrack> Andorka: What laptop do you have? | ||
| [2011/11/17 01:42:29] <Andorka> Dell Precision m4400 | ||
| [2011/11/17 01:42:40] @ Quit: MattyM: Ping timeout: 248 seconds | ||
| [2011/11/17 01:42:40] <Andorka> 2008 or 2009 year | ||
| [2011/11/17 01:43:45] <conntrack> Andorka: I have found dell laptop to be very reliable | ||
| [2011/11/17 01:44:18] <_rc> conntrack: Adorka: I don't like to ask, but I don't see how that's puppet related | ||
| [2011/11/17 01:44:35] <Andorka> yeah :) | ||
| [2011/11/17 01:44:48] @ Quit: flamboz: Quit: Leaving | ||
| [2011/11/17 01:44:55] <Andorka> include common::sudo from class common its ok? | ||
| [2011/11/17 01:44:56] <_rc> SSD: have you looked in the syslog on the puppetmaster? | ||
| [2011/11/17 01:45:02] <fragfutter> _rc: puppet will run faster ;) | ||
| [2011/11/17 01:45:22] <_rc> fragfutter: and as it's a laptop it's portable. har har. | ||
| [2011/11/17 01:45:38] <SSD> I don't see it from puppet master | ||
| [2011/11/17 01:45:41] <_rc> Andorka: yes | ||
| [2011/11/17 01:45:46] <Andorka> cool :) | ||
| [2011/11/17 01:46:01] <_rc> SSD: the error message is to do with the puppetmaster failing to compile a manifest | ||
| [2011/11/17 01:46:18] @ xorpaul joined channel #puppet | ||
| [2011/11/17 01:46:50] <SSD> no, the error only meet with that agent, it's ok with another agent | ||
| [2011/11/17 01:47:17] <flex___> SSD: try to restart the master | ||
| [2011/11/17 01:47:20] <_rc> that may be, but the error is occuring on the master, in response to that agents request | ||
| [2011/11/17 01:47:28] <_rc> and then getting reported back | ||
| [2011/11/17 01:47:43] <_rc> so I'd expect at least something related in the logs on the master | ||
| [2011/11/17 01:48:05] <xorpaul> Could someone help me with default value for a variable in a hash? I tried almost everything http://codedumper.com/omevu | ||
| [2011/11/17 01:48:35] <SSD> _rc: nothing related | ||
| [2011/11/17 01:48:50] <xorpaul> I found this, but it's not working for hashes http://www.krzywanski.net/archives/691 | ||
| [2011/11/17 01:49:08] <SSD> flex___: it's not good solution, pls give other | ||
| [2011/11/17 01:49:30] <flex___> SSD: i just want to know if you meet with a bug | ||
| [2011/11/17 01:49:38] <flex___> SSD: http://projects.puppetlabs.com/issues/3234 | ||
| [2011/11/17 01:50:33] <SSD> flex___: I read it, but I cannot restart Puppet Master | ||
| [2011/11/17 01:50:50] <SSD> I have 100 agent, they work well | ||
| [2011/11/17 01:53:19] @ Walid joined channel #puppet | ||
| [2011/11/17 01:53:22] <Walid> hi | ||
| [2011/11/17 01:53:44] <Walid> I get this Skipping because no files were changed or save failed error when I run augeas | ||
| [2011/11/17 01:54:31] <Walid> I use augeas 0.7.2-1 with puppet 2.7.3 | ||
| [2011/11/17 01:55:35] <_rc> SSD: sorry, did you restart the master, or are you refusing to try? | ||
| [2011/11/17 01:56:09] <SSD> _rc: I cannot restart the master | ||
| [2011/11/17 01:56:24] <_rc> SSD: why not? | ||
| [2011/11/17 01:57:23] <SSD> because it works 1000 hours normally | ||
| [2011/11/17 01:58:01] <SSD> I don't want dangerous | ||
| [2011/11/17 01:58:39] <_rc> ? | ||
| [2011/11/17 01:59:00] <_rc> if it's dangerous for you to restart a service, you've got two problems. | ||
| [2011/11/17 02:02:20] @ tuxaddicted joined channel #puppet | ||
| [2011/11/17 02:04:27] @ Quit: mmoya: Ping timeout: 276 seconds | ||
| [2011/11/17 02:04:41] @ Holocaine joined channel #puppet | ||
| [2011/11/17 02:08:31] @ Quit: neilh: Ping timeout: 258 seconds | ||
| [2011/11/17 02:08:49] @ mmoya joined channel #puppet | ||
| [2011/11/17 02:09:16] <zykes-> is there a way i can get which sudo version i have or something ? | ||
| [2011/11/17 02:09:26] <zykes-> i want to check if a sudo version supports /etc/sudoers.d | ||
| [2011/11/17 02:09:35] <Sp4rKy> sudo -V ? | ||
| [2011/11/17 02:11:47] <zykes-> hmm, might not be the correct thing | ||
| [2011/11/17 02:11:56] @ Quit: tuxaddicted: Quit: leaving | ||
| [2011/11/17 02:12:02] <Sp4rKy> hu ? | ||
| [2011/11/17 02:13:59] <zykes-> i need something that tells me sudo support #includedir sudoers.d | ||
| [2011/11/17 02:14:16] <fragfutter> zykes-: you need to find a very old sudo to not support it. | ||
| [2011/11/17 02:14:40] <_rc> finding old sudos is easier than you might want to think | ||
| [2011/11/17 02:14:58] <fragfutter> _rc: hehe | ||
| [2011/11/17 02:15:00] <zykes-> eh, i need to check if it supports it or not, to be able to either write #includedir.... or not | ||
| [2011/11/17 02:15:08] <zykes-> to the /etc/sudoers file | ||
| [2011/11/17 02:15:27] <_rc> you can write #includedir in the file even if it's an old sudo | ||
| [2011/11/17 02:15:40] <_rc> new sudo takes it as a magic comment/directive thingy | ||
| [2011/11/17 02:16:09] @ Quit: choonming: Quit: Leaving | ||
| [2011/11/17 02:16:11] @ danikov joined channel #puppet | ||
| [2011/11/17 02:16:20] <zykes-> ah ok | ||
| [2011/11/17 02:16:20] @ Quit: flex___: Remote host closed the connection | ||
| [2011/11/17 02:16:25] <_rc> old sudo treats it like a regular comment, and you just don't get sudoers.d working | ||
| [2011/11/17 02:17:27] <fragfutter> includedir was introduced with sudo 1.7.1, april 2009 | ||
| [2011/11/17 02:18:19] <_rc> the reason I discovered this is we still had some 1.6.x hosts where sudoers.d mysteriously didn't work | ||
| [2011/11/17 02:18:55] <fragfutter> debian lenny is on an old sudo version. squeeze is new, rhel5 is new. | ||
| [2011/11/17 02:23:50] @ MattyM joined channel #puppet | ||
| [2011/11/17 02:24:17] <_rc> centos5.0 was 1.6.8p12, I know most folks treat 5 as 5.{6,7}, but we did have some older nodes | ||
| [2011/11/17 02:24:30] @ Quit: AvaCam: Quit: Page closed | ||
| [2011/11/17 02:24:39] <fragfutter> correct. | ||
| [2011/11/17 02:25:04] @ Quit: trespan: Ping timeout: 240 seconds | ||
| [2011/11/17 02:25:18] @ trespan joined channel #puppet | ||
| [2011/11/17 02:25:55] <dcarley> _rc: ha, nice regression behaviour. | ||
| [2011/11/17 02:26:04] @ Frodent joined channel #puppet | ||
| [2011/11/17 02:26:54] @ Quit: FroMaster: Ping timeout: 260 seconds | ||
| [2011/11/17 02:26:56] @ Quit: fenris02: Ping timeout: 248 seconds | ||
| [2011/11/17 02:29:19] @ Quit: Gwayne: Quit: +++ OK ATH OK | ||
| [2011/11/17 02:31:04] <cverdeh> Any ideas how I could get both parts of a two item list to sit side-by-side in an ERB template? Do you just append [0] and [1] to the list name? | ||
| [2011/11/17 02:34:22] @ Quit: jodok: Quit: jodok | ||
| [2011/11/17 02:35:42] @ jodok joined channel #puppet | ||
| [2011/11/17 02:35:43] @ Quit: jodok: Changing host | ||
| [2011/11/17 02:35:43] @ jodok joined channel #puppet | ||
| [2011/11/17 02:40:25] <cverdeh> Is it possible to process a list or lists in the puppet templates? For me I'm getting just one large list, made up of the lists. | ||
| [2011/11/17 02:41:52] <_rc> sure, you just use the ruby looping constructs | ||
| [2011/11/17 02:43:04] @ Adam1992 joined channel #puppet | ||
| [2011/11/17 02:43:50] <Adam1992> siema ;d | ||
| [2011/11/17 02:43:53] <_rc> <% my_list.each do |member| %>member is <%= member %><% end %> | ||
| [2011/11/17 02:44:13] <Adam1992> what? | ||
| [2011/11/17 02:44:30] @ Adam1992 left channel #puppet () | ||
| [2011/11/17 02:44:56] <cverdeh> _rc: Yeah, I've got that down. I'm trying to address member[0] and member[1] now -- but I'm not sure how. | ||
| [2011/11/17 02:45:06] @ Chiku joined channel #puppet | ||
| [2011/11/17 02:45:07] @ Quit: Chiku: Changing host | ||
| [2011/11/17 02:45:07] @ Chiku joined channel #puppet | ||
| [2011/11/17 02:45:07] <_rc> just like that | ||
| [2011/11/17 02:45:32] <cverdeh> Using that syntax I just get one big list. | ||
| [2011/11/17 02:45:43] <_rc> <% my_list.each do |member| %><%= member[0] %> => <%= member[1] %><% end %> | ||
| [2011/11/17 02:46:05] <Walid> hello is anybody known with this issue (Skipping because no files were changed or save failed) | ||
| [2011/11/17 02:46:08] <_rc> maybe if you pastie what you have we can be more specific | ||
| [2011/11/17 02:46:28] <Walid> augeas .7.2-1 | ||
| [2011/11/17 02:46:35] <Walid> with puppet 2.7.3 | ||
| [2011/11/17 02:46:52] <cverdeh> $my_list = [[1,2], [2,3], [3,4]] | ||
| [2011/11/17 02:47:00] <cverdeh> notice(inline_template("<% my_list.each do |member| %><%= member[0] %> => <%= member[1] %><% end %>")) | ||
| [2011/11/17 02:47:42] <cverdeh> I mean.. | ||
| [2011/11/17 02:47:44] <cverdeh> notice(inline_template("<% my_list.each do |member| %><%= member[0] %> => <%= member[1] %><% end %>")) | ||
| [2011/11/17 02:47:55] <cverdeh> Output: | ||
| [2011/11/17 02:47:56] <cverdeh> puppet demo.pp | ||
| [2011/11/17 02:47:57] <cverdeh> notice: Scope(Class[main]): 49 and 50 and 50 and 51 and 51 and 52 and | ||
| [2011/11/17 02:48:09] * cverdeh shrugs. | ||
| [2011/11/17 02:48:22] @ booyaa joined channel #puppet | ||
| [2011/11/17 02:48:29] <booyaa> morning | ||
| [2011/11/17 02:48:31] <cverdeh> It's doing something weirder now :/ | ||
| [2011/11/17 02:50:13] @ Quit: mat_: Ping timeout: 240 seconds | ||
| [2011/11/17 02:53:04] <cverdeh> _rc: Any thoughts? | ||
| [2011/11/17 02:55:42] @ proton joined channel #puppet | ||
| [2011/11/17 02:58:10] @ Quit: mmoya: Ping timeout: 260 seconds | ||
| [2011/11/17 03:02:28] @ mat_ joined channel #puppet | ||
| [2011/11/17 03:05:03] @ MartVisser joined channel #puppet | ||
| [2011/11/17 03:05:28] @ satman_ joined channel #puppet | ||
| [2011/11/17 03:07:28] @ Quit: hooper: Ping timeout: 248 seconds | ||
| [2011/11/17 03:09:32] @ Quit: satman: Ping timeout: 252 seconds | ||
| [2011/11/17 03:11:42] <_rc> cverdeh: just that the sample you pasted doesn't have 'and' in the template, so what's your datastructure | ||
| [2011/11/17 03:11:49] @ Quit: mat_: Ping timeout: 240 seconds | ||
| [2011/11/17 03:12:03] @ Quit: Enf: Quit: Leaving | ||
| [2011/11/17 03:12:43] <cverdeh> _rc: Sorry, I pasted the wrong thing at first. This was what I meant to paste: notice(inline_template("<% my_list.each do |member| %><%= member[0] %> and <%= member[1] %><% end -%>")) | ||
| [2011/11/17 03:12:53] @ mat_ joined channel #puppet | ||
| [2011/11/17 03:13:35] @ ken_barber joined channel #puppet | ||
| [2011/11/17 03:16:16] <cverdeh> _rc: It thinks those are string, check em: | ||
| [2011/11/17 03:16:26] <cverdeh> notice(inline_template("<% my_list.each do |member| %><%= member.class %> and <%= member.class %><% end -%>")) | ||
| [2011/11/17 03:16:30] <_rc> cverdeh: http://pastie.org/2877335 | ||
| [2011/11/17 03:16:34] <cverdeh> puppet demo.pp | ||
| [2011/11/17 03:16:36] <cverdeh> notice: Scope(Class[main]): String and StringString and StringString and StringString and StringString and StringString and String | ||
| [2011/11/17 03:16:42] <_rc> like I said, what's your datastructure? | ||
| [2011/11/17 03:17:43] <cverdeh> As far as I know, I'm just using a list. It's not inside any classes or definitions, either. | ||
| [2011/11/17 03:17:54] <cverdeh> The list is define by the line: $my_list = [ [ 1, 2 ], [ 2, 3 ], [ 3, 4 ] ] | ||
| [2011/11/17 03:18:44] @ Quit: mat_: Excess Flood | ||
| [2011/11/17 03:18:49] @ mat_ joined channel #puppet | ||
| [2011/11/17 03:19:00] <_rc> yeah, as you see from my paste, that doesn't work too well | ||
| [2011/11/17 03:20:03] <cverdeh> _rc: Yeah. Fair enough. Would there be a way of taking two variables at a time from a large list? | ||
| [2011/11/17 03:20:05] <_rc> because that constructs a single flat list | ||
| [2011/11/17 03:20:25] <cverdeh> I.e. for i,a in list | ||
| [2011/11/17 03:20:51] @ sebian joined channel #puppet | ||
| [2011/11/17 03:21:02] <_rc> revised. http://pastie.org/2877335 | ||
| [2011/11/17 03:21:09] @ Quit: SSD: Quit: Leaving | ||
| [2011/11/17 03:21:31] <_rc> so $foo = [ [], [] ] isn't creating a list of lists in the dsl | ||
| [2011/11/17 03:21:34] @ Quit: pmorillon: Quit: pmorillon | ||
| [2011/11/17 03:21:40] <cverdeh> _rc: That's a shame. | ||
| [2011/11/17 03:21:44] <_rc> if you get a real list of lists from a parser function you should be ok | ||
| [2011/11/17 03:22:14] <_rc> as you see, you can fudge it by using intermediate values, but that does suck somewhat | ||
| [2011/11/17 03:22:22] <cverdeh> _rc: Yeah, I don't think that would be an option for this. | ||
| [2011/11/17 03:23:38] <cverdeh> _rc: I don't suppose it would be possible to grab two items on each loop, either? | ||
| [2011/11/17 03:25:33] <_rc> I think you can | ||
| [2011/11/17 03:26:14] <cverdeh> _rc: That would work. The sub-lists will only ever include two strings. | ||
| [2011/11/17 03:26:47] <cverdeh> I can't figure out what the syntax is, though. I'm new to Ruby :/ | ||
| [2011/11/17 03:26:50] @ kelseyhi1htower joined channel #puppet | ||
| [2011/11/17 03:29:26] @ Quit: kelseyhightower: Ping timeout: 260 seconds | ||
| [2011/11/17 03:29:53] <cverdeh> AHHA! | ||
| [2011/11/17 03:30:32] <cverdeh> notice(inline_template("<% my_list.each do |i, a| %><%= i %> and <%= a %><% end -%>")) | ||
| [2011/11/17 03:30:38] <cverdeh> notice: Scope(Class[main]): 1 and 2 and 2 and 3 and 3 and 4 and | ||
| [2011/11/17 03:31:25] <_rc> pick different values for your test data | ||
| [2011/11/17 03:31:36] <_rc> as you're seeing indexes I think | ||
| [2011/11/17 03:33:20] <cverdeh> notice(inline_template("<% my_list.each do |i,a| %><%= i %> and <%= a %>\n<% end %>")) | ||
| [2011/11/17 03:33:27] <cverdeh> $my_list = [ [ "dog", "frog" ], [ "man", "can" ], [ "food", "sued" ] ] | ||
| [2011/11/17 03:33:37] <cverdeh> puppet demo.pp | ||
| [2011/11/17 03:33:37] <cverdeh> notice: Scope(Class[main]): dog and | ||
| [2011/11/17 03:33:37] <cverdeh> frog and | ||
| [2011/11/17 03:33:37] <cverdeh> man and | ||
| [2011/11/17 03:33:40] <cverdeh> can and | ||
| [2011/11/17 03:33:42] <cverdeh> food and | ||
| [2011/11/17 03:33:44] <_rc> use a paste service | ||
| [2011/11/17 03:33:45] <cverdeh> sued and | ||
| [2011/11/17 03:33:47] <cverdeh> Nope, it's still not working. | ||
| [2011/11/17 03:33:54] <cverdeh> _rc: Sorry. | ||
| [2011/11/17 03:33:58] <_rc> but you see, that's not the syntax for iterating by twos | ||
| [2011/11/17 03:35:32] <_rc> simplest thing, increase the documentation value of your code by making it an array of hashes. | ||
| [2011/11/17 03:36:42] <cverdeh> _rc: Does puppet make that stright forward? | ||
| [2011/11/17 03:37:40] <cverdeh> My intention is to have a function that take the parameter "additionalattrs", this being a list of these attribute/value pairs. | ||
| [2011/11/17 03:38:11] <_rc> http://pastie.org/2877423 | ||
| [2011/11/17 03:38:34] <_rc> a function? | ||
| [2011/11/17 03:40:03] @ Jysara joined channel #puppet | ||
| [2011/11/17 03:40:52] <cverdeh> a defined thing, takes arguments :/ | ||
| [2011/11/17 03:41:04] <Jysara> hi, can anyone help with that error on agent: err: Could not request certificate: undefined method `name' for #<Hash:0x7f9764c537f0> I'm using nginx + unicorn on debian squeeze | ||
| [2011/11/17 03:41:09] <cverdeh> What are they called in puppet? | ||
| [2011/11/17 03:41:34] <_rc> I call them defines or defined types, functions are something different | ||
| [2011/11/17 03:42:47] @ mmoya joined channel #puppet | ||
| [2011/11/17 03:43:50] <cverdeh> _rc: Okay. | ||
| [2011/11/17 03:44:00] <_rc> I know it's more veryby to pass hashes around, but it helps later when you realise you want to sometimes pass a third value | ||
| [2011/11/17 03:45:02] <cverdeh> _rc: I don't mind doing that if it's the only way. It is a little annoying, though -- as there really shouldn't be a situation when it stops being key,val | ||
| [2011/11/17 03:45:19] <cverdeh> _rc: Although I can't can that code snippet you wrote to run. | ||
| [2011/11/17 03:45:48] @ Quit: nul0op: Quit: Leaving | ||
| [2011/11/17 03:46:10] <_rc> I tested it before pasting; what error do you get? | ||
| [2011/11/17 03:47:42] <cverdeh> _rc: http://pastie.org/2877477 | ||
| [2011/11/17 03:48:20] <_rc> ah, 0.25? | ||
| [2011/11/17 03:48:59] <cverdeh> Damn straight :| | ||
| [2011/11/17 03:49:28] <_rc> hashes in the dsl are in 2.6 | ||
| [2011/11/17 03:49:38] <cverdeh> Otherwised I'd be playing with parameterised classes, too. | ||
| [2011/11/17 03:49:41] <cverdeh> Dang. | ||
| [2011/11/17 03:50:14] <cverdeh> Any chance of looping in 2s, then? | ||
| [2011/11/17 03:50:36] <_rc> sure, you'll just need to do some ruby | ||
| [2011/11/17 03:52:02] <cverdeh> That didn't go every well last time I tried. | ||
| [2011/11/17 03:55:12] @ Jysara left channel #puppet () | ||
| [2011/11/17 03:59:11] @ pmorillon joined channel #puppet | ||
| [2011/11/17 04:01:48] <_rc> cverdeh: notice(inline_template("<% (0..flat_list.size()-1).step(2) do |i| %><%= flat_list[i] %> => <%= flat_list[i+1] %>\n<% end %>")) | ||
| [2011/11/17 04:02:02] <_rc> there's probably something better | ||
| [2011/11/17 04:02:07] @ natewalck joined channel #puppet | ||
| [2011/11/17 04:04:28] @ RhysMorgan joined channel #puppet | ||
| [2011/11/17 04:05:44] <cverdeh> It works. | ||
| [2011/11/17 04:06:48] <cverdeh> _rc: So long as it works, that's better than it being sane. I think.. | ||
| [2011/11/17 04:07:22] @ Quit: fpletz: Remote host closed the connection | ||
| [2011/11/17 04:07:23] <cverdeh> Bizarre code, though. | ||
| [2011/11/17 04:07:26] @ fpletz joined channel #puppet | ||
| [2011/11/17 04:08:34] @ Quit: bpgoldsb: Read error: Operation timed out | ||
| [2011/11/17 04:09:25] @ Quit: Ratler: Ping timeout: 240 seconds | ||
| [2011/11/17 04:09:29] @ Quit: Hamzah: Quit: Bye Bye! | ||
| [2011/11/17 04:10:15] @ Hamzah joined channel #puppet | ||
| [2011/11/17 04:11:40] @ jim` joined channel #puppet | ||
| [2011/11/17 04:12:21] @ bpgoldsb joined channel #puppet | ||
| [2011/11/17 04:13:57] @ kelseyhightower joined channel #puppet | ||
| [2011/11/17 04:15:24] @ Quit: kelseyhi1htower: Ping timeout: 258 seconds | ||
| [2011/11/17 04:16:21] <derjohn_mob> Hey, how can I call getconfig mnually? I want to trace why one particular client does load modules, which I did not assign to it .... | ||
| [2011/11/17 04:16:34] @ Shanlar_ joined channel #puppet | ||
| [2011/11/17 04:20:00] @ Quit: Shanlar-: Ping timeout: 248 seconds | ||
| [2011/11/17 04:22:14] @ skm joined channel #puppet | ||
| [2011/11/17 04:23:03] @ choonming joined channel #puppet | ||
| [2011/11/17 04:23:58] @ Quit: sgp: Quit: Leaving. | ||
| [2011/11/17 04:24:27] @ matchaw_ joined channel #puppet | ||
| [2011/11/17 04:24:37] @ Quit: mmoya: Ping timeout: 240 seconds | ||
| [2011/11/17 04:25:55] @ mmoya joined channel #puppet | ||
| [2011/11/17 04:27:54] @ RhysMorgan left channel #puppet () | ||
| [2011/11/17 04:28:48] @ Quit: fpletz: Remote host closed the connection | ||
| [2011/11/17 04:28:53] @ fpletz joined channel #puppet | ||
| [2011/11/17 04:33:09] <xorpaul> Could someone help me with default value for a variable in a hash? I tried almost everything http://codedumper.com/omevu | ||
| [2011/11/17 04:33:12] <xorpaul> I found this, but it's not working for hashes http://www.krzywanski.net/archives/691 | ||
| [2011/11/17 04:35:11] @ Quit: jodok: Quit: jodok | ||
| [2011/11/17 04:36:40] @ Quit: bobra: Ping timeout: 240 seconds | ||
| [2011/11/17 04:40:21] @ jodok joined channel #puppet | ||
| [2011/11/17 04:40:33] @ Quit: jodok: Changing host | ||
| [2011/11/17 04:40:33] @ jodok joined channel #puppet | ||
| [2011/11/17 04:45:04] @ marrusl_ joined channel #puppet | ||
| [2011/11/17 04:46:22] @ Quit: marrusl_: Client Quit | ||
| [2011/11/17 04:49:25] <xorpaul> I found this, but it's not working for hashes http://www.krzywanski.net/archives/691 | ||
| [2011/11/17 04:49:34] <xorpaul> wrong window sorry | ||
| [2011/11/17 04:51:02] <fragfutter> xorpaul: <%= myhash.fetch("key", "default") %> | ||
| [2011/11/17 04:51:23] <fragfutter> xorpaul: http://www.ruby-doc.org/core-1.9.3/Hash.html#method-i-fetch | ||
| [2011/11/17 04:51:32] @ Quit: ezryx: Read error: Connection reset by peer | ||
| [2011/11/17 04:52:23] <TooExcited> Hello, gentlemen! I really want to manage svn repositories with puppet. I found ghoneycutt's module for svn, but it has like 20 dependencies on other modules, which seems... excessive. Have you guys managed svn? | ||
| [2011/11/17 04:52:43] @ ezryx joined channel #puppet | ||
| [2011/11/17 04:52:49] @ dcsobralWork joined channel #puppet | ||
| [2011/11/17 04:53:03] @ NuclearLucifer joined channel #puppet | ||
| [2011/11/17 04:54:27] <walkeran> TooExcited: https://github.com/puppetlabs/puppet-vcsrepo | ||
| [2011/11/17 04:54:40] @ Quit: mmoya: Ping timeout: 248 seconds | ||
| [2011/11/17 04:55:28] <TooExcited> thank you :D | ||
| [2011/11/17 04:55:39] @ Quit: cliff-hm: Ping timeout: 258 seconds | ||
| [2011/11/17 04:55:43] <walkeran> Yup, no problem. I don't use it, but I know that a lot of people do | ||
| [2011/11/17 04:56:56] <TooExcited> wohoo, it has documentation too | ||
| [2011/11/17 04:57:14] @ BManojlovic joined channel #puppet | ||
| [2011/11/17 04:57:36] @ Quit: ezryx: Read error: Connection reset by peer | ||
| [2011/11/17 04:58:11] @ ezryx joined channel #puppet | ||
| [2011/11/17 04:58:46] @ Quit: ezryx: Read error: Connection reset by peer | ||
| [2011/11/17 04:59:31] @ ezryx joined channel #puppet | ||
| [2011/11/17 05:01:59] @ Quit: ironmunk: Read error: No route to host | ||
| [2011/11/17 05:02:13] @ Quit: Vasik|work: Remote host closed the connection | ||
| [2011/11/17 05:02:14] @ Quit: ezryx: Read error: Connection reset by peer | ||
| [2011/11/17 05:03:00] @ ezryx joined channel #puppet | ||
| [2011/11/17 05:04:11] @ Quit: ezryx: Read error: Connection reset by peer | ||
| [2011/11/17 05:05:22] @ ezryx joined channel #puppet | ||
| [2011/11/17 05:08:40] @ Quit: ezryx: Read error: Connection reset by peer | ||
| [2011/11/17 05:09:11] @ ocherno joined channel #puppet | ||
| [2011/11/17 05:09:40] @ ezryx joined channel #puppet | ||
| [2011/11/17 05:09:56] @ Razique_ joined channel #puppet | ||
| [2011/11/17 05:10:25] @ Quit: ezryx: Read error: Connection reset by peer | ||
| [2011/11/17 05:11:16] @ ezryx joined channel #puppet | ||
| [2011/11/17 05:12:40] @ Quit: Razique: Ping timeout: 240 seconds | ||
| [2011/11/17 05:12:42] @ Razique_ is now known as Razique | ||
| [2011/11/17 05:13:04] @ Quit: ezryx: Client Quit | ||
| [2011/11/17 05:13:13] @ ezryx joined channel #puppet | ||
| [2011/11/17 05:13:30] @ benjiedmund joined channel #puppet | ||
| [2011/11/17 05:14:22] @ Quit: ezryx: Read error: Connection reset by peer | ||
| [2011/11/17 05:15:26] @ Quit: Holocaine: | ||
| [2011/11/17 05:15:33] @ elmer__ joined channel #puppet | ||
| [2011/11/17 05:15:53] @ ezryx joined channel #puppet | ||
| [2011/11/17 05:16:28] @ Quit: ezryx: Read error: Connection reset by peer | ||
| [2011/11/17 05:17:19] @ ezryx joined channel #puppet | ||
| [2011/11/17 05:17:43] @ Quit: ezryx: Read error: Connection reset by peer | ||
| [2011/11/17 05:18:00] @ neilh joined channel #puppet | ||
| [2011/11/17 05:18:08] @ Quit: conntrack: Ping timeout: 248 seconds | ||
| [2011/11/17 05:18:39] @ ezryx joined channel #puppet | ||
| [2011/11/17 05:19:05] <neilh> Hi. Is there a simple way of declaring that all instances of a defined type require a certain class? (My situation is that we need to configure yum before any packages are installed.) | ||
| [2011/11/17 05:19:10] <neilh> I have a class for yum, but I don't fancy having to declare that every package requires it and wondered if there was a way of saying Class['yum'] -> Package[*] or similar | ||
| [2011/11/17 05:19:19] @ conntrack joined channel #puppet | ||
| [2011/11/17 05:20:07] <_rc> you could use a resource default - Package { require => Class["yum"] } | ||
| [2011/11/17 05:20:19] @ Quit: themadcanudist: Quit: Leaving. | ||
| [2011/11/17 05:20:36] <_rc> but whenever you have a package that states a require that'll get overwritten | ||
| [2011/11/17 05:20:52] @ Quit: erodriguez: Quit: erodriguez | ||
| [2011/11/17 05:21:10] <walkeran> Why not just use resource chaining? | ||
| [2011/11/17 05:21:15] <supplicant> neilh: we do that using stages | ||
| [2011/11/17 05:21:29] <_rc> walkeran: because he wants a wildcard | ||
| [2011/11/17 05:21:43] <gwmngilfen> does anyone have a good example of a module for managing rows in database tables? I'm looking at modifying the mysql_grant structure from https://github.com/camptocamp/puppet-mysql but other examples are welcome :) | ||
| [2011/11/17 05:21:48] <walkeran> Hrm. I thought you could use collections with resource chaining. Nevermind | ||
| [2011/11/17 05:21:53] <_rc> that or after every package you need to chain the class, which is as bad as inlining it | ||
| [2011/11/17 05:23:00] @ Quit: yeled: Read error: Operation timed out | ||
| [2011/11/17 05:23:17] <walkeran> Package <| provider == yum |> -> Class['yum'] | ||
| [2011/11/17 05:23:25] <walkeran> Of course, I got it backwards, but yeah | ||
| [2011/11/17 05:24:02] <kjetilho> walkeran: that won't implicitly realize all those packages, will it? | ||
| [2011/11/17 05:24:36] <_rc> it will | ||
| [2011/11/17 05:25:02] @ Quit: benjiedmund: Remote host closed the connection | ||
| [2011/11/17 05:25:13] <walkeran> Really? I can't imagine the spaceship operator, in that context, has anything to do with realizing virtual resources | ||
| [2011/11/17 05:25:18] <_rc> as supplicant said, the simpler pattern to use for this is just run stages | ||
| [2011/11/17 05:25:27] @ ahumbe joined channel #puppet | ||
| [2011/11/17 05:25:36] @ Quit: salajander: Ping timeout: 248 seconds | ||
| [2011/11/17 05:26:48] <_rc> it's not context sensitive, so it realises all your virtual packages. quite why people still use virtual resources is a different question | ||
| [2011/11/17 05:28:15] @ salajander joined channel #puppet | ||
| [2011/11/17 05:29:20] @ Quit: Beast: Quit: Leaving. | ||
| [2011/11/17 05:29:42] @ astrostl joined channel #puppet | ||
| [2011/11/17 05:29:45] <neilh> _rc: So stages are the way ahead with this... ok. thx guys. | ||
| [2011/11/17 05:29:57] <kjetilho> _rc: it's a pain to define a class for each package :-p | ||
| [2011/11/17 05:30:21] <kjetilho> like wget | ||
| [2011/11/17 05:30:48] <kjetilho> but yeah, I guess we could do that. include package::wget instead of realize Package['wget'] | ||
| [2011/11/17 05:30:58] <kjetilho> modulo reserved word | ||
| [2011/11/17 05:33:11] <_rc> true, it depends on how granular you want to get; I think every install I've seen will eventually grow a 'basepackages' module for general quality of life things like wget | ||
| [2011/11/17 05:33:14] <walkeran> So, I just did a test, and the spaceship operator when used for resource chaining DOES NOT realize virtual resources | ||
| [2011/11/17 05:36:36] @ Quit: ezryx: Read error: Connection reset by peer | ||
| [2011/11/17 05:37:10] @ ezryx joined channel #puppet | ||
| [2011/11/17 05:37:40] <xorpaul> fragfutter: Thank you, fetch worked! | ||
| [2011/11/17 05:38:14] <kjetilho> walkeran: thanks, good to know | ||
| [2011/11/17 05:38:30] <walkeran> kjetilho: Yep! No problem :) | ||
| [2011/11/17 05:39:30] <xorpaul> How can I check in my template if a hash doesn't exist, in other words I want to be able to pass an optional hash to my template | ||
| [2011/11/17 05:40:14] <_rc> it'll be nil otherwise, yes? | ||
| [2011/11/17 05:40:17] <kjetilho> how do you pass it? | ||
| [2011/11/17 05:40:33] <kjetilho> in a define, set the default value to "" and check for that in the template | ||
| [2011/11/17 05:40:44] <kjetilho> or false | ||
| [2011/11/17 05:40:46] <xorpaul> I'm really bewildered by the $my_hash = hash I need to add to my define parameter. Otherwise I get Must pass my_hash to Wsp_tomcatconf[tc6_test] | ||
| [2011/11/17 05:40:50] <kjetilho> whichever you prefer | ||
| [2011/11/17 05:41:14] <xorpaul> _rc: Hmm, I tried NONE. I try nil | ||
| [2011/11/17 05:42:11] @ illsci joined channel #puppet | ||
| [2011/11/17 05:42:29] @ Quit: mogitaff: Quit: Leaving | ||
| [2011/11/17 05:42:33] @ Quit: mat_: Read error: Connection reset by peer | ||
| [2011/11/17 05:42:39] <illsci> I have set a mode on a file and then I changed the mode on the master and reran the puppet client and it's not changing the file's permissions... | ||
| [2011/11/17 05:42:52] <illsci> I only have owner group and mode set.... | ||
| [2011/11/17 05:43:04] <illsci> is ther esomething else that needs to be set to enforce a certain permission that's been changed? | ||
| [2011/11/17 05:43:38] <_rc> how are you running your master? | ||
| [2011/11/17 05:43:48] <illsci> oh nevermind... | ||
| [2011/11/17 05:43:50] <ken_barber> gwmngilfen: rows in database tables? what do you mean? | ||
| [2011/11/17 05:43:58] <illsci> I had a misspelling in the file name and I didn't have ensure file | ||
| [2011/11/17 05:44:03] <ken_barber> gwmngilfen: you have data and you want to manage it like a resource? | ||
| [2011/11/17 05:44:07] <illsci> so... I guess it wouldn't have created a misspelled file... | ||
| [2011/11/17 05:44:19] @ Quit: adimania: Ping timeout: 244 seconds | ||
| [2011/11/17 05:44:25] <gwmngilfen> essentially yes. i reckon you could write a database type and have a provider per table, since each table will be different | ||
| [2011/11/17 05:44:37] @ Quit: salajander: Ping timeout: 240 seconds | ||
| [2011/11/17 05:45:01] <gwmngilfen> so I can ensure the presence/absent/state of a particular row | ||
| [2011/11/17 05:45:10] <ken_barber> gwmngilfen: provider per table … hmm … can I ask what the problem is your trying to solve? | ||
| [2011/11/17 05:45:33] @ Quit: elmer__: Read error: Connection reset by peer | ||
| [2011/11/17 05:45:54] <gwmngilfen> among other things, two examples. we have a webapp which stores a password hash in a column (db.user.passwd) and we need to enforce that value for our admin account | ||
| [2011/11/17 05:46:23] <gwmngilfen> second, another table controls the features visible in an instance of the app, so removing rows is necesary to disable features to a site | ||
| [2011/11/17 05:46:34] @ mogitaff joined channel #puppet | ||
| [2011/11/17 05:46:42] <gwmngilfen> or add them as we produce new features. | ||
| [2011/11/17 05:46:52] <gwmngilfen> we can do this with execs, but it's starting to feel clunky | ||
| [2011/11/17 05:46:57] <ken_barber> gwmngilfen: a variation on mysql_grant like you say is okay for a bespoke solution - at least something specific to your problem that is. | ||
| [2011/11/17 05:47:25] @ Quit: danikov: Ping timeout: 244 seconds | ||
| [2011/11/17 05:47:33] <ken_barber> gwmngilfen: but a generic solution gets interesting. | ||
| [2011/11/17 05:47:46] <gwmngilfen> i can't think of a way to generically handle a given table - the columns would all be different | ||
| [2011/11/17 05:48:03] <gwmngilfen> hence the provider per bespoke table approach | ||
| [2011/11/17 05:48:16] <gwmngilfen> it's a hack, but less of one than a set of execs :) | ||
| [2011/11/17 05:48:24] @ ironmunk joined channel #puppet | ||
| [2011/11/17 05:48:30] <ken_barber> gwmngilfen: the type design would be something like - namevar is 'database.table.id' … and there might be a property/parameter that represents the columns. it could take a hash of 'columnname':'value'. | ||
| [2011/11/17 05:48:46] <matti> ken_barber: :))) | ||
| [2011/11/17 05:48:51] <gwmngilfen> hmm, interesting | ||
| [2011/11/17 05:48:54] <ken_barber> matti: heya | ||
| [2011/11/17 05:48:59] <matti> ken_barber: You are alive! ;] | ||
| [2011/11/17 05:49:07] <ken_barber> matti: barely :-) | ||
| [2011/11/17 05:49:17] <matti> :> | ||
| [2011/11/17 05:49:20] <ken_barber> gwmngilfen: or an ordered list … but a hash might be nicer :-) | ||
| [2011/11/17 05:49:29] <gwmngilfen> i feel a github module coming on | ||
| [2011/11/17 05:49:31] <ken_barber> gwmngilfen: ensure => abset would remove the column based on the id in the namevar | ||
| [2011/11/17 05:50:15] @ ZummiG777 joined channel #puppet | ||
| [2011/11/17 05:50:24] <gwmngilfen> do you mean row there? I'm not sure I want to run "ALTER TABLE" just yet :) | ||
| [2011/11/17 05:50:24] <ken_barber> the namevar is a bit more complex though ... | ||
| [2011/11/17 05:50:32] <ken_barber> gwmngilfen: sorry row | ||
| [2011/11/17 05:50:57] <ken_barber> gwmngilfen: but you don't have to handle alterations straight up. just deal with creations/purges. | ||
| [2011/11/17 05:51:01] <ken_barber> gwmngilfen: step 1. | ||
| [2011/11/17 05:51:28] <ZummiG777> Question: We get mails with the md5 sums of filebucketed files which we can then use to restore, but I've seen text that implies that you can search through the filebucket for various file revisions. If this is true can someone give an example of this utility? | ||
| [2011/11/17 05:52:01] <ken_barber> gwmngilfen: the namevar is hard though … because what is the id column … primary key? some composite key? *shrug* ... | ||
| [2011/11/17 05:52:12] <gwmngilfen> hmm | ||
| [2011/11/17 05:52:17] <gwmngilfen> good point | ||
| [2011/11/17 05:52:24] <ken_barber> gwmngilfen: either way you would have to make a decision about that for a generic solution. primary key might fit most situations. | ||
| [2011/11/17 05:52:36] <ken_barber> gwmngilfen: but I'm sure there are edge cases :-). | ||
| [2011/11/17 05:52:42] <gwmngilfen> i think you're right. it would be pretty easy to override in bespoke circumstances | ||
| [2011/11/17 05:52:59] <gwmngilfen> sounds like I've got a project to play with when I have some time | ||
| [2011/11/17 05:53:30] * gwmngilfen cuts'n'pastes this log for reference | ||
| [2011/11/17 05:53:34] <ken_barber> gwmngilfen: a grammar in the namever for the 'id' part might be a solution. "mydb:mytable:foo(index=name)" … it gets nasty :-). | ||
| [2011/11/17 05:53:54] <gwmngilfen> that certainly doesn't look pretty :) | ||
| [2011/11/17 05:53:56] @ ldlework joined channel #puppet | ||
| [2011/11/17 05:54:12] <ken_barber> gwmngilfen: I know - I'm just thinking past the edges a little :-). | ||
| [2011/11/17 05:54:18] <gwmngilfen> :) | ||
| [2011/11/17 05:54:44] <gwmngilfen> as you say, start at the beginning. I'll see if I can create/remove rows on a primary key first | ||
| [2011/11/17 05:55:10] <gwmngilfen> many thanks for the discussion, given me some ideas to work with | ||
| [2011/11/17 05:55:14] <ken_barber> gwmngilfen: ping me if you need provider/type help. I'm no genius but I have some insight. | ||
| [2011/11/17 05:55:40] <gwmngilfen> i've only really written basic changes to other providers, so I may need to do that. thanks :) | ||
| [2011/11/17 05:56:08] <gwmngilfen> will likely be at least next week before I find time to look at it, since we have the exec workaround for our use case just now | ||
| [2011/11/17 05:56:14] @ rsnhyperion joined channel #puppet | ||
| [2011/11/17 05:56:33] <cverdeh> _rc: That code works, bizarre though. | ||
| [2011/11/17 05:56:43] <rocket> so what is the best practice for managing an application with huge numbers of configuration variables possible.. I am starting to think puppet isnt the correct tool for this job | ||
| [2011/11/17 05:57:02] <cverdeh> _rc: Thanks for the help. | ||
| [2011/11/17 05:57:55] <ken_barber> gwmngilfen: another idea … think about the exec case - but for sql queries instead. sqlexec { "insert into bleah ('foo', 'bar')": unless => "select * from bleah where id = 'foo'" } ... | ||
| [2011/11/17 05:58:11] @ orkaa joined channel #puppet | ||
| [2011/11/17 05:59:29] @ ecolitan joined channel #puppet | ||
| [2011/11/17 05:59:50] @ cliff-hm joined channel #puppet | ||
| [2011/11/17 05:59:57] <gwmngilfen> thats pretty much exactly what we're doing now, only its exec { "psql -Atc 'insert...'" } | ||
| [2011/11/17 06:00:15] <gwmngilfen> still and sqlexec resource might be useful | ||
| [2011/11/17 06:00:17] <gwmngilfen> *an | ||
| [2011/11/17 06:00:35] <ken_barber> gwmngilfen: the other method is better from a modeling perspective. | ||
| [2011/11/17 06:01:07] <gwmngilfen> indeed | ||
| [2011/11/17 06:01:17] @ johnston joined channel #puppet | ||
| [2011/11/17 06:02:27] @ emergion joined channel #puppet | ||
| [2011/11/17 06:02:48] @ Quit: andreaturli: Remote host closed the connection | ||
| [2011/11/17 06:03:16] @ elmer__ joined channel #puppet | ||
| [2011/11/17 06:04:06] @ Quit: ocherno: Quit: Leaving | ||
| [2011/11/17 06:04:18] @ Quit: ldlework: Ping timeout: 276 seconds | ||
| [2011/11/17 06:05:06] @ Quit: emergion: Client Quit | ||
| [2011/11/17 06:05:37] @ szaydel joined channel #puppet | ||
| [2011/11/17 06:06:17] @ Ratler joined channel #puppet | ||
| [2011/11/17 06:06:51] @ Quit: ckauhaus: Quit: Leaving. | ||
| [2011/11/17 06:08:36] @ flex___ joined channel #puppet | ||
| [2011/11/17 06:08:38] @ themadcanudist joined channel #puppet | ||
| [2011/11/17 06:10:51] @ Quit: elmer__: Ping timeout: 252 seconds | ||
| [2011/11/17 06:11:59] @ ldlework joined channel #puppet | ||
| [2011/11/17 06:16:19] @ jab_doa joined channel #puppet | ||
| [2011/11/17 06:16:59] @ samkottler joined channel #puppet | ||
| [2011/11/17 06:19:09] @ danikov joined channel #puppet | ||
| [2011/11/17 06:19:16] @ leifmadsen is now known as bacon4leif | ||
| [2011/11/17 06:19:23] @ ocherno joined channel #puppet | ||
| [2011/11/17 06:21:40] @ Quit: samkottler: Client Quit | ||
| [2011/11/17 06:25:25] @ Quit: pmorillon: Quit: pmorillon | ||
| [2011/11/17 06:26:02] <erthad> hi all | ||
| [2011/11/17 06:26:13] <erthad> does puppet support cycles? | ||
| [2011/11/17 06:26:44] <erthad> I'd like to create a bunch of resources from an array -- one resource per array cell. is it possible to iterate over array for that? | ||
| [2011/11/17 06:28:25] @ Quit: emag: Ping timeout: 258 seconds | ||
| [2011/11/17 06:28:45] <erthad> language_guide.html answered my question =) it can be done but somewhat limited | ||
| [2011/11/17 06:29:48] @ blentz joined channel #puppet | ||
| [2011/11/17 06:30:22] @ Quit: skm: Quit: Leaving... | ||
| [2011/11/17 06:30:56] @ Quit: blentz: Remote host closed the connection | ||
| [2011/11/17 06:31:21] @ Quit: raadad: Quit: Lost terminal | ||
| [2011/11/17 06:31:32] @ mcarpent joined channel #puppet | ||
| [2011/11/17 06:32:35] @ emag joined channel #puppet | ||
| [2011/11/17 06:32:38] @ emag is now known as Guest68655 | ||
| [2011/11/17 06:32:54] @ yeled joined channel #puppet | ||
| [2011/11/17 06:33:28] @ Quit: ocherno: Quit: Leaving | ||
| [2011/11/17 06:34:45] @ marczak_ joined channel #puppet | ||
| [2011/11/17 06:35:10] <erthad> cool, $name can be a hash | ||
| [2011/11/17 06:36:17] @ Quit: marczak: Ping timeout: 245 seconds | ||
| [2011/11/17 06:36:46] @ ckauhaus joined channel #puppet | ||
| [2011/11/17 06:36:48] @ Quit: dfamorato: Read error: Connection reset by peer | ||
| [2011/11/17 06:36:53] @ dfamorato_ joined channel #puppet | ||
| [2011/11/17 06:37:55] @ sduchesneau joined channel #puppet | ||
| [2011/11/17 06:38:33] @ pmorillon joined channel #puppet | ||
| [2011/11/17 06:39:40] @ fenrus02 joined channel #puppet | ||
| [2011/11/17 06:40:56] @ Quit: infinii: Read error: Connection reset by peer | ||
| [2011/11/17 06:43:02] @ blentz joined channel #puppet | ||
| [2011/11/17 06:43:36] @ Quit: kelseyhightower: Quit: leaving | ||
| [2011/11/17 06:43:51] @ kelseyhightower joined channel #puppet | ||
| [2011/11/17 06:44:22] @ ocherno joined channel #puppet | ||
| [2011/11/17 06:44:31] @ benjiedmund joined channel #puppet | ||
| [2011/11/17 06:45:52] @ Quit: illsci: Ping timeout: 240 seconds | ||
| [2011/11/17 06:46:15] @ mpdude joined channel #puppet | ||
| [2011/11/17 06:47:07] @ Quit: ocherno: Client Quit | ||
| [2011/11/17 06:47:12] @ Quit: mpdude_: Ping timeout: 258 seconds | ||
| [2011/11/17 06:47:52] @ Quit: Jeff_S: Ping timeout: 244 seconds | ||
| [2011/11/17 06:49:07] @ Jeff_S joined channel #puppet | ||
| [2011/11/17 06:49:20] @ Quit: benjiedmund: Ping timeout: 248 seconds | ||
| [2011/11/17 06:50:17] @ Quit: filler: Ping timeout: 240 seconds | ||
| [2011/11/17 06:50:52] <Andorka> File['/etc/layman/overlays', 'layman.cfg', 'ubuilds'] ~> Exec['fetch'] | ||
| [2011/11/17 06:50:58] <Andorka> Could not find resource 'File[/etc/layman/overlays]File[layman.cfg]File[ubuilds]' for relationship on 'Exec[fetch]' on node | ||
| [2011/11/17 06:50:59] <Andorka> :\ | ||
| [2011/11/17 06:51:23] <Andorka> all resources defined | ||
| [2011/11/17 06:51:33] @ geekbri joined channel #puppet | ||
| [2011/11/17 06:51:48] @ Quit: HCoyote: Ping timeout: 258 seconds | ||
| [2011/11/17 06:51:48] <walkeran> Andorka: Don't think you can specify resources like that (in an array) in a resource chain | ||
| [2011/11/17 06:51:52] @ Quit: DJClean: Read error: Operation timed out | ||
| [2011/11/17 06:52:09] @ filler joined channel #puppet | ||
| [2011/11/17 06:52:50] <Andorka> hm | ||
| [2011/11/17 06:52:52] <Andorka> :) | ||
| [2011/11/17 06:53:35] @ brtl1 joined channel #puppet | ||
| [2011/11/17 06:53:40] @ HCoyote joined channel #puppet | ||
| [2011/11/17 06:53:41] @ Quit: mpdude: Remote host closed the connection | ||
| [2011/11/17 06:53:54] @ Quit: brtl: Read error: Connection reset by peer | ||
| [2011/11/17 06:54:17] @ mat_ joined channel #puppet | ||
| [2011/11/17 06:54:17] @ Quit: mat_: Changing host | ||
| [2011/11/17 06:54:17] @ mat_ joined channel #puppet | ||
| [2011/11/17 06:54:20] @ mpdude joined channel #puppet | ||
| [2011/11/17 06:54:40] @ DJClean joined channel #puppet | ||
| [2011/11/17 06:54:55] @ Quit: Wolfspyre: Quit: Leaving. | ||
| [2011/11/17 06:55:21] <Andorka> walkeran: i can specify in resource definition: subscribe => File['/etc/layman/overlays', '/etc/layman/layman.cfg'] | ||
| [2011/11/17 06:55:22] @ yann2 joined channel #puppet | ||
| [2011/11/17 06:55:23] <Andorka> and its works | ||
| [2011/11/17 06:55:34] <yann2> hello! Does anyone know if I can use php-concat to concatenate all files in a folder? | ||
| [2011/11/17 06:55:35] <walkeran> Andorka: That's correct | ||
| [2011/11/17 06:55:51] <Andorka> :( | ||
| [2011/11/17 06:55:53] <walkeran> yann2: php-concat?! | ||
| [2011/11/17 06:56:08] <walkeran> yann2: If you mean puppet-concat, then yes, that's what it's made for. | ||
| [2011/11/17 06:56:25] <yann2> puppet-concat yes :) | ||
| [2011/11/17 06:56:30] <_rc> it's not quite made to concat all files in a folder | ||
| [2011/11/17 06:56:42] <_rc> it's made to concat all the fragments you name | ||
| [2011/11/17 06:56:42] @ adimania joined channel #puppet | ||
| [2011/11/17 06:56:47] <yann2> I actually want all files in a folder... let me try to explain what I want to do... | ||
| [2011/11/17 06:56:56] <walkeran> well, I guess I got a little ahead of myself... thanks _rc | ||
| [2011/11/17 06:57:16] <yann2> I am setting up a vsftpd server using libpam_pwdfile , all nodes are going to have an account on that ftp server and therefore need a user and password | ||
| [2011/11/17 06:57:34] @ Quit: Stenbryggen: Quit: Leaving. | ||
| [2011/11/17 06:57:36] <yann2> so I want to define, in every node declaration, a username and a password, and use that data to generate the pwd file | ||
| [2011/11/17 06:57:40] <_rc> what populates the folder? if it's puppet then yes, you can have an exec resource notified by the file resource that sync the dir | ||
| [2011/11/17 06:57:59] <_rc> oh, in that case use concat directly | ||
| [2011/11/17 06:58:10] @ illsci joined channel #puppet | ||
| [2011/11/17 06:58:13] @ wilmoore joined channel #puppet | ||
| [2011/11/17 06:58:20] <_rc> it'll hide that there are multiple files | ||
| [2011/11/17 06:58:46] <taihen> guys, is it possible to do File ensure link or directory? unforutunatelly if I say directory it will always removes symlinks ;/ | ||
| [2011/11/17 06:58:57] <_rc> or mabe not, since what you'll want is exported resoucres | ||
| [2011/11/17 06:59:01] @ schlem joined channel #puppet | ||
| [2011/11/17 07:00:41] <robinbowes> SO, node inheritance, or not | ||
| [2011/11/17 07:01:03] * robinbowes has not used it in the past, but curret $site uses it | ||
| [2011/11/17 07:01:13] @ ocherno joined channel #puppet | ||
| [2011/11/17 07:01:26] @ zwi joined channel #puppet | ||
| [2011/11/17 07:01:26] <robinbowes> I'm re-writing the manifests, so am re-considering whether or not to use inheritance | ||
| [2011/11/17 07:01:30] <yann2> _rc, but with exported resources I ll get one file per node - hence my idea, get one file per node, and concatenate it all into the file used by vsftpd | ||
| [2011/11/17 07:01:57] <_rc> yeah, that's where you use the exec | ||
| [2011/11/17 07:01:58] @ ghg joined channel #puppet | ||
| [2011/11/17 07:02:16] <_rc> or these functions - http://svnweb.mageia.org/adm/puppet/modules/stored_config/lib/puppet/parser/functions/ | ||
| [2011/11/17 07:02:20] <kjetilho> robinbowes: you want to be able to migrate to external nodes in the future, I think | ||
| [2011/11/17 07:02:22] @ Quit: zwi: Client Quit | ||
| [2011/11/17 07:02:24] <walkeran> Wouldn't one be able to export a fragment from each node, and still use concat on the one that collects them? | ||
| [2011/11/17 07:02:27] <kjetilho> => no node inheritance | ||
| [2011/11/17 07:02:39] <robinbowes> My gut feel is not to | ||
| [2011/11/17 07:02:43] <kjetilho> (and no calls to defines in the node definition) | ||
| [2011/11/17 07:02:44] <robinbowes> That's a good reason | ||
| [2011/11/17 07:02:47] <_rc> walkeran: afaik concat doesn't export neatly like that | ||
| [2011/11/17 07:02:59] <robinbowes> I used external nodes previously | ||
| [2011/11/17 07:03:07] <robinbowes> With cobbler | ||
| [2011/11/17 07:03:21] @ wilmoore_ joined channel #puppet | ||
| [2011/11/17 07:03:43] @ Quit: wilmoore: Read error: Connection reset by peer | ||
| [2011/11/17 07:03:48] @ Quit: jaydg: Quit: Verlassend | ||
| [2011/11/17 07:03:57] <robinbowes> What do others use for external nodes? | ||
| [2011/11/17 07:04:34] <robinbowes> I'm currently happy using nodes.pp, but with practically nothing in it | ||
| [2011/11/17 07:05:06] @ Quit: pmorillon: Ping timeout: 260 seconds | ||
| [2011/11/17 07:05:15] <robinbowes> eg. node foo { include profile::core } | ||
| [2011/11/17 07:05:20] <_rc> we use a hand-rolled shim round the cobbler-ext-nodes that adds extra properties | ||
| [2011/11/17 07:05:29] @ Quit: MattyM: Remote host closed the connection | ||
| [2011/11/17 07:06:06] <robinbowes> And put all the node definition stuff in the profile::core module | ||
| [2011/11/17 07:06:18] <robinbowes> _rc: what sort of extra properties | ||
| [2011/11/17 07:07:04] @ Quit: adimania: Ping timeout: 240 seconds | ||
| [2011/11/17 07:07:09] <_rc> just some key/value stuff out of csv files | ||
| [2011/11/17 07:07:23] <robinbowes> Oh, I'll keep stuff like that in hiera | ||
| [2011/11/17 07:07:41] <_rc> effectively it's extlookup, without all the $foo = extlookup('foo') lines | ||
| [2011/11/17 07:07:56] <_rc> since the enc can do that for us, we let it | ||
| [2011/11/17 07:08:09] @ Quit: ckauhaus: Ping timeout: 244 seconds | ||
| [2011/11/17 07:08:18] <robinbowes> Is it proprietary? ie. can I get a look at it? | ||
| [2011/11/17 07:09:13] @ Quit: flex___: Remote host closed the connection | ||
| [2011/11/17 07:10:13] <_rc> no special sauce - http://pastie.org/2878286 | ||
| [2011/11/17 07:10:35] @ ckauhaus joined channel #puppet | ||
| [2011/11/17 07:11:13] <robinbowes> thx | ||
| [2011/11/17 07:11:54] @ kaptk2 joined channel #puppet | ||
| [2011/11/17 07:12:17] @ Quit: illsci: Ping timeout: 240 seconds | ||
| [2011/11/17 07:12:27] <_rc> nap_env is a custom fact of ours, which might reveal some terrible secret, but probably doesn't | ||
| [2011/11/17 07:13:52] @ Guest68655 is now known as magurski | ||
| [2011/11/17 07:14:54] <schlem> has there been some change to the way modules are found in the 2.7.x series? We have a 2.6.8 server with node termination in LDAP working fine. When testing a new server with 2.7.5 I get these errors that it can't find "Could not find class nss::gennss" but the next time it finds that class and goes on to complain about another class "Could not find class dns::hosts". I can run puppet a bunch of times to seemingly cache all the classes this seems | ||
| [2011/11/17 07:14:54] <schlem> broken | ||
| [2011/11/17 07:16:01] @ Quit: ZummiG777: Quit: Leaving | ||
| [2011/11/17 07:17:31] <_rc> are you working with the autoloader? http://docs.puppetlabs.com/guides/modules.html#module-autoloading | ||
| [2011/11/17 07:17:37] @ Quit: magurski: Quit: brb | ||
| [2011/11/17 07:20:05] @ adimania joined channel #puppet | ||
| [2011/11/17 07:21:17] @ emag_ joined channel #puppet | ||
| [2011/11/17 07:24:54] @ Quit: benkevan: Quit: Lost terminal | ||
| [2011/11/17 07:26:48] @ Quit: ocherno: Quit: Leaving | ||
| [2011/11/17 07:27:06] <schlem> dns::hosts for example is on the ldap parent node | ||
| [2011/11/17 07:27:30] <schlem> and yes we are relying on autoloading | ||
| [2011/11/17 07:27:31] @ emag_ is now known as magurski | ||
| [2011/11/17 07:27:36] <_rc> sure, but where is it on the filesystem? | ||
| [2011/11/17 07:27:52] <_rc> modules/dns/manifests/hosts.pp ? | ||
| [2011/11/17 07:28:13] <schlem> yes | ||
| [2011/11/17 07:28:24] <Andorka> how to escape string for regexp? | ||
| [2011/11/17 07:28:33] <Andorka> i want specifi ip addresses for munin | ||
| [2011/11/17 07:28:39] <Andorka> like class { 'munin | ||
| [2011/11/17 07:28:41] <Andorka> oops | ||
| [2011/11/17 07:28:59] <robinbowes> pastie.org | ||
| [2011/11/17 07:29:13] <Andorka> class { 'munin': allow => ['127.0.0.1', '10.0.0.1'] } | ||
| [2011/11/17 07:29:28] <Andorka> and in config: allow ^127\.0\.0\.1$ | ||
| [2011/11/17 07:29:42] @ pheller joined channel #puppet | ||
| [2011/11/17 07:30:06] <robinbowes> So, you want to auto-generate the rege from the string? | ||
| [2011/11/17 07:30:13] <robinbowes> Sounds too hard too me | ||
| [2011/11/17 07:30:19] <kjetilho> allow ^<%= line.gsub(".", "\\.").gsub("*", "[0-9]+") %>$ | ||
| [2011/11/17 07:30:29] <kjetilho> that's straight from my template :) | ||
| [2011/11/17 07:30:54] <kjetilho> (with a each-loop on the array) | ||
| [2011/11/17 07:30:55] <robinbowes> Hrm | ||
| [2011/11/17 07:30:58] <Andorka> Regexp.escape | ||
| [2011/11/17 07:30:59] <Andorka> ? | ||
| [2011/11/17 07:31:04] @ Quit: adimania: Ping timeout: 240 seconds | ||
| [2011/11/17 07:31:05] <_rc> Regexp.escape | ||
| [2011/11/17 07:31:18] <Andorka> or Regexp.quote? | ||
| [2011/11/17 07:31:27] <Andorka> my google tell me 2 variants :) | ||
| [2011/11/17 07:31:38] <kjetilho> my version supports 10.20.30.* | ||
| [2011/11/17 07:32:03] <_rc> did it also get you to http://www.ruby-doc.org/core-1.9.3/Regexp.html? | ||
| [2011/11/17 07:32:12] <Andorka> _rc: yep | ||
| [2011/11/17 07:32:16] <Andorka> kjetilho: hmm... | ||
| [2011/11/17 07:32:40] <Andorka> i think best way is function convert globs to regex :) | ||
| [2011/11/17 07:32:45] <_rc> then you'll see quote and escape are synonyms, and use the one you like | ||
| [2011/11/17 07:34:23] @ Wolfspyre joined channel #puppet | ||
| [2011/11/17 07:36:50] @ tizzo-afk is now known as tizzo | ||
| [2011/11/17 07:38:09] <stevie-bash> hello | ||
| [2011/11/17 07:38:26] <stevie-bash> i want to set a default exclude/ignore for all file resources | ||
| [2011/11/17 07:38:34] <stevie-bash> ignore => ".svn" | ||
| [2011/11/17 07:38:38] <stevie-bash> is this possible? | ||
| [2011/11/17 07:38:45] <stevie-bash> like a general ignore | ||
| [2011/11/17 07:38:57] <schlem> so this failure to find the classes seems to happen for each node | ||
| [2011/11/17 07:39:07] <robinbowes> In site.pp: File{ ignore => '.svn.' } | ||
| [2011/11/17 07:39:17] <robinbowes> (off the top of my head) | ||
| [2011/11/17 07:40:31] <stevie-bash> robinbowes, the trailing . is important? | ||
| [2011/11/17 07:40:40] <robinbowes> Er, no - that's a typo :) | ||
| [2011/11/17 07:40:45] <stevie-bash> ;) | ||
| [2011/11/17 07:41:08] @ anveo joined channel #puppet | ||
| [2011/11/17 07:41:18] <stevie-bash> and file not File or? | ||
| [2011/11/17 07:42:33] <_rc> File {} means it's a resource default, it's what you want | ||
| [2011/11/17 07:42:46] <stevie-bash> ok | ||
| [2011/11/17 07:42:46] @ Quit: jodok: Quit: jodok | ||
| [2011/11/17 07:43:12] <stevie-bash> I thought I have to use Capital if I want to referre | ||
| [2011/11/17 07:43:31] @ adimania joined channel #puppet | ||
| [2011/11/17 07:43:49] <Andorka> hm.. | ||
| [2011/11/17 07:43:54] <Andorka> how to use Regex in template? | ||
| [2011/11/17 07:43:58] @ gniks joined channel #puppet | ||
| [2011/11/17 07:44:03] <Andorka> uninitialized constant Puppet::Parser::TemplateWrapper::Regex :\ | ||
| [2011/11/17 07:44:16] <Andorka> what i must write? | ||
| [2011/11/17 07:44:27] <agaffney> Andorka: the same way you would use a regex in ruby | ||
| [2011/11/17 07:44:35] <Andorka> agaffney: i don't know ruby :) | ||
| [2011/11/17 07:44:43] @ Quit: gniks: Client Quit | ||
| [2011/11/17 07:44:44] <agaffney> Andorka: google is your friend | ||
| [2011/11/17 07:44:46] <Andorka> i write allow ^<%= Regex.escape(address) -%>$ | ||
| [2011/11/17 07:44:47] <agaffney> that's how I do it :) | ||
| [2011/11/17 07:45:16] <agaffney> what exactly are you trying to accomplish? | ||
| [2011/11/17 07:45:30] <agaffney> you're building a regex in a template but not using it there? | ||
| [2011/11/17 07:45:35] @ pmorillon joined channel #puppet | ||
| [2011/11/17 07:45:37] <Andorka> nope | ||
| [2011/11/17 07:45:41] <Andorka> i want use 1 function | ||
| [2011/11/17 07:45:45] <stevie-bash> _rc, robinbowes , thanks a lot | ||
| [2011/11/17 07:45:45] <Andorka> escape string | ||
| [2011/11/17 07:46:17] <kjetilho> agaffney: the parameter allow in munin-node.conf takes a regexp which it matches against the incoming IP | ||
| [2011/11/17 07:46:42] @ EL84 left channel #puppet () | ||
| [2011/11/17 07:47:15] <kjetilho> so if you just say "allow 1.7.0.0" it would allow 127.0.0.1 :-) | ||
| [2011/11/17 07:47:43] <Andorka> yar! | ||
| [2011/11/17 07:47:47] <Andorka> regex_p_ | ||
| [2011/11/17 07:47:50] <Andorka> not regex | ||
| [2011/11/17 07:48:25] <Andorka> yeah | | ||
| [2011/11/17 07:48:28] <Andorka> :| | ||
| [2011/11/17 07:48:38] @ gniks joined channel #puppet | ||
| [2011/11/17 07:49:42] @ Quit: wilmoore_: Remote host closed the connection | ||
| [2011/11/17 07:50:13] @ Stenbryggen joined channel #puppet | ||
| [2011/11/17 07:50:19] @ Quit: pmorillon: Client Quit | ||
| [2011/11/17 07:50:56] @ MattyM joined channel #puppet | ||
| [2011/11/17 07:53:10] @ dan__t joined channel #puppet | ||
| [2011/11/17 07:54:02] @ brandon_dacrib joined channel #puppet | ||
| [2011/11/17 07:57:32] @ magurski is now known as emag | ||
| [2011/11/17 07:57:49] @ Quit: emag: Quit: ok, let's try this again... | ||
| [2011/11/17 07:58:16] @ emag joined channel #puppet | ||
| [2011/11/17 07:59:39] @ eliteplnfe joined channel #puppet | ||
| [2011/11/17 07:59:48] @ Quit: ckauhaus: Ping timeout: 244 seconds | ||
| [2011/11/17 08:00:07] @ wilmoore joined channel #puppet | ||
| [2011/11/17 08:00:26] @ andreaturli joined channel #puppet | ||
| [2011/11/17 08:00:56] @ olglory07 joined channel #puppet | ||
| [2011/11/17 08:01:09] @ Quit: olglory07: Remote host closed the connection | ||
| [2011/11/17 08:01:23] @ Quit: pheller: Quit: pheller | ||
| [2011/11/17 08:02:21] @ benjiedmund joined channel #puppet | ||
| [2011/11/17 08:05:49] <Ramonster> does anyone here kow if puppet 2.6.x supports passing hashes into templates ? | ||
| [2011/11/17 08:05:55] <Ramonster> kow/know | ||
| [2011/11/17 08:05:57] <Lorn> Hi, I can use a hash returned by a ruby function inside puppet? | ||
| [2011/11/17 08:06:05] <Ramonster> That would make my life so mych simpler | ||
| [2011/11/17 08:06:56] @ Quit: eliteplnfe: Read error: Connection reset by peer | ||
| [2011/11/17 08:08:16] @ Quit: wilmoore: Ping timeout: 240 seconds | ||
| [2011/11/17 08:09:28] <_rc> Ramonster: yes, any ruby object will make it over | ||
| [2011/11/17 08:10:26] @ Quit: bkdem: Ping timeout: 260 seconds | ||
| [2011/11/17 08:10:37] @ ghaskins_ joined channel #puppet | ||
| [2011/11/17 08:12:06] <Ramonster> _rc: Thanx, then it must be a syntax error :( | ||
| [2011/11/17 08:12:33] @ Quit: satman_: Quit: Leaving | ||
| [2011/11/17 08:13:56] @ Quit: ghaskins: Ping timeout: 260 seconds | ||
| [2011/11/17 08:13:59] @ Quit: raphdg: Remote host closed the connection | ||
| [2011/11/17 08:17:04] @ Quit: adimania: Ping timeout: 240 seconds | ||
| [2011/11/17 08:17:52] @ Quit: maplebed: Ping timeout: 248 seconds | ||
| [2011/11/17 08:19:42] @ hobbeswalsh joined channel #puppet | ||
| [2011/11/17 08:20:43] @ Quit: artkrz: Quit: Linkinus - http://linkinus.com | ||
| [2011/11/17 08:21:13] @ nachox joined channel #puppet | ||
| [2011/11/17 08:21:43] @ Quit: Walid: Quit: Page closed | ||
| [2011/11/17 08:22:06] @ Quit: sdog: Remote host closed the connection | ||
| [2011/11/17 08:22:08] <nachox> guys, i need a simple solution to apply patches to a bunch of ubuntu servers which are not all the same version, is it possible to manage such environment with puppet? | ||
| [2011/11/17 08:22:12] @ dclp_ joined channel #puppet | ||
| [2011/11/17 08:23:23] @ Quit: mogitaff: Quit: Leaving | ||
| [2011/11/17 08:23:47] @ Quit: Meier: Quit: Leaving. | ||
| [2011/11/17 08:24:12] @ Quit: dclp: Ping timeout: 245 seconds | ||
| [2011/11/17 08:25:45] @ Quit: verwilst: Quit: Ex-Chat | ||
| [2011/11/17 08:25:51] @ Quit: xorpaul: Quit: leaving | ||
| [2011/11/17 08:26:40] @ Quit: dclp_: Ping timeout: 244 seconds | ||
| [2011/11/17 08:27:16] @ newtMcKerr joined channel #puppet | ||
| [2011/11/17 08:27:51] @ Quit: tmz: Quit: leaving | ||
| [2011/11/17 08:28:11] @ uphillian joined channel #puppet | ||
| [2011/11/17 08:28:33] <tizzo> nachox: that doesn't' sound like configuration management so much | ||
| [2011/11/17 08:28:41] <tizzo> it sounds like coordinated remote execution | ||
| [2011/11/17 08:28:49] <nachox> that is about right | ||
| [2011/11/17 08:28:54] <tizzo> it's probably *possible* with puppet, but it doesn't seem like the right tool for the job | ||
| [2011/11/17 08:28:58] @ Diranged joined channel #puppet | ||
| [2011/11/17 08:29:13] <tizzo> nachox: I'd have a look at http://docs.fabfile.org/en/1.3.2/index.html | ||
| [2011/11/17 08:29:37] <tizzo> fabric is designed to execute commands on remote systems | ||
| [2011/11/17 08:29:49] <tizzo> os it's sort of inherently imperitive | ||
| [2011/11/17 08:29:50] @ cjz joined channel #puppet | ||
| [2011/11/17 08:30:12] <tizzo> puppet is inherently declarative, and the fact that you want this one thing to be run once is less declarative and more imperative | ||
| [2011/11/17 08:30:42] <Ramonster> _rc: found it | ||
| [2011/11/17 08:30:42] <nachox> tizzo, i have a sort of centralized monitoring with zenoss, i wanted a sort of centralized patch management solution too | ||
| [2011/11/17 08:30:44] @ Quit: zorg1: Remote host closed the connection | ||
| [2011/11/17 08:31:06] <fragfutter> nachox: define patch | ||
| [2011/11/17 08:31:21] <tizzo> yeah, I'm looking at doing something similar right now | ||
| [2011/11/17 08:31:52] <tizzo> I'm assuming patch means essentially running software updates `apt-get upgrade` style, nachox is that right or am I off base? | ||
| [2011/11/17 08:31:53] @ kangman_ joined channel #puppet | ||
| [2011/11/17 08:31:54] <nachox> i found out that bind is broken and that ubuntu released a new set of debs to fix the issue, i want to first test the patch and then apply it en-mass | ||
| [2011/11/17 08:32:04] @ tmz joined channel #puppet | ||
| [2011/11/17 08:32:16] @ Quit: derjohn_mob: Ping timeout: 240 seconds | ||
| [2011/11/17 08:33:01] <fragfutter> nachox: so not a patch but a new package. | ||
| [2011/11/17 08:33:33] <fragfutter> nachox: force the version with puppet. | ||
| [2011/11/17 08:33:56] @ brahman joined channel #puppet | ||
| [2011/11/17 08:34:44] <brahman> Hi can I have a define, with an optional parameter. ie define subroutine($non-optional,$optional) | ||
| [2011/11/17 08:35:00] <fragfutter> brahman: yes | ||
| [2011/11/17 08:35:02] <nachox> fragfutter, is there a tutorial to manage a ubuntu like that? something i can read? i'm new to puppet but i thought of it as a useful thing to learn and use | ||
| [2011/11/17 08:35:09] @ Quit: kangman: Ping timeout: 252 seconds | ||
| [2011/11/17 08:35:35] <fragfutter> nachox: read documentation about puppet, read documentation about apt repositories | ||
| [2011/11/17 08:36:02] @ Quit: shortbus-: Quit: Leaving. | ||
| [2011/11/17 08:36:10] @ pmorillon joined channel #puppet | ||
| [2011/11/17 08:36:18] @ shortbus- joined channel #puppet | ||
| [2011/11/17 08:36:45] @ Quit: rcrowley: Quit: Computer has gone to sleep. | ||
| [2011/11/17 08:37:07] @ kangman joined channel #puppet | ||
| [2011/11/17 08:37:11] <brahman> fragfutter: Error 400 on SERVER: Must pass optional is the error I get. I am on version 2.6.4 | ||
| [2011/11/17 08:37:24] @ aricg left channel #puppet ("Leaving") | ||
| [2011/11/17 08:37:37] @ Quit: jab_doa: Quit: Verlassend | ||
| [2011/11/17 08:37:41] <fragfutter> brahman: define foobar($nonopt, $opt="defaultvalue") | ||
| [2011/11/17 08:37:46] @ Quit: pmorillon: Client Quit | ||
| [2011/11/17 08:38:26] <brahman> fragfutter: I do not want a default value, I just want the parameter to be optional. Mainly because I am using has_variable in 1 of my templates. | ||
| [2011/11/17 08:39:02] <brahman> if it has a default then, has_variable will return true, with the default. | ||
| [2011/11/17 08:39:08] @ Quit: alanevans: Remote host closed the connection | ||
| [2011/11/17 08:39:24] <fragfutter> brahman: then you need to change your template to check on empty string or something like that and use it as a default | ||
| [2011/11/17 08:39:44] @ mitchellh joined channel #puppet | ||
| [2011/11/17 08:39:47] <brahman> fragfutter: will look at this. Thanks for the heads up. | ||
| [2011/11/17 08:39:50] <fragfutter> brahman: or change your define and use an intermediate for opt. | ||
| [2011/11/17 08:39:59] @ Quit: kangman_: Ping timeout: 244 seconds | ||
| [2011/11/17 08:41:21] <fragfutter> brahman: http://pastie.org/2878710 | ||
| [2011/11/17 08:43:12] @ seanh-ansca joined channel #puppet | ||
| [2011/11/17 08:44:43] <brahman> fragfutter: Thanks for this, I was reading http://paperairoplane.net/?p=194 your paste is option 1 from his list.... | ||
| [2011/11/17 08:45:02] @ toi joined channel #puppet | ||
| [2011/11/17 08:45:03] <brahman> fragfutter: am going to go with testing for empty string... | ||
| [2011/11/17 08:45:42] @ Quit: Razique: Quit: Razique | ||
| [2011/11/17 08:46:34] @ Quit: ryancoleman: Quit: Leaving. | ||
| [2011/11/17 08:47:09] <_rc> so we're having a problem, thin_storedconfigs don't seem to being respected. http://pastie.org/2878723 | ||
| [2011/11/17 08:47:13] @ Quit: ken_barber: Ping timeout: 244 seconds | ||
| [2011/11/17 08:48:33] <_rc> this is with 2.6.7 | ||
| [2011/11/17 08:49:10] @ Quit: duerF: Quit: Leaving | ||
| [2011/11/17 08:49:46] @ neonflux joined channel #puppet | ||
| [2011/11/17 08:49:58] @ labrown joined channel #puppet | ||
| [2011/11/17 08:50:29] @ negronjl joined channel #puppet | ||
| [2011/11/17 08:50:45] <robinbowes> I'm re-working some manifests and thinking how best to do node classification | ||
| [2011/11/17 08:50:50] @ Quit: mitchellh: Quit: Computer has gone to sleep | ||
| [2011/11/17 08:50:51] @ kermit joined channel #puppet | ||
| [2011/11/17 08:51:55] <robinbowes> I'm "stuck" (ie. can't get my head round an elegant way to do it) on how best to assign a node to either prod or uat | ||
| [2011/11/17 08:51:59] @ ken_barber joined channel #puppet | ||
| [2011/11/17 08:52:31] @ Quit: codec: Ping timeout: 244 seconds | ||
| [2011/11/17 08:53:23] <robinbowes> I guess I could add a top-level hiera data source containing a hash keyed on hostname | ||
| [2011/11/17 08:54:18] @ pmorillon joined channel #puppet | ||
| [2011/11/17 08:54:37] @ xover1 left channel #puppet () | ||
| [2011/11/17 08:56:18] @ Quit: MartVisser: Quit: Leaving | ||
| [2011/11/17 08:56:24] @ londo__ is now known as londo | ||
| [2011/11/17 08:56:36] @ crs joined channel #puppet | ||
| [2011/11/17 08:57:43] <crs> Hi there, have just installed puppet-dashboard. I can see reports, all working very nicely. I am puzzled though if I should be seeing any classes that are configured already within puppet? | ||
| [2011/11/17 08:58:53] @ maplebed joined channel #puppet | ||
| [2011/11/17 08:59:21] @ Quit: Ramonster: Quit: So Long and thanks for all the fish | ||
| [2011/11/17 09:00:01] @ ken_barber1 joined channel #puppet | ||
| [2011/11/17 09:01:40] @ codec joined channel #puppet | ||
| [2011/11/17 09:03:12] <walkeran> crs: Nope. The "classes" and "groups" sections there are if you are using dashboard as an external node classifier (ENC) | ||
| [2011/11/17 09:04:08] @ Quit: ken_barber: Ping timeout: 252 seconds | ||
| [2011/11/17 09:05:25] <crs> walkeran: OK, good. That means it is working just fine. Thank you. | ||
| [2011/11/17 09:05:34] <walkeran> crs: You're welcome | ||
| [2011/11/17 09:07:23] <Andorka> http://paste.pocoo.org/show/509314/ | ||
| [2011/11/17 09:07:37] <Andorka> please, verify, it's looks ok? | ||
| [2011/11/17 09:07:58] <Andorka> last 4 lines looks ugly imho | ||
| [2011/11/17 09:08:22] @ Quit: octane-: Quit: octane- | ||
| [2011/11/17 09:09:02] @ motomike joined channel #puppet | ||
| [2011/11/17 09:10:06] @ ciupicri joined channel #puppet | ||
| [2011/11/17 09:10:18] <ciupicri> what's with this error "err: /File[/etc/sysconfig/httpd]: Could not evaluate: SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A Could not retrieve file metadata for puppet:///fqdn//etc/sysconfig/httpd: SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A at /var/lib/puppet/manifests/definitions/config_file.pp:21"? | ||
| [2011/11/17 09:10:47] @ maplebed left channel #puppet () | ||
| [2011/11/17 09:11:43] @ mrwacky42 joined channel #puppet | ||
| [2011/11/17 09:12:40] <astrostl> i haven't used puppet in a dual-interface public/private setup. by default, the hostname it sends will be the public one. i want puppet to operate on the private interface only. is the preferred method to modify puppet.conf on all clients? | ||
| [2011/11/17 09:14:01] <the_ramink> Andorka: ~> also means ->, no need to do both. | ||
| [2011/11/17 09:14:12] <Andorka> oh, thank you | ||
| [2011/11/17 09:14:19] @ _plg joined channel #puppet | ||
| [2011/11/17 09:14:41] <magicaltrout> hello puppeteers I hope you can hope me once more with a random query | ||
| [2011/11/17 09:14:44] @ Asako joined channel #puppet | ||
| [2011/11/17 09:14:47] @ alanevans joined channel #puppet | ||
| [2011/11/17 09:14:52] <Asako> hello | ||
| [2011/11/17 09:15:11] <magicaltrout> https://github.com/camptocamp/puppet-apache/blob/master/manifests/vhost-ssl.pp looking at the camptocamp puppet module for apache and ssl at the very bottom you'll see file { "public CSR file for $name": | ||
| [2011/11/17 09:15:17] <Asako> is there a way to distribute file changes in puppet as a patch? | ||
| [2011/11/17 09:15:50] <magicaltrout> the path specified doesn't exist yet and requires (as specified) "generate-ssl-cert-$name" | ||
| [2011/11/17 09:16:07] <magicaltrout> yet the module tries to resolve this path when the puppet agent is run | ||
| [2011/11/17 09:16:11] <magicaltrout> and so the module fails | ||
| [2011/11/17 09:16:35] <Asako> yeah, I could just use a file resource but people here don't like that | ||
| [2011/11/17 09:16:38] <magicaltrout> is this likely a newish change to how puppet works, the ssl module for camptocamp has never worked, or none of the above? | ||
| [2011/11/17 09:17:01] @ yann2 left channel #puppet ("Leaving") | ||
| [2011/11/17 09:18:09] <ciupicri> I'm getting "err: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate definition: Class[Httpd] is already defined; cannot redefine at /var/lib/puppet/manifests/nodes.pp:35 on node hermes.lizeanunet.tld" for this node definition http://pastebin.com/fuFh8Jbq | module is at https://github.com/ciupicri/puppet-httpd | ||
| [2011/11/17 09:18:32] @ ckauhaus joined channel #puppet | ||
| [2011/11/17 09:18:42] @ illsci joined channel #puppet | ||
| [2011/11/17 09:18:59] @ MartVisser joined channel #puppet | ||
| [2011/11/17 09:19:16] <_rc> ciupicri: in one of your many modules, you have an 'include httpd' | ||
| [2011/11/17 09:19:34] <_rc> which is clashing with your class { "httpd": virtualhosting => true } | ||
| [2011/11/17 09:19:54] <ciupicri> _rc, yes, that right, in the cobbler module | ||
| [2011/11/17 09:20:08] @ orkaa left channel #puppet () | ||
| [2011/11/17 09:20:13] <ciupicri> _rc, how can I fix this? | ||
| [2011/11/17 09:20:21] <_rc> remove it from one of them | ||
| [2011/11/17 09:20:51] <_rc> using parameterised classes turns them into resources, so the duplicate definitions rules apply | ||
| [2011/11/17 09:20:52] @ Quit: geekbri: Remote host closed the connection | ||
| [2011/11/17 09:21:07] <ciupicri> _rc, yeah, I think that I'll just make the cobbler module require the httpd::service | ||
| [2011/11/17 09:22:13] @ Quit: chewie71: Ping timeout: 265 seconds | ||
| [2011/11/17 09:23:02] @ yii_H joined channel #puppet | ||
| [2011/11/17 09:23:07] <yii_H> hi | ||
| [2011/11/17 09:23:24] @ alanna joined channel #puppet | ||
| [2011/11/17 09:23:24] @ ryancoleman joined channel #puppet | ||
| [2011/11/17 09:23:40] @ Quit: alanna: Remote host closed the connection | ||
| [2011/11/17 09:23:48] @ alanna joined channel #puppet | ||
| [2011/11/17 09:23:49] @ Quit: alanna: Remote host closed the connection | ||
| [2011/11/17 09:24:08] @ comptona joined channel #puppet | ||
| [2011/11/17 09:24:12] @ Quit: ryancoleman: Client Quit | ||
| [2011/11/17 09:24:25] @ Quit: the_ramink: Ping timeout: 244 seconds | ||
| [2011/11/17 09:24:39] @ ryancoleman joined channel #puppet | ||
| [2011/11/17 09:24:49] @ alanna_ joined channel #puppet | ||
| [2011/11/17 09:25:42] <yii_H> I've run --waitforcert on client but for some reason I don't see the request on the puppet master... how can I debug this? what could be the problem? | ||
| [2011/11/17 09:26:01] @ Alienswede joined channel #puppet | ||
| [2011/11/17 09:27:17] @ ianbrandt joined channel #puppet | ||
| [2011/11/17 09:28:26] @ Quit: pmorillon: Quit: pmorillon | ||
| [2011/11/17 09:29:11] @ Quit: choonming: Ping timeout: 260 seconds | ||
| [2011/11/17 09:31:01] @ hooper joined channel #puppet | ||
| [2011/11/17 09:31:54] <_plg> hi, when I use an adaptor like mysql, what do I have to do to persist my modules? I see in the database the environments , but i dont see any associated modules | ||
| [2011/11/17 09:32:10] @ adimania joined channel #puppet | ||
| [2011/11/17 09:34:44] @ Quit: andreaturli: Remote host closed the connection | ||
| [2011/11/17 09:34:53] @ lak joined channel #puppet | ||
| [2011/11/17 09:34:54] @ Quit: lak: Changing host | ||
| [2011/11/17 09:34:54] @ lak joined channel #puppet | ||
| [2011/11/17 09:36:48] @ Quit: cliff-hm: Ping timeout: 248 seconds | ||
| [2011/11/17 09:37:04] @ nfagerlund joined channel #puppet | ||
| [2011/11/17 09:38:15] @ Quit: mpdude: Remote host closed the connection | ||
| [2011/11/17 09:38:18] @ miche joined channel #puppet | ||
| [2011/11/17 09:41:08] @ choonming joined channel #puppet | ||
| [2011/11/17 09:42:54] @ KaiserBeto joined channel #puppet | ||
| [2011/11/17 09:45:14] @ octane- joined channel #puppet | ||
| [2011/11/17 09:49:28] @ Quit: octane-: Ping timeout: 240 seconds | ||
| [2011/11/17 09:50:11] @ Quit: astrostl: | ||
| [2011/11/17 09:50:48] @ the_ramink joined channel #puppet | ||
| [2011/11/17 09:51:09] @ Quit: sarkis: Remote host closed the connection | ||
| [2011/11/17 09:51:31] @ jgh joined channel #puppet | ||
| [2011/11/17 09:52:07] @ Quit: MattyM: Ping timeout: 245 seconds | ||
| [2011/11/17 09:53:08] @ mitchellh joined channel #puppet | ||
| [2011/11/17 09:53:34] @ alfism joined channel #puppet | ||
| [2011/11/17 09:53:52] @ Chris64 joined channel #puppet | ||
| [2011/11/17 09:55:04] @ williemach joined channel #puppet | ||
| [2011/11/17 09:58:58] @ Quit: ckauhaus: Quit: Leaving. | ||
| [2011/11/17 09:59:38] @ Quit: Boltsky: Quit: Computer has gone to sleep. | ||
| [2011/11/17 10:02:05] @ peridot joined channel #puppet | ||
| [2011/11/17 10:05:54] @ sdog joined channel #puppet | ||
| [2011/11/17 10:06:17] @ Quit: sdog: Changing host | ||
| [2011/11/17 10:06:17] @ sdog joined channel #puppet | ||
| [2011/11/17 10:06:40] @ Quit: illsci: Ping timeout: 248 seconds | ||
| [2011/11/17 10:06:49] @ jheideloff joined channel #puppet | ||
| [2011/11/17 10:07:02] @ Quit: ahumbe: Quit: In a day, when you do not come across any problem means you are travelling in a wrong path. | ||
| [2011/11/17 10:09:53] @ Quit: jheideloff: Client Quit | ||
| [2011/11/17 10:10:48] @ Quit: jgh: | ||
| [2011/11/17 10:10:58] @ sumsuch joined channel #puppet | ||
| [2011/11/17 10:12:11] @ scsinutz joined channel #puppet | ||
| [2011/11/17 10:13:13] @ jgh773 joined channel #puppet | ||
| [2011/11/17 10:14:15] @ SQLDarkly joined channel #puppet | ||
| [2011/11/17 10:15:01] <SQLDarkly> Hey all. Im getting this warning: Use a fully-qualified variable name (e.g., $classname::variable) or parameterized classes. Now ive fixed most of them but I have some variabled that I define on the node definitions. How do I fully qualify those vars? | ||
| [2011/11/17 10:15:14] <SQLDarkly> like I have an iptables = yes or no etc | ||
| [2011/11/17 10:15:39] <jgh773> Hello everyone. | ||
| [2011/11/17 10:15:40] <jgh773> The documentation for which version of Ruby to use under CentOS is confusing. | ||
| [2011/11/17 10:15:48] @ Quit: Spads: Ping timeout: 252 seconds | ||
| [2011/11/17 10:15:48] <jgh773> http://projects.puppetlabs.com/projects/1/wiki/Puppet_Red_Hat_Centos | ||
| [2011/11/17 10:15:57] <jgh773> http://docs.puppetlabs.com/guides/faq.html | ||
| [2011/11/17 10:16:19] <jgh773> The first link suggests that I can use 1.8.6 and the second says that I can't. The second links suggests that major memory leaks are seen when running with 1.8.5, yet the first link suggests that it's a recommended version. 1.8.6 is provided in the CentOS extras repository, which is something our firm uses. | ||
| [2011/11/17 10:16:32] <SQLDarkly> jgh773: ruby 1.8.7 is stable. Ive had only minor issues with 1.9.x, but my prod machines run 1.8.7 | ||
| [2011/11/17 10:17:45] <SQLDarkly> My suggestion is to build from source and make a package for youself that you can drop into your yum repo. ive done the same but included puppet facter augeas and any other goodies I needed. Youll find centos to be behind the "bleeding edge" packages | ||
| [2011/11/17 10:18:10] @ erthad left channel #puppet () | ||
| [2011/11/17 10:18:53] @ Kazuhiro joined channel #puppet | ||
| [2011/11/17 10:19:04] @ Quit: bobbyz: Ping timeout: 240 seconds | ||
| [2011/11/17 10:19:07] <jgh773> Bleeding edge is sometimes where people don't want to be. Since RHEL/CentOS is a major distribution, I'd prefer to stick with the packages provided. To have to build packages around later version of ruby seems somewhat self defeating. | ||
| [2011/11/17 10:20:37] <jgh773> I'm just trying to get clarity as to what is officially supported. The information on puppetlabs.com is confusing. | ||
| [2011/11/17 10:21:11] @ Quit: yii_H: Ping timeout: 265 seconds | ||
| [2011/11/17 10:21:45] @ Boltsky joined channel #puppet | ||
| [2011/11/17 10:22:46] @ Quit: matchaw_: Remote host closed the connection | ||
| [2011/11/17 10:23:19] @ Quit: negronjl: Ping timeout: 244 seconds | ||
| [2011/11/17 10:25:18] @ Quit: kolla: Remote host closed the connection | ||
| [2011/11/17 10:25:24] @ negronjl joined channel #puppet | ||
| [2011/11/17 10:26:35] @ flakrat joined channel #puppet | ||
| [2011/11/17 10:26:35] @ Quit: flakrat: Changing host | ||
| [2011/11/17 10:26:35] @ flakrat joined channel #puppet | ||
| [2011/11/17 10:26:56] @ Quit: Kazuhiro: Ping timeout: 248 seconds | ||
| [2011/11/17 10:27:21] @ Quit: SQLDarkly: Quit: Page closed | ||
| [2011/11/17 10:27:45] @ dclp joined channel #puppet | ||
| [2011/11/17 10:28:22] @ illsci joined channel #puppet | ||
| [2011/11/17 10:28:39] @ jsurfer joined channel #puppet | ||
| [2011/11/17 10:29:15] <hobbeswalsh> how can I increase the debug/error level of the Yum provider in puppet? | ||
| [2011/11/17 10:29:34] <hobbeswalsh> I notice that the default is -d 0 -e 0. even with --debug and --trace switched on... is there any way to crank this up? | ||
| [2011/11/17 10:30:39] @ sascha_ left channel #puppet () | ||
| [2011/11/17 10:32:08] <flakrat> anyone have a good method they'd like to share for dealing with service names in a mixed SysV and systemd environment? example clients might be CentOS 5, 6, Fedora 14, 15, 16(systemd)? | ||
| [2011/11/17 10:32:43] <flakrat> I know I could use $operatingsystem combined with $operatingsystemrelease but that doesn't seem to scale well | ||
| [2011/11/17 10:35:45] @ Quit: dclp: Quit: dclp | ||
| [2011/11/17 10:36:30] @ Quit: ezryx: Remote host closed the connection | ||
| [2011/11/17 10:38:44] <peridot> Are there any issues with upgrading puppet from 2.6.9 to 2.7.6, or is there a page which lists such issues? Can I upgrade directly, or do I need to do it incrementally? | ||
| [2011/11/17 10:39:05] <the_ramink> jgh773: always trust docs over the wiki when it comes to Puppet. The 1.8.5 that ships with your distro is fine. | ||
| [2011/11/17 10:41:06] @ Quit: localhost: Remote host closed the connection | ||
| [2011/11/17 10:42:11] @ Quit: scsinutz: Read error: Connection reset by peer | ||
| [2011/11/17 10:42:24] @ localhost joined channel #puppet | ||
| [2011/11/17 10:42:50] @ shadoi joined channel #puppet | ||
| [2011/11/17 10:42:54] @ scsinutz joined channel #puppet | ||
| [2011/11/17 10:42:55] * conntrack waves you goodbye | ||
| [2011/11/17 10:46:54] @ sumsuch_ joined channel #puppet | ||
| [2011/11/17 10:47:10] @ Quit: DJClean: Read error: Operation timed out | ||
| [2011/11/17 10:47:21] @ themadcanudist left channel #puppet () | ||
| [2011/11/17 10:47:34] @ Quit: sumsuch: Read error: No route to host | ||
| [2011/11/17 10:47:34] @ sumsuch_ is now known as sumsuch | ||
| [2011/11/17 10:48:11] @ DJClean joined channel #puppet | ||
| [2011/11/17 10:53:34] @ Spads joined channel #puppet | ||
| [2011/11/17 10:55:12] @ spiette joined channel #puppet | ||
| [2011/11/17 10:56:23] @ Quit: danikov: Ping timeout: 244 seconds | ||
| [2011/11/17 10:58:01] @ Quit: jonhattan: Quit: llevaré una chaquete de guns'n'roses | ||
| [2011/11/17 10:59:19] @ Quit: miche: Quit: Computer has gone to sleep. | ||
| [2011/11/17 10:59:24] @ Quit: Spads: Ping timeout: 276 seconds | ||
| [2011/11/17 11:00:12] @ Quit: hooper: Ping timeout: 252 seconds | ||
| [2011/11/17 11:01:26] @ duerF joined channel #puppet | ||
| [2011/11/17 11:01:52] @ Kazuhiro joined channel #puppet | ||
| [2011/11/17 11:03:06] @ Quit: pugnacity: Ping timeout: 260 seconds | ||
| [2011/11/17 11:03:49] @ Quit: lindenle: Remote host closed the connection | ||
| [2011/11/17 11:04:15] @ scsinutz left channel #puppet () | ||
| [2011/11/17 11:05:31] <magicaltrout> right, i know the issue but can't think of a logical way around it, the file call has a source that doesn't exist until after an exec is run which generates the file | ||
| [2011/11/17 11:06:01] <magicaltrout> but the file source looks up the source before the exec is run even though there is a require to tell it to require the exec | ||
| [2011/11/17 11:08:29] @ cliff-hm joined channel #puppet | ||
| [2011/11/17 11:13:21] @ Quit: bje: *.net *.split | ||
| [2011/11/17 11:13:22] @ Quit: jb: *.net *.split | ||
| [2011/11/17 11:13:22] @ Quit: blackdragon85: *.net *.split | ||
| [2011/11/17 11:13:23] @ Quit: Will|: *.net *.split | ||
| [2011/11/17 11:13:23] @ Quit: digitalfreak: *.net *.split | ||
| [2011/11/17 11:13:24] @ Quit: |Frederik: *.net *.split | ||
| [2011/11/17 11:13:25] @ Quit: taihen: *.net *.split | ||
| [2011/11/17 11:13:25] @ Quit: orjan: *.net *.split | ||
| [2011/11/17 11:13:26] @ Quit: ToKy: *.net *.split | ||
| [2011/11/17 11:13:26] @ Quit: cmoates: *.net *.split | ||
| [2011/11/17 11:13:27] @ Quit: krash3r: *.net *.split | ||
| [2011/11/17 11:13:27] @ Quit: clustermagnet: *.net *.split | ||
| [2011/11/17 11:13:27] @ Quit: eRefre: *.net *.split | ||
| [2011/11/17 11:13:28] @ Quit: kloeri: *.net *.split | ||
| [2011/11/17 11:13:28] @ Quit: Volcane: *.net *.split | ||
| [2011/11/17 11:13:29] @ Quit: ptman: *.net *.split | ||
| [2011/11/17 11:13:29] @ Quit: Av: *.net *.split | ||
| [2011/11/17 11:13:31] @ Quit: Elwell: *.net *.split | ||
| [2011/11/17 11:13:31] @ Quit: Kloopy: *.net *.split | ||
| [2011/11/17 11:13:32] @ Quit: _TB_: *.net *.split | ||
| [2011/11/17 11:13:32] @ Quit: blkperl: *.net *.split | ||
| [2011/11/17 11:13:33] @ Quit: bipolar: *.net *.split | ||
| [2011/11/17 11:13:33] @ Quit: yerp: *.net *.split | ||
| [2011/11/17 11:13:35] @ Quit: joschi: *.net *.split | ||
| [2011/11/17 11:13:36] @ Quit: tsykoduk: *.net *.split | ||
| [2011/11/17 11:13:37] @ Quit: `mx: *.net *.split | ||
| [2011/11/17 11:13:38] @ Quit: dcarley: *.net *.split | ||
| [2011/11/17 11:13:40] @ Quit: tdb: *.net *.split | ||
| [2011/11/17 11:13:40] @ Quit: bauke: *.net *.split | ||
| [2011/11/17 11:13:41] @ Quit: habalux: *.net *.split | ||
| [2011/11/17 11:13:42] @ Quit: Espen-_-: *.net *.split | ||
| [2011/11/17 11:13:42] @ orjan joined channel #puppet | ||
| [2011/11/17 11:13:42] @ habalux joined channel #puppet | ||
| [2011/11/17 11:13:42] @ dcarley joined channel #puppet | ||
| [2011/11/17 11:13:42] @ digitalfreak joined channel #puppet | ||
| [2011/11/17 11:13:42] @ _TB_ joined channel #puppet | ||
| [2011/11/17 11:13:42] @ jb joined channel #puppet | ||
| [2011/11/17 11:13:43] @ blkperl joined channel #puppet | ||
| [2011/11/17 11:13:43] @ taihen joined channel #puppet | ||
| [2011/11/17 11:13:43] @ Av joined channel #puppet | ||
| [2011/11/17 11:13:43] @ |Frederik joined channel #puppet | ||
| [2011/11/17 11:13:43] @ bauke joined channel #puppet | ||
| [2011/11/17 11:13:43] @ yerp joined channel #puppet | ||
| [2011/11/17 11:13:43] @ Kloopy joined channel #puppet | ||
| [2011/11/17 11:13:43] @ ptman joined channel #puppet | ||
| [2011/11/17 11:13:43] @ Will| joined channel #puppet | ||
| [2011/11/17 11:13:43] @ krash3r joined channel #puppet | ||
| [2011/11/17 11:13:43] @ kloeri joined channel #puppet | ||
| [2011/11/17 11:13:43] @ eRefre joined channel #puppet | ||
| [2011/11/17 11:13:43] @ bje joined channel #puppet | ||
| [2011/11/17 11:13:43] @ Espen-_- joined channel #puppet | ||
| [2011/11/17 11:13:43] @ ToKy joined channel #puppet | ||
| [2011/11/17 11:13:43] @ cmoates joined channel #puppet | ||
| [2011/11/17 11:13:43] @ blackdragon85 joined channel #puppet | ||
| [2011/11/17 11:13:44] @ Quit: ecolitan: Excess Flood | ||
| [2011/11/17 11:13:44] @ `mx joined channel #puppet | ||
| [2011/11/17 11:13:44] @ Volcane joined channel #puppet | ||
| [2011/11/17 11:13:44] @ ecolitan_ joined channel #puppet | ||
| [2011/11/17 11:13:44] @ clustermagnet joined channel #puppet | ||
| [2011/11/17 11:14:40] @ tsykoduk joined channel #puppet | ||
| [2011/11/17 11:15:12] @ joschi joined channel #puppet | ||
| [2011/11/17 11:16:00] <illsci> Other than facts... is there a way to get external data rendered in puppet templates? | ||
| [2011/11/17 11:16:10] <illsci> like just defining a variable or something | ||
| [2011/11/17 11:16:29] <illsci> Or would I have to make a define for that... | ||
| [2011/11/17 11:16:34] <mrwacky42> illsci: besides get_var, hiera, & extlookup | ||
| [2011/11/17 11:16:44] @ jodok joined channel #puppet | ||
| [2011/11/17 11:16:45] @ Quit: jodok: Changing host | ||
| [2011/11/17 11:16:45] @ jodok joined channel #puppet | ||
| [2011/11/17 11:16:56] <mrwacky42> oh, yeah, that. any $variable | ||
| [2011/11/17 11:17:08] <illsci> what's get_var for then? | ||
| [2011/11/17 11:17:20] <illsci> just a function to get a $variable? | ||
| [2011/11/17 11:18:14] @ pugnacity joined channel #puppet | ||
| [2011/11/17 11:18:16] <illsci> Can I render variables I define in params.pp for instance ? like $module::params::myvalue? | ||
| [2011/11/17 11:18:41] @ chewie71 joined channel #puppet | ||
| [2011/11/17 11:18:49] @ Quit: MattTheRat: Changing host | ||
| [2011/11/17 11:18:49] @ MattTheRat joined channel #puppet | ||
| [2011/11/17 11:19:00] @ Elwell joined channel #puppet | ||
| [2011/11/17 11:19:14] @ tilgovi joined channel #puppet | ||
| [2011/11/17 11:19:15] @ Quit: tilgovi: Changing host | ||
| [2011/11/17 11:19:15] @ tilgovi joined channel #puppet | ||
| [2011/11/17 11:19:35] @ Quit: natewalck: Quit: Outta here | ||
| [2011/11/17 11:19:49] @ bipolar joined channel #puppet | ||
| [2011/11/17 11:21:13] <illsci> what's the scoping for variables and templates... | ||
| [2011/11/17 11:21:30] <illsci> like if I have $somevar defined all over the place which one ends up in a template | ||
| [2011/11/17 11:21:58] <the_ramink> illsci: example here of what it looks like in a template, https://github.com/rkhatibi/rdk-puppet-modules/blob/master/mysql/templates/innodb_mysql.cnf.erb | ||
| [2011/11/17 11:22:31] @ Quit: sp33t: Remote host closed the connection | ||
| [2011/11/17 11:22:36] <chewie71> New to puppet and I'm trying to get the order right. When this currently runs from my nodes.pp (http://pastie.org/2879429), it does the puppet steps first. I'd like it to somehow require that the "core_packages" is done before it starts to run the "puppet" steps. Is there a way to set up that order? | ||
| [2011/11/17 11:23:34] <illsci> so the you can look up variables defined in puppet the same way you lookup facts | ||
| [2011/11/17 11:23:53] <torrancew> chewie71: look in to run stages, perhaps | ||
| [2011/11/17 11:23:54] @ doprdele joined channel #puppet | ||
| [2011/11/17 11:24:07] <torrancew> there are a few ways of doing it, but that one sounds like the best fit based on that paste+description | ||
| [2011/11/17 11:25:13] <illsci> so what defines scope... | ||
| [2011/11/17 11:25:26] @ p3rror joined channel #puppet | ||
| [2011/11/17 11:25:28] <illsci> the module or the resource you declare the template at | ||
| [2011/11/17 11:26:07] <illsci> I'm reading... http://docs.puppetlabs.com/guides/templating.html | ||
| [2011/11/17 11:28:32] @ tdb joined channel #puppet | ||
| [2011/11/17 11:28:40] @ Quit: negronjl: Ping timeout: 240 seconds | ||
| [2011/11/17 11:29:40] @ sp33t joined channel #puppet | ||
| [2011/11/17 11:30:04] <the_ramink> chewie71: I'd simply your structure. http://pastie.org/2879470 doing multiple inherits is a good way to make things confusing. Puppet knows what OS your servers are, let it do the work rather than hardcoding it at every level. | ||
| [2011/11/17 11:30:24] @ trickyf left channel #puppet () | ||
| [2011/11/17 11:31:40] @ miche joined channel #puppet | ||
| [2011/11/17 11:32:39] @ negronjl joined channel #puppet | ||
| [2011/11/17 11:33:00] @ lilmatt joined channel #puppet | ||
| [2011/11/17 11:33:22] <chewie71> the_ramink: Cool....so in your example...when it looks up the core_packages class, it knows to add the $operatingsystem value to find the right file to import? | ||
| [2011/11/17 11:33:53] @ Alienswede left channel #puppet ("WeeChat 0.3.5") | ||
| [2011/11/17 11:34:10] @ bmahe joined channel #puppet | ||
| [2011/11/17 11:34:10] @ Quit: bmahe: Changing host | ||
| [2011/11/17 11:34:10] @ bmahe joined channel #puppet | ||
| [2011/11/17 11:37:28] <the_ramink> chewie71: ideally core_packages has a bit of logic in it. You could do include core_package::$::operatingsystem from with your core_packages init.pp or handle it via case statements. | ||
| [2011/11/17 11:37:58] @ jaschal joined channel #puppet | ||
| [2011/11/17 11:38:51] <chewie71> the_ramink: ok thanks.....I'll experiment with that a little.... | ||
| [2011/11/17 11:40:16] <chewie71> the_ramink: what exactly does "$::operatingsystem" mean? What value does the $:: represent? | ||
| [2011/11/17 11:41:03] @ Quit: adimania: Ping timeout: 252 seconds | ||
| [2011/11/17 11:41:03] <illsci> top scope | ||
| [2011/11/17 11:41:14] <illsci> I think... | ||
| [2011/11/17 11:42:22] @ salli47 joined channel #puppet | ||
| [2011/11/17 11:44:51] @ hooper joined channel #puppet | ||
| [2011/11/17 11:45:03] <salli47> get list! | ||
| [2011/11/17 11:45:19] @ salli47 left channel #puppet () | ||
| [2011/11/17 11:45:26] <nate_h> can someone help me with understanding how to implement purge in a custom type? | ||
| [2011/11/17 11:46:45] <walkeran> nate_h: Sure... in fact, somewhere, I have a pastie for that already :) | ||
| [2011/11/17 11:46:54] <nate_h> sweet :) | ||
| [2011/11/17 11:47:04] <nate_h> i found an existing type for sysctl | ||
| [2011/11/17 11:47:08] <nate_h> but its kind of lame because it doesn't have purge | ||
| [2011/11/17 11:47:13] <nate_h> so i wanted to add it :) | ||
| [2011/11/17 11:47:18] <walkeran> nate_h: Actually, I should clarify... I have a definition that does that, but it's not a custom type | ||
| [2011/11/17 11:47:26] <nate_h> hmmm | ||
| [2011/11/17 11:47:30] <nate_h> ya it needs to be a type | ||
| [2011/11/17 11:47:36] <nate_h> so it doesn't try and run everytime | ||
| [2011/11/17 11:47:36] <walkeran> nate_h: Ok... nevermind, then :D | ||
| [2011/11/17 11:47:43] <nate_h> but i'd like to see what you have too | ||
| [2011/11/17 11:47:46] <walkeran> ok | ||
| [2011/11/17 11:47:53] <the_ramink> chewie71: top scope as illsci said. You'll need to start using that for all facts in Puppet 2.8 so it's a good habit to start doing it now. Also if you use puppet-lint it'll tell you where you need to do it. | ||
| [2011/11/17 11:48:07] @ Quit: cjz: Ping timeout: 258 seconds | ||
| [2011/11/17 11:48:43] <walkeran> nate_h: http://pastie.org/2867388 It just abstracts a file resource, and uses a blank directory I have in on my puppetmaster | ||
| [2011/11/17 11:49:58] <chewie71> the_ramink: tks....I'll do some more experimenting and see how it goes....just started reading the docs about "parameterized classes" as well which I think is pertinent | ||
| [2011/11/17 11:51:12] @ Quit: negronjl: Ping timeout: 248 seconds | ||
| [2011/11/17 11:52:35] @ Quit: alfism: Quit: alfism | ||
| [2011/11/17 11:53:22] @ bman1 joined channel #puppet | ||
| [2011/11/17 11:53:59] <bman1> what can i do to get this in one line via facter ?? %x{/bin/cat /etc/redhat-release|/bin/egrep -i -o "\([a-z]\w*\)"|/bin/sed -e 's/(//g' -e 's/)//g'|tr '[:upper:]' '[:lower:]'}.chomp | ||
| [2011/11/17 11:54:13] <nate_h> learn ruby? | ||
| [2011/11/17 11:54:21] <bman1> lol NICE! | ||
| [2011/11/17 11:54:23] <bman1> true | ||
| [2011/11/17 11:54:24] <nate_h> ;) | ||
| [2011/11/17 11:54:26] @ negronjl joined channel #puppet | ||
| [2011/11/17 11:54:28] @ Quit: BManojlovic: Read error: Connection reset by peer | ||
| [2011/11/17 11:54:48] <bman1> how would i do it in something shorter in ruby then? | ||
| [2011/11/17 11:54:51] @ cjz joined channel #puppet | ||
| [2011/11/17 11:54:53] <nate_h> redhat release isn't a fact alraedy? | ||
| [2011/11/17 11:54:56] <eric0> what on earth are you trying to do ? | ||
| [2011/11/17 11:55:24] <bman1> trying to pull out for example tikanga from the release file | ||
| [2011/11/17 11:55:28] @ ghanima joined channel #puppet | ||
| [2011/11/17 11:55:34] @ Transformer joined channel #puppet | ||
| [2011/11/17 11:55:48] <Volcane> install lsb, get the fact for free | ||
| [2011/11/17 11:55:59] <nate_h> ya, i was gonna say, i'm sure someone has that fact already :P | ||
| [2011/11/17 11:56:03] <bman1> hmmm | ||
| [2011/11/17 11:56:09] <bman1> k thanks Volcane | ||
| [2011/11/17 11:56:25] <bman1> how went puppetcamp this year? any others comming up soon? | ||
| [2011/11/17 11:56:59] <schvin> b/win 2 | ||
| [2011/11/17 11:57:03] <schvin> oops, wrong window | ||
| [2011/11/17 11:57:20] @ Quit: Transformer: Excess Flood | ||
| [2011/11/17 11:57:33] <ghanima> hey guys | ||
| [2011/11/17 11:57:36] <ghanima> with augeus | ||
| [2011/11/17 11:57:46] <ghanima> how do you allow the augtool to look outside of /etc | ||
| [2011/11/17 11:58:07] @ Quit: ryancoleman: Quit: Leaving. | ||
| [2011/11/17 11:58:19] @ vachon joined channel #puppet | ||
| [2011/11/17 11:58:25] @ Quit: mrwacky42: Ping timeout: 255 seconds | ||
| [2011/11/17 11:59:47] <vachon> get all, im getting a weird phantom. I imaged machines to a new amazon AMI, and when i brough up a new cluster some where (not sure where) puppet is holding onto both the old and new dns snames. I have checked this by looking at the yaml/nodes directory on the master. Is there any way to figure out what node this is coming from? | ||
| [2011/11/17 12:01:03] <vachon> its only in the puppet client or server, nothing else is seeing a reverse lookup confusion or the old name | ||
| [2011/11/17 12:01:28] @ Quit: mcarpent: Ping timeout: 240 seconds | ||
| [2011/11/17 12:03:09] @ Quit: pugnacity: Ping timeout: 244 seconds | ||
| [2011/11/17 12:04:19] @ mrwacky42 joined channel #puppet | ||
| [2011/11/17 12:04:24] @ Quit: labrown: Quit: Leaving | ||
| [2011/11/17 12:05:58] <bman1> vachon turn off dns cache | ||
| [2011/11/17 12:06:08] @ Quit: larstobi: Ping timeout: 258 seconds | ||
| [2011/11/17 12:06:27] <vachon> we have no nscd and this is ongoing for a while | ||
| [2011/11/17 12:06:36] <bman1> oh hmm odd | ||
| [2011/11/17 12:07:07] @ pugnacity joined channel #puppet | ||
| [2011/11/17 12:08:27] @ Quit: lak: Quit: Leaving. | ||
| [2011/11/17 12:10:12] @ Quit: tilgovi: Ping timeout: 252 seconds | ||
| [2011/11/17 12:10:51] @ larstobi joined channel #puppet | ||
| [2011/11/17 12:13:04] @ natewalck joined channel #puppet | ||
| [2011/11/17 12:14:05] @ Beast joined channel #puppet | ||
| [2011/11/17 12:17:09] @ mcarpent joined channel #puppet | ||
| [2011/11/17 12:17:40] @ dekae joined channel #puppet | ||
| [2011/11/17 12:20:25] <Diranged> im working on implementing the s3sign.rb/s3get stuff in puppet.. it requires that s3sign.rb be run essentially on the puppet server to generate a signed s3 url.. | ||
| [2011/11/17 12:20:28] @ Quit: trapni: Ping timeout: 255 seconds | ||
| [2011/11/17 12:20:34] <Diranged> i have the files in the right place, I think.. but its not actually working | ||
| [2011/11/17 12:22:49] @ skm joined channel #puppet | ||
| [2011/11/17 12:23:21] @ Quit: gniks: Quit: Leaving. | ||
| [2011/11/17 12:24:26] <Diranged> http://pastie.org/2879732 | ||
| [2011/11/17 12:25:23] @ Quit: anveo: Quit: Bye bye | ||
| [2011/11/17 12:26:50] <Harzilein> hmm | ||
| [2011/11/17 12:27:27] <Harzilein> are there any puppet modules that configure services external to the node? a bit like the ldap provider. | ||
| [2011/11/17 12:28:00] @ zahna joined channel #puppet | ||
| [2011/11/17 12:28:10] <zahna> hey, does puppet support pear (php) packages? | ||
| [2011/11/17 12:29:43] @ Quit: sdog: Remote host closed the connection | ||
| [2011/11/17 12:30:28] <zahna> or are 3rd party providers still the only way? | ||
| [2011/11/17 12:32:02] <jaschal> Does anyone know what controls what directory "puppet-module install" installs into? If I run puppet-module install puppetlabs-mcollective.tar.gz, sometimes it installs it into puppetlabs-mcollective and sometimes into plain mcollective | ||
| [2011/11/17 12:32:15] @ _plg_ joined channel #puppet | ||
| [2011/11/17 12:32:20] <jaschal> same for puppetlabs-stdlib | ||
| [2011/11/17 12:32:20] @ Quit: _plg_: Client Quit | ||
| [2011/11/17 12:32:50] @ vachon left channel #puppet ("Leaving") | ||
| [2011/11/17 12:33:04] @ Quit: ghg: Quit: Computer has gone to sleep. | ||
| [2011/11/17 12:34:33] @ Quit: _plg: Ping timeout: 244 seconds | ||
| [2011/11/17 12:35:06] @ ciupicri is now known as ciupicri|away | ||
| [2011/11/17 12:36:09] @ conntrack left channel #puppet () | ||
| [2011/11/17 12:38:27] @ fredden joined channel #puppet | ||
| [2011/11/17 12:38:29] @ Quit: fredden: Remote host closed the connection | ||
| [2011/11/17 12:44:13] @ SQLDarkly joined channel #puppet | ||
| [2011/11/17 12:44:18] @ maes_` joined channel #puppet | ||
| [2011/11/17 12:44:44] @ bobbyz joined channel #puppet | ||
| [2011/11/17 12:45:07] @ trapni joined channel #puppet | ||
| [2011/11/17 12:46:15] <SQLDarkly> Hey Guys. I have upgraded to 2.7.6. With that comes deprecation warnings in relation to variable scoping. I have a question regarding that, I have variables I use in my node definitions, like $firewall = yes, and a variety of others. What would be the scope for those variables in my node definition file, so that I may use them in a module/class. | ||
| [2011/11/17 12:46:30] @ Quit: maes_: Ping timeout: 252 seconds | ||
| [2011/11/17 12:47:52] <zahna> SQLDarkly: I think those variables are written like $::firewall | ||
| [2011/11/17 12:47:54] @ fredden joined channel #puppet | ||
| [2011/11/17 12:47:56] @ Quit: fredden: Remote host closed the connection | ||
| [2011/11/17 12:48:19] <zahna> since they aren't in any namespace | ||
| [2011/11/17 12:48:30] <SQLDarkly> zahna: I appreciate the input. Ill give her a shot :) | ||
| [2011/11/17 12:48:36] @ ghg joined channel #puppet | ||
| [2011/11/17 12:49:23] @ Quit: brtl1: Quit: Leaving. | ||
| [2011/11/17 12:50:43] @ trek1s joined channel #puppet | ||
| [2011/11/17 12:52:22] @ Quit: joe-mac: Remote host closed the connection | ||
| [2011/11/17 12:52:32] @ Quit: mcarpent: Ping timeout: 252 seconds | ||
| [2011/11/17 12:54:52] @ Quit: natewalck: Quit: Outta here | ||
| [2011/11/17 12:58:56] <samc> A question for you fine folks (and this may be more a ruby question than puppet I guess, but bear with me). I'm trying to write a couple of functions to stick in my modules, but I'm having some trouble passing variables around between functions. | ||
| [2011/11/17 12:59:10] <samc> Here's a pretty simple example - passing a string from one function to a second, then returning it - http://pastebin.com/D9fpA6tp | ||
| [2011/11/17 12:59:23] @ Quit: newtMcKerr: Quit: Leaving. | ||
| [2011/11/17 12:59:36] <samc> as you can see, if I call 'functwo' it returns the string as I would have expected, but if I call funcone (which in turn passes the string to functwo) I just get a number | ||
| [2011/11/17 12:59:59] <samc> Is that a pointer or something that I need to dereference somehow? I've never tried ruby before, so I'm really just feeling it all out as I go | ||
| [2011/11/17 13:01:28] @ newtMcKerr joined channel #puppet | ||
| [2011/11/17 13:01:43] @ Quit: mrwacky42: Quit: Leaving. | ||
| [2011/11/17 13:02:29] @ Quit: nachox: Quit: Saliendo | ||
| [2011/11/17 13:02:40] <chewie71> Trying to use the parameterized classes example here (http://docs.puppetlabs.com/guides/parameterized_classes.html#appendix-smart-parameter-defaults) in my puppet modules. I get an error though when I try to run it. It doesn't like the "inherits" line in the init.pp file. http://pastie.org/2879941 | ||
| [2011/11/17 13:02:56] @ mcarpent joined channel #puppet | ||
| [2011/11/17 13:03:49] @ Quit: newtMcKerr: Client Quit | ||
| [2011/11/17 13:05:21] @ rmckee joined channel #puppet | ||
| [2011/11/17 13:07:12] @ BManojlovic joined channel #puppet | ||
| [2011/11/17 13:07:13] @ Quit: BManojlovic: Changing host | ||
| [2011/11/17 13:07:13] @ BManojlovic joined channel #puppet | ||
| [2011/11/17 13:07:42] @ lak joined channel #puppet | ||
| [2011/11/17 13:07:43] @ Quit: lak: Changing host | ||
| [2011/11/17 13:07:43] @ lak joined channel #puppet | ||
| [2011/11/17 13:08:33] @ Quit: lak: Client Quit | ||
| [2011/11/17 13:09:10] @ Quit: the_ramink: Ping timeout: 244 seconds | ||
| [2011/11/17 13:09:33] @ Quit: mitchellh: Quit: Computer has gone to sleep | ||
| [2011/11/17 13:13:02] @ Quit: BManojlovic: Remote host closed the connection | ||
| [2011/11/17 13:13:44] @ Holocaine joined channel #puppet | ||
| [2011/11/17 13:13:57] @ mfridh joined channel #puppet | ||
| [2011/11/17 13:14:16] @ the_ramink joined channel #puppet | ||
| [2011/11/17 13:14:24] @ BManojlovic joined channel #puppet | ||
| [2011/11/17 13:14:25] @ Quit: BManojlovic: Changing host | ||
| [2011/11/17 13:14:25] @ BManojlovic joined channel #puppet | ||
| [2011/11/17 13:14:50] @ Quit: ghg: Quit: Computer has gone to sleep. | ||
| [2011/11/17 13:15:04] @ Quit: doprdele: Ping timeout: 240 seconds | ||
| [2011/11/17 13:19:24] @ ghg joined channel #puppet | ||
| [2011/11/17 13:21:23] <magicaltrout> so no way to tell puppet to ignore the fact that a file's source doesn't exist until after an exec is run then? | ||
| [2011/11/17 13:23:08] @ doprdele joined channel #puppet | ||
| [2011/11/17 13:25:20] @ mitchellh joined channel #puppet | ||
| [2011/11/17 13:25:40] <Dominic> chewie71: there shouldn't be a $ in front of webserver::params in the inherit line AFAIK | ||
| [2011/11/17 13:26:46] @ Quit: MartVisser: Quit: This computer has gone to sleep | ||
| [2011/11/17 13:28:33] <jbaldridge> hmm... So whats the hottness for initially provisioning debianlike systms these days? I'm using some static preseed files right now, thinking about looking at fai or cobbler. | ||
| [2011/11/17 13:29:24] <torrancew> jbaldridge: I use good ole' preseed, or foreman | ||
| [2011/11/17 13:29:53] @ samkottler joined channel #puppet | ||
| [2011/11/17 13:30:45] <jbaldridge> huh... I wasn't aware that foreman did provisioning. | ||
| [2011/11/17 13:31:24] @ kangman_ joined channel #puppet | ||
| [2011/11/17 13:31:38] <torrancew> sure does :) | ||
| [2011/11/17 13:31:40] <torrancew> theforeman.org | ||
| [2011/11/17 13:31:42] <peridot> Does anyone know...if I want this feature from foreman ( http://theforeman.org/issues/402 ), do I need to use an unstable version? | ||
| [2011/11/17 13:31:56] @ Quit: jedi4ever: Quit: jedi4ever | ||
| [2011/11/17 13:32:19] <torrancew> peridot: given that the last comment where someone mentions actually having the feature was 5 hours ago, probably | ||
| [2011/11/17 13:32:50] <peridot> It's funny, I've been trying to work around this problem for the last week. :P | ||
| [2011/11/17 13:33:17] <torrancew> peridot: a warning: noop won't tell you everything | ||
| [2011/11/17 13:33:23] <torrancew> especially if you use execs heavily | ||
| [2011/11/17 13:33:47] <peridot> Other than execs, what might it not tell you? | ||
| [2011/11/17 13:34:22] @ Djelibeybi joined channel #puppet | ||
| [2011/11/17 13:34:29] @ Quit: kangman: Ping timeout: 244 seconds | ||
| [2011/11/17 13:34:29] @ tilgovi joined channel #puppet | ||
| [2011/11/17 13:35:21] @ Quit: trek1s: Quit: Lost terminal | ||
| [2011/11/17 13:35:23] <torrancew> peridot: non-syntactical failures | ||
| [2011/11/17 13:35:48] <torrancew> ie if for some reason something has good syntax, but doesn't actually execute (generally environmental, etc) | ||
| [2011/11/17 13:35:48] <jbaldridge> torrancew: Thanks, I'll have to look at foreman a bit more closely. I kind of dismissed it when I started messing with puppet dashboard. | ||
| [2011/11/17 13:36:11] <torrancew> jbaldridge: You really should. I'm quite fond of it, and teh 0.4 release looks much more elegant | ||
| [2011/11/17 13:36:20] <Elwell> jbaldridge: #foreman on this network | ||
| [2011/11/17 13:36:26] @ pll joined channel #puppet | ||
| [2011/11/17 13:36:27] <torrancew> ^^^ | ||
| [2011/11/17 13:36:34] <Elwell> err #theforeman | ||
| [2011/11/17 13:36:37] <peridot> torrancew: OK, thanks. I generally only have file and package in my noop environment. | ||
| [2011/11/17 13:36:59] @ Quit: doprdele: Ping timeout: 252 seconds | ||
| [2011/11/17 13:37:04] @ Quit: toi: Ping timeout: 244 seconds | ||
| [2011/11/17 13:37:15] <pll> Hi folks, I'm having trouble getting puppet w/ passenger working on CentOS 6. | ||
| [2011/11/17 13:37:21] @ Kazuhiro left channel #puppet () | ||
| [2011/11/17 13:37:27] <pll> When I test out the client against WEBRick, it works fine. | ||
| [2011/11/17 13:37:34] @ Quit: skm: Quit: Leaving... | ||
| [2011/11/17 13:37:37] <pll> Against Passenger it's complaingin about 'err: Could not send report: Error 405 on SERVER' | ||
| [2011/11/17 13:38:22] <pll> under Apache/Passenger, the client is attetmpting to write to $DocumentRoot/rack/puppetmasterd/public/production/catalog | ||
| [2011/11/17 13:38:41] <pll> Any idea where to look for this one ? | ||
| [2011/11/17 13:39:08] <pll> The client is getting: 405 Method Not Allowed | ||
| [2011/11/17 13:39:18] <pll> Which appears to be the server disallowing a PUT. | ||
| [2011/11/17 13:39:22] <peridot> /usr/share/puppet/ would be $DocumentRoot probably | ||
| [2011/11/17 13:39:31] <nfagerlund> pll: I don't, but your name looks familiar -- were you saying the other day that you found some errata in the docs? | ||
| [2011/11/17 13:39:38] <pll> Yes, that's what's defined in my puppetmasterd.conf | ||
| [2011/11/17 13:40:01] <pll> nfagerlund: Oh, there's a broken link on the puppetlabs site. | ||
| [2011/11/17 13:40:15] <nfagerlund> pll: I'll fix it. Where's it at? | ||
| [2011/11/17 13:40:23] <pll> hold on, let me find it again | ||
| [2011/11/17 13:40:37] @ skm joined channel #puppet | ||
| [2011/11/17 13:41:28] <pll> This is the broken link: http://docs.puppetlabs.com/guides/guides/setting_up.html | ||
| [2011/11/17 13:41:37] <pll> trying to find the offending page in my history | ||
| [2011/11/17 13:41:58] @ Quit: illsci: Ping timeout: 258 seconds | ||
| [2011/11/17 13:42:02] <pll> http://docs.puppetlabs.com/guides/configuring.html | ||
| [2011/11/17 13:42:16] @ kolla joined channel #puppet | ||
| [2011/11/17 13:42:21] <pll> That page, all the way at the bottom under the header Setting Up Puppet | ||
| [2011/11/17 13:42:30] <pll> The link contains a guides/guides | ||
| [2011/11/17 13:42:33] <pll> just need the one :) | ||
| [2011/11/17 13:43:24] <peridot> pll: This is how I set it up on rhel: http://www.pastie.org/2880129 | ||
| [2011/11/17 13:45:50] <pll> peridot: Thanks. I don't see any signficant difference between what you have and what I have. | ||
| [2011/11/17 13:46:14] @ Quit: bosszaru: Ping timeout: 240 seconds | ||
| [2011/11/17 13:46:25] <pll> The client continually gets: err: Could not retrieve catalog; skipping run | ||
| [2011/11/17 13:46:30] <pll> err: Could not send report: Error 405 on SERVER: | ||
| [2011/11/17 13:47:15] @ Razique joined channel #puppet | ||
| [2011/11/17 13:48:10] @ Razique_ joined channel #puppet | ||
| [2011/11/17 13:48:11] @ Quit: Razique: Read error: Connection reset by peer | ||
| [2011/11/17 13:48:11] @ Razique_ is now known as Razique | ||
| [2011/11/17 13:48:19] @ Quit: Asako: Quit: Client exiting | ||
| [2011/11/17 13:49:16] <pll> Wow. I was missing the 'RackBaseURI /' line and the seems to have generated all sorts of different output. | ||
| [2011/11/17 13:49:19] @ Quit: Razique: Remote host closed the connection | ||
| [2011/11/17 13:49:59] @ Razique joined channel #puppet | ||
| [2011/11/17 13:52:28] @ indigo joined channel #puppet | ||
| [2011/11/17 13:52:46] <indigo> cd .. | ||
| [2011/11/17 13:52:51] <pll> Hmm, adding 'RackBaseURI /' seems to have somehow broken everything. | ||
| [2011/11/17 13:53:08] <pll> It can no longer find the config.ru. | ||
| [2011/11/17 13:53:18] @ mpdude joined channel #puppet | ||
| [2011/11/17 13:53:24] <peridot> try putting config.ru one directory up | ||
| [2011/11/17 13:53:36] <peridot> I recall having to do that, but forgetting to put it in my doc. | ||
| [2011/11/17 13:53:38] <indigo> er, whoops. Is there a way through storeconfigs maybe to go from all the nodes that have included some class to a comma delimited string of those hostnames? I'm trying to define hostgroups in nagios based on the puppet configuration. | ||
| [2011/11/17 13:54:39] @ mmoya joined channel #puppet | ||
| [2011/11/17 13:54:59] <indigo> or, maybe i can have classes that monitor things append to some array, then concat that array with a comma delimiter, and export that somehow? Is that possible? | ||
| [2011/11/17 13:56:15] <indigo> i see there's a split() function, but not a join(). Am I missing it? | ||
| [2011/11/17 13:57:17] @ Quit: pmcarthur: Quit: pmcarthur | ||
| [2011/11/17 13:58:13] <torrancew> indigo: You probably want exported resources, which utilize the same db as storeconfigs | ||
| [2011/11/17 13:58:36] <SQLDarkly> When running ruby in debug mode i see : /resource.rb:161: warning: instance variable @environment not initialized. Is this because im using environment in puppet.conf? | ||
| [2011/11/17 13:58:54] <SQLDarkly> Should I assign nil to it? | ||
| [2011/11/17 13:59:35] @ jongrocho joined channel #puppet | ||
| [2011/11/17 14:02:16] @ Quit: uphillian: Quit: Leaving. | ||
| [2011/11/17 14:02:32] @ Quit: kelseyhightower: Ping timeout: 245 seconds | ||
| [2011/11/17 14:04:17] <indigo> torrancew: that's how i'm doing it now. The problem is what I really want to export isn't a resource, but somehow I want to arrive at an array that has the hostnames of all the other nodes that have included some class. | ||
| [2011/11/17 14:05:15] <Atwa1337> Can you pass passwords to system accounts for User type, on linux using useradd? | ||
| [2011/11/17 14:05:47] <torrancew> Atwa1337: you can pass pw hashes | ||
| [2011/11/17 14:05:49] <indigo> torrancew: the issue is that I end up with the same service description for each node that say, includes apache. Nagios allows me to describe the service one time and apply it to mulitple hosts, but I can't think of an elegant way to get a list of other nodes that included apache into a variable on the nagios monitoring machine to generate the config like that. | ||
| [2011/11/17 14:06:13] <motomike> indigo: for full access to string functions, I've used inline_template("<%= [your full-fledged Ruby expression here] %>") | ||
| [2011/11/17 14:07:52] @ Quit: jorhett: Ping timeout: 240 seconds | ||
| [2011/11/17 14:07:56] <indigo> good idea | ||
| [2011/11/17 14:08:18] <indigo> hate to run but workday is over. thanks for the help! | ||
| [2011/11/17 14:08:20] @ Quit: indigo: Quit: leaving | ||
| [2011/11/17 14:08:32] <Atwa1337> so openssl passwd -1 is accepted,using teh crypt utility? | ||
| [2011/11/17 14:10:16] @ Quit: brandon_dacrib: Quit: brandon_dacrib | ||
| [2011/11/17 14:10:22] @ bosszaru joined channel #puppet | ||
| [2011/11/17 14:11:15] <torrancew> Atwa1337: A standard unix hash will work. Not used openssl passwd -1 before though | ||
| [2011/11/17 14:11:36] @ Quit: motomike: Remote host closed the connection | ||
| [2011/11/17 14:11:59] @ dgillies joined channel #puppet | ||
| [2011/11/17 14:12:01] <Atwa1337> I will try it and let you know. Just wanted to try to stick with our current scheme. | ||
| [2011/11/17 14:12:42] @ Quit: chewie71: Ping timeout: 265 seconds | ||
| [2011/11/17 14:12:55] @ motomike joined channel #puppet | ||
| [2011/11/17 14:13:11] @ Quit: SQLDarkly: Ping timeout: 265 seconds | ||
| [2011/11/17 14:13:27] @ Quit: mcarpent: Quit: Thanks for the fish. | ||
| [2011/11/17 14:13:38] @ jorhett joined channel #puppet | ||
| [2011/11/17 14:16:12] <jaschal> a ha! figured it out. puppet-module version 0.3.3 installs into puppetlabs-mcollective but 0.3.4 installs into plain mcollective | ||
| [2011/11/17 14:17:28] @ Quit: schlem: Quit: schlem | ||
| [2011/11/17 14:17:50] @ Quit: xeor: Read error: Connection reset by peer | ||
| [2011/11/17 14:18:22] @ xeor joined channel #puppet | ||
| [2011/11/17 14:19:21] <Atwa1337> torrancew: It accepted the password generated via `openssl passwd -1` | ||
| [2011/11/17 14:19:48] <torrancew> :) glad to hear it | ||
| [2011/11/17 14:20:04] @ Quit: marrusl: Quit: Ex-Chat | ||
| [2011/11/17 14:20:41] @ Quit: rsnhyperion: Read error: Operation timed out | ||
| [2011/11/17 14:21:57] @ Quit: sduchesneau: Remote host closed the connection | ||
| [2011/11/17 14:24:37] @ Quit: blentz: Read error: Operation timed out | ||
| [2011/11/17 14:25:03] @ gniks joined channel #puppet | ||
| [2011/11/17 14:25:15] @ Quit: benjiedmund: Remote host closed the connection | ||
| [2011/11/17 14:26:52] <peridot> $#%@ rpm dependencies | ||
| [2011/11/17 14:27:26] @ Quit: BManojlovic: Remote host closed the connection | ||
| [2011/11/17 14:28:11] @ kelseyhightower joined channel #puppet | ||
| [2011/11/17 14:28:59] <LoRez> can I easily send a different file based on a usb device id? | ||
| [2011/11/17 14:29:15] <Dominic> LoRez: create a fact that returns the device ID, then yes | ||
| [2011/11/17 14:29:37] @ BManojlovic joined channel #puppet | ||
| [2011/11/17 14:29:42] @ erodriguez joined channel #puppet | ||
| [2011/11/17 14:29:47] <pll> Yay! | ||
| [2011/11/17 14:30:04] <pll> Permissions problems down /var/lib/puppet | ||
| [2011/11/17 14:30:10] @ Quit: hostdream: | ||
| [2011/11/17 14:30:16] @ alfism joined channel #puppet | ||
| [2011/11/17 14:30:21] <pll> Evidently, these dirs get created with owner/group puppet, not apache. | ||
| [2011/11/17 14:32:43] <the_ramink> pll: I find is easier to have a Passenger driver Puppetmaster run in it's own directory by setting a path to a config in config.ru ARGV << "--config=/home/someuser/puppet/puppet.conf" | ||
| [2011/11/17 14:32:56] @ Quit: ldlework: Read error: Operation timed out | ||
| [2011/11/17 14:33:32] <pll> the_ramink: I'm not entirely sure what that means. | ||
| [2011/11/17 14:33:35] @ astrostl joined channel #puppet | ||
| [2011/11/17 14:34:04] <astrostl> is 'certname' in puppet.conf the preferred method of using puppet on a private network on a multi-interface box with a public ip and hostname? | ||
| [2011/11/17 14:34:05] <pll> Are you saying all the puppet config is down /home/someuser/puppet instead of down /etc/puppet ? | ||
| [2011/11/17 14:34:27] @ chequers joined channel #puppet | ||
| [2011/11/17 14:34:51] <the_ramink> pll: your puppet client users /var/lib/puppet for it's files and what not. Your puppetmaster uses the same set of directories unless you tell it otherwise. Additioanlly your puppetmaster doesn't need to run as root. | ||
| [2011/11/17 14:34:52] @ joe-mac joined channel #puppet | ||
| [2011/11/17 14:35:07] <the_ramink> passenger applications run as the user that owns the config.ru IIRC. | ||
| [2011/11/17 14:35:15] <pll> Oh. | ||
| [2011/11/17 14:35:42] <the_ramink> what I do is point config.ru to a seperate puppet.conf and tell it to use /home/puppetuser/puppet/var/ etc etc | ||
| [2011/11/17 14:35:52] <pll> I see. | ||
| [2011/11/17 14:36:09] <pll> Perhaps I'll go that route once I better understand how all this stuff is connected. | ||
| [2011/11/17 14:36:17] <the_ramink> this way you have seperation and your have less directory permission issues and cert problems | ||
| [2011/11/17 14:36:25] <pll> despite having written lots of puppet code, I've never set it up before. | ||
| [2011/11/17 14:36:38] <pll> that makes a lot of sense | ||
| [2011/11/17 14:36:45] @ chewie71 joined channel #puppet | ||
| [2011/11/17 14:36:47] <the_ramink> pll: it's pretty easy ine you wrap your head around how Rack/Passenger/Puppet work together. | ||
| [2011/11/17 14:36:48] @ emergion joined channel #puppet | ||
| [2011/11/17 14:36:58] <chewie71> I want to install package X of version 1.2.2 and no later. In the repo there may be 1.2.2_02, 1.2.2_03, 1.2.3_01, etc.... I want to ensure I only get the latest 1.2.2 version. If I use 'ensure => "1.2.2"', puppet complains that it got version 1.2.2_02 instead....which is fine but I just want to quiet the complaint. How can I tell the ensure line that any 1.2.2_X version is ok? | ||
| [2011/11/17 14:39:20] @ lak joined channel #puppet | ||
| [2011/11/17 14:39:21] @ Quit: lak: Changing host | ||
| [2011/11/17 14:39:21] @ lak joined channel #puppet | ||
| [2011/11/17 14:39:38] <MattTheRat> is there an equivalent of ensure => absent, for an exec? | ||
| [2011/11/17 14:40:20] <MattTheRat> my understanding of creates and unless is that they only work with information on the client | ||
| [2011/11/17 14:40:52] <astrostl> MattTheRat: what are you trying to specifically do? | ||
| [2011/11/17 14:41:20] <MattTheRat> I have a variable $ensure and I'm setting it to true but the exec runs anyway | ||
| [2011/11/17 14:41:27] <MattTheRat> s/true/absent/ | ||
| [2011/11/17 14:41:44] <astrostl> i still don't understand what you are trying to do | ||
| [2011/11/17 14:42:23] <chewie71> actually what I'm trying to do is "ensure" that I don't install a puppet client with a version greater than what's running on the puppet master... | ||
| [2011/11/17 14:42:33] <MattTheRat> astrostl: http://pastebin.com/zbM3e6m5 | ||
| [2011/11/17 14:42:59] <MattTheRat> if I use that in a class and want to remove the class from a node, that exec will still be run even though everything else is set to absent | ||
| [2011/11/17 14:42:59] @ flex____ joined channel #puppet | ||
| [2011/11/17 14:43:01] @ schlem joined channel #puppet | ||
| [2011/11/17 14:43:11] @ newtMcKerr joined channel #puppet | ||
| [2011/11/17 14:43:30] <astrostl> chewie71: presuming that package doesn't support such specificity, i would think that your best options would be to patch puppet or use a local repository with ensure latest (and put whatever version you want in it) | ||
| [2011/11/17 14:43:54] <chequers> hi, how do I use a class like this in my own repository? https://github.com/sansnoc/puppet/blob/master/dirvish/manifests/init.pp | ||
| [2011/11/17 14:44:11] <astrostl> MattTheRat: exec always runs unless it has an unless statement, or is refreshonly | ||
| [2011/11/17 14:44:18] <chequers> I guess I have to se thte configuration, and the include dirvish::server. But how do I do the first part? | ||
| [2011/11/17 14:44:18] <MattTheRat> correct | ||
| [2011/11/17 14:44:52] <MattTheRat> my understanding of unless is that I can't do something like unless => $ensure = absent | ||
| [2011/11/17 14:44:52] <astrostl> MattTheRat: i suggest making it refreshonly and issuing a notify from an earlier section, so that it runs when (and only when) that section runs. execing out to a cp is far less preferred than packages, though, or even tarballs. | ||
| [2011/11/17 14:45:04] @ Quit: jsurfer: Ping timeout: 248 seconds | ||
| [2011/11/17 14:45:09] <astrostl> unless runs a command | ||
| [2011/11/17 14:45:17] <chewie71> astrostl: hmmm....ok....right now I'm using the puppetlabs REPO...for the time being I can just specify the ensure and it will be fine. Just was thinking it would be nice to use something like "ensure => $puppetmasterpuppetversion" | ||
| [2011/11/17 14:45:27] <MattTheRat> ah, I could use refreshonly | ||
| [2011/11/17 14:45:40] <astrostl> i guess you could make an unless and pass a shell test the puppet variable, but refreshonly should be better | ||
| [2011/11/17 14:45:56] <MattTheRat> and yes, I agree that this copy method is suboptimal but it's better than serving a huge number of files in puppet | ||
| [2011/11/17 14:46:15] @ Quit: jgh773: Quit: Linkinus - http://linkinus.com | ||
| [2011/11/17 14:46:16] <astrostl> chewie71: if this is just to avoid that issue, fwiw, i always use gems for my master. easy to keep it up to date, or higher than the clients: gem update | ||
| [2011/11/17 14:46:45] <astrostl> serve a package in a repo, or a package in puppet, or a tarball in puppet, or even a scm checkout exec | ||
| [2011/11/17 14:46:51] <chewie71> astrostl: ok.... | ||
| [2011/11/17 14:48:03] @ Quit: newtMcKerr: Client Quit | ||
| [2011/11/17 14:48:57] @ Quit: lak: Quit: Leaving. | ||
| [2011/11/17 14:50:49] @ Quit: schlem: Quit: schlem | ||
| [2011/11/17 14:52:31] <astrostl> is 'certname' in puppet.conf the preferred method of using puppet on a private network on a multi-interface box with a public ip and hostname? | ||
| [2011/11/17 14:53:58] <astrostl> public ip: x.x.x.x, public hostname: host.example.com. private ip: 10.0.0.1, private hostname: host.corp.example.com. should i use certname = host.corp.example.com on every client node? | ||
| [2011/11/17 14:54:23] @ Quit: skm: Quit: Computer has gone to sleep. | ||
| [2011/11/17 14:55:29] @ kelseyhi1htower joined channel #puppet | ||
| [2011/11/17 14:57:24] @ Quit: kelseyhightower: Ping timeout: 252 seconds | ||
| [2011/11/17 14:57:53] <kjetilho> astrostl: do you change your nodename ? | ||
| [2011/11/17 14:58:19] <astrostl> i don't know what 'nodename' is | ||
| [2011/11/17 14:58:30] <kjetilho> what "uname -n" returns | ||
| [2011/11/17 14:58:39] <mfridh> doesyour puppet runs report "Loading facts in factermodule1', TWICE for each factermodule? | ||
| [2011/11/17 14:58:53] <kjetilho> mfridh: unfortunately, yes | ||
| [2011/11/17 14:58:58] <mfridh> kjetilho: ok thanks | ||
| [2011/11/17 14:59:05] <astrostl> mfridh: there is a bug for it | ||
| [2011/11/17 14:59:08] <mfridh> guess I just didn't notice before | ||
| [2011/11/17 14:59:21] <astrostl> kjetilho: the hostnames are constant | ||
| [2011/11/17 14:59:39] <astrostl> webserver.example.com = constant public hostname. webserver.corp.example.com = constant private hostname. | ||
| [2011/11/17 14:59:58] <astrostl> by default puppet uses fqdn, which is public, which is what i don't want | ||
| [2011/11/17 15:00:19] <astrostl> i have a public and a private network, and i always want puppet to use the private network | ||
| [2011/11/17 15:00:36] <kjetilho> Puppet uses the nodename if it contains at least one period, AFAIK | ||
| [2011/11/17 15:00:43] <xeor> I need a way to do queries based on different stuff (facts, domains, parameters, class) in my puppet env, like "which nodes have a fact X=yy, Z=aa, have class aa::bb" and so on.. Is there any tools to do queries like this on the puppetmaster? on the yaml store? | ||
| [2011/11/17 15:00:44] <astrostl> with minimal hassle, and 'proper' setup. i'm sure i can hack it with certname, but i'd like to do what the best way is, and i don't see it documented anywhere | ||
| [2011/11/17 15:00:54] <xeor> kinda like a lightweight mcollective | ||
| [2011/11/17 15:01:14] <mfridh> astrostl: My approach is to have the hostname be the private one. Any public hostnames are merely virtual. | ||
| [2011/11/17 15:01:15] <joe-mac> xeor: the rest api can do this | ||
| [2011/11/17 15:01:19] <joe-mac> really easily | ||
| [2011/11/17 15:01:24] <joe-mac> just issue a cert for your app | ||
| [2011/11/17 15:01:28] <joe-mac> then write like a tiny script to do it | ||
| [2011/11/17 15:01:30] <joe-mac> can even be bash | ||
| [2011/11/17 15:01:33] <the_ramink> astrosl: so you you're trying to set certnam = $::hostname.corp.$domain in the puppet.conf to get around the fact that fqdn isn't always that useful? | ||
| [2011/11/17 15:01:37] <kjetilho> if nodename doesn't contain a period, it will look in resolv.conf for the search path. | ||
| [2011/11/17 15:01:38] <joe-mac> wrapped around curl queries | ||
| [2011/11/17 15:01:55] @ Quit: dkr: Read error: Operation timed out | ||
| [2011/11/17 15:02:02] <kjetilho> I'm a strong advocate of letting the nodename be the fqdn you want - explicitly | ||
| [2011/11/17 15:02:13] <xeor> joe-mac: thanks | ||
| [2011/11/17 15:02:17] @ mosen joined channel #puppet | ||
| [2011/11/17 15:02:21] <astrostl> is there a best-practice doc out there on this subject anywhere? | ||
| [2011/11/17 15:02:35] <astrostl> lots of different directions being suggested in here, which is good, but not definitive | ||
| [2011/11/17 15:03:21] <astrostl> the_ramink: kind of? i'm not concerned about the 'utility' of fqdn so much as it denoting and resolving to the public network | ||
| [2011/11/17 15:03:34] <astrostl> i guess it could be argued that it doesn't matter though | ||
| [2011/11/17 15:03:37] <nfagerlund> astrostl: It sounds like you might want to mess with the node_name, node_name_fact, and/or node_name_value config settings. http://docs.puppetlabs.com/references/latest/configuration.html#nodename | ||
| [2011/11/17 15:03:48] @ Quit: alanevans: Remote host closed the connection | ||
| [2011/11/17 15:03:53] <nfagerlund> astrostl: note that node_name_fact is a fairly recent addition. | ||
| [2011/11/17 15:03:59] @ dkr joined channel #puppet | ||
| [2011/11/17 15:04:09] <xeor> joe-mac: exactly what I wanted (I think) :=) I was about to create a python wrapper around the puppet yaml store | ||
| [2011/11/17 15:04:24] @ Quit: ghg: Quit: Computer has gone to sleep. | ||
| [2011/11/17 15:04:44] <astrostl> if i could distill the problem: i have public servers with public ips, as well as private interfaces with private ips. i want puppet to always use the private interface. | ||
| [2011/11/17 15:04:57] <astrostl> i hadn't considered making the corp.example.com hostname the default one, which is intriguing | ||
| [2011/11/17 15:05:25] <nfagerlund> xeor: To go into more detail, you might want to check the inventory service setup guide (http://docs.puppetlabs.com/guides/inventory_service.html) and the rest API reference http://docs.puppetlabs.com/guides/rest_api.html | ||
| [2011/11/17 15:05:27] <astrostl> kinda concerned about default network binding for services i might explicitly want public though, or other artifacts | ||
| [2011/11/17 15:05:48] <astrostl> what i'd love to see is a multi-interface puppet best-practice doc | ||
| [2011/11/17 15:06:00] <joe-mac> works like all other software really | ||
| [2011/11/17 15:06:01] <xeor> nfagerlund: thanks :) Was reading the 2nd one, but thanks for the 1st link | ||
| [2011/11/17 15:06:01] <eric0> nfagerlund: 'allo | ||
| [2011/11/17 15:06:10] <astrostl> i see a million different ways i can skin the cat, but i don't have a clear sense of which way i should go or why | ||
| [2011/11/17 15:06:51] <joe-mac> xeor: there are ruby methods to query the yaml store | ||
| [2011/11/17 15:06:53] <nfagerlund> astrostl: that's mostly well outside my expertise, so I shouldn't be the one to help. But you've found a definite hole in the docs, which I'll definitely make a note of and try to fill. | ||
| [2011/11/17 15:06:59] <nfagerlund> eric0: heyo. | ||
| [2011/11/17 15:07:04] <joe-mac> something like Puppet::Node::Facts.search("*") if you require the indirector module will get a bunch of nodes | ||
| [2011/11/17 15:07:08] <astrostl> nfagerlund: cool, thx | ||
| [2011/11/17 15:07:15] <joe-mac> but, it's better to use the rest api since it's exposed and meant for consumption | ||
| [2011/11/17 15:07:18] <joe-mac> internals can change | ||
| [2011/11/17 15:07:25] <the_ramink> astrostl: I don't see how using the private name is going to ensure you use the private interfaces. That's a function of routing not the name | ||
| [2011/11/17 15:07:35] <kjetilho> astrostl: even if you don't go the fqdn as nodename route, I really think you should configure resolv.conf so that hostname --fqdn (and facter fqdn) returns the value you like. | ||
| [2011/11/17 15:07:42] <kjetilho> that is the corp | ||
| [2011/11/17 15:08:25] <astrostl> maybe i'm just thinking about it wrong, and feeling "dirty" about it associating a cert with a public fqdn despite the fact that it's operating privately | ||
| [2011/11/17 15:08:27] <xeor> joe-mac: will look into that as well.. but I'm more a python guy (sorry for cursing in church) :p | ||
| [2011/11/17 15:08:40] <astrostl> 'puppet' resolves on the private network, the master only binds to the private ip, so that part is technically assured | ||
| [2011/11/17 15:08:48] <kjetilho> Puppet doesn't give a rat's ass about what name you use | ||
| [2011/11/17 15:08:58] <kjetilho> I've seen people suggest using UUID as certname! | ||
| [2011/11/17 15:09:30] <astrostl> yeah, i've run into that in my searches as well | ||
| [2011/11/17 15:09:40] <astrostl> i don't like the lack of legibility | ||
| [2011/11/17 15:09:50] <joe-mac> if you get to a huge scale I can see that being preferable | ||
| [2011/11/17 15:09:51] @ Quit: jodok: Quit: jodok | ||
| [2011/11/17 15:09:55] @ jsurfer joined channel #puppet | ||
| [2011/11/17 15:10:10] <kjetilho> joe-mac: why not use the UUID as the hostname, then? | ||
| [2011/11/17 15:10:34] <joe-mac> yea I'd probably be doing that at that point, thereby getting certname to be that | ||
| [2011/11/17 15:11:07] <kjetilho> I could live with that :) | ||
| [2011/11/17 15:13:58] @ tizzo is now known as tizzo-afk | ||
| [2011/11/17 15:14:44] @ schlem joined channel #puppet | ||
| [2011/11/17 15:15:31] <astrostl> currently noodling on the general subject of people using private hostnames or public ones | ||
| [2011/11/17 15:15:46] <astrostl> for public servers in general, independent of the puppet context | ||
| [2011/11/17 15:16:06] <kjetilho> I call it hostnames and service names :-) | ||
| [2011/11/17 15:16:28] <kjetilho> a server has only one hostname/nodename | ||
| [2011/11/17 15:16:28] @ ghg joined channel #puppet | ||
| [2011/11/17 15:16:36] <kjetilho> (in my world) | ||
| [2011/11/17 15:17:37] <astrostl> understood | ||
| [2011/11/17 15:17:55] <astrostl> i mean if i have an mail server, serving mail.example.com | ||
| [2011/11/17 15:18:13] <astrostl> i'd default to using the hostname mail.example.com, rather than mail.corp.example.com | ||
| [2011/11/17 15:18:57] @ Quit: marczak_: Ping timeout: 258 seconds | ||
| [2011/11/17 15:19:17] <jiboumans> how do i see (in 2.6.3) what class is include()'ing another class? I have a class being applied on a bunch of machines that as far as i can tell is definitely not being included by any code i wrote. | ||
| [2011/11/17 15:20:33] @ marczak joined channel #puppet | ||
| [2011/11/17 15:21:11] <^scott^> Hi! So, I'm starting to get the hang of the idea of Puppet being a declarative language. I'm running into a conceptual hurdle when building my MySQL module: I want the MySQL module to "own | ||
| [2011/11/17 15:21:18] <^scott^> (err still typing) | ||
| [2011/11/17 15:21:48] <^scott^> " its /etc/my.cnf file, but I want other modules, say an application, to place a requirement on that MySQL module such that the my.cnf would be properly updated. | ||
| [2011/11/17 15:22:28] @ Quit: jsurfer: Remote host closed the connection | ||
| [2011/11/17 15:22:40] <astrostl> ^scott^: and your concern is that mysql overwrites it to a default, and the other thing appends/changes an entry, causing a tug of war? | ||
| [2011/11/17 15:22:49] @ jsurfer joined channel #puppet | ||
| [2011/11/17 15:22:58] <^scott^> Say for example, I have an application that requires a table-cache of at least 1,000, but not all applications have that. I'd like for the MySQL module to assume a default of, lets say 100, but, if this other module is loaded, I want that module to "advise" the MySQL module of the higher requirement. | ||
| [2011/11/17 15:23:23] <^scott^> In other words, I want the other module to be able to say "Hey, I need this", and I think that's consistent with the declarative model of puppet, I just don't know how to get there. | ||
| [2011/11/17 15:23:28] @ Quit: kaptk2: Quit: Leaving. | ||
| [2011/11/17 15:23:47] <^scott^> astrostl: Yes, that's why I'm trying to figure out a way to look at this the "declarative" way. | ||
| [2011/11/17 15:23:55] @ Quit: cwebber: Read error: Connection reset by peer | ||
| [2011/11/17 15:24:03] <astrostl> ^scott^: this is where ".d directories" help in most contexts | ||
| [2011/11/17 15:24:20] @ cwebber joined channel #puppet | ||
| [2011/11/17 15:24:26] <astrostl> instead of it being one monolithic config file, stubs can be used and loaded in order, with later ones overwriting newer ones | ||
| [2011/11/17 15:24:36] <astrostl> but anyway, for what you've described i would suggest looking at augeas | ||
| [2011/11/17 15:24:39] <^scott^> astrostl: I agree. I don't think MySQL ships with support for that right now. | ||
| [2011/11/17 15:25:06] <astrostl> and to not deploy my.cnf with the mysql module, accept the default and use augeas for all edits | ||
| [2011/11/17 15:25:38] <chequers> hm. in a template, how do I check if a variable is defined and branch? | ||
| [2011/11/17 15:25:56] <^scott^> Oh, something like http://projects.puppetlabs.com/projects/1/wiki/Puppet_Augeas | ||
| [2011/11/17 15:26:09] <astrostl> if you have to have a manually-set default and then a potential override, you could store it in a variable, deploy my.cnf as an erb template, and use if statements to determine what is set. gets kinda hairy pretty quick though. | ||
| [2011/11/17 15:26:31] <chequers> I found a ML post saying you can write pure ruby -- is that the recommended way? | ||
| [2011/11/17 15:26:48] <^scott^> astrostl: Yea, I started thinking down that path, but realized I would have to purposefully order things, and that's when I realized that I was breaking the puppet model. | ||
| [2011/11/17 15:27:16] <astrostl> ^scott^: ordering things isn't necessarily bad; you need the apache package installed in order to tell the apache service to run, etc. | ||
| [2011/11/17 15:27:33] <the_ramink> ^scott^: !includedir /etc/mysql/conf.d/ | ||
| [2011/11/17 15:27:37] <astrostl> chequers: i guess it depends on what 'branch' means. erb has syntax to see if something is set though | ||
| [2011/11/17 15:27:53] <^scott^> astrostl: This is true. I guess it's more of a, you're supposed to tell puppet what you want, not . . . | ||
| [2011/11/17 15:28:03] <astrostl> the_ramink: still doesn't resolve dueling banjos if two conf.d files set the same thing though | ||
| [2011/11/17 15:28:20] @ nanliu_ joined channel #puppet | ||
| [2011/11/17 15:28:32] <^scott^> the_ramink: I didn't realize I had that at my disposal, that's definetly going to be one approach I'll consider. I can't beleive I didn't see that. | ||
| [2011/11/17 15:28:40] @ Quit: samkottler: Quit: Leaving. | ||
| [2011/11/17 15:28:52] <the_ramink> astrostl: true, but it makes it simpler. Also it's last value in IIRC so zzz_my_special_app.cnf is going to win | ||
| [2011/11/17 15:29:03] <astrostl> if it loads things like 00conf1 and 01conf2 in order then cool | ||
| [2011/11/17 15:29:17] <^scott^> At any rate, I was thinking, generically, it's a pretty cool concept to allow one module to inform another module. | ||
| [2011/11/17 15:29:46] <mfridh> kjetilho, astrostl: If I mv modules/dell/lib/facter/*.rb modules/dell/lib/facter/dell/ it doesn't print the double loading anymore. | ||
| [2011/11/17 15:29:50] <^scott^> astrostl: If I went the conf.d approach, I'd just number each applications conf file, and then it's the maintainers job to manage it. | ||
| [2011/11/17 15:29:58] <mfridh> not sure if that was in the bug or not... (i'll go find it) | ||
| [2011/11/17 15:31:15] <astrostl> mfridh: see http://projects.puppetlabs.com/issues/8433 | ||
| [2011/11/17 15:31:33] <astrostl> i didn't know that mysql supported conf.d either | ||
| [2011/11/17 15:31:38] <astrostl> good to know | ||
| [2011/11/17 15:31:54] <astrostl> mfridh: eh, that's the wrong bug, hold | ||
| [2011/11/17 15:33:03] <astrostl> mfridh: http://projects.puppetlabs.com/issues/3741 | ||
| [2011/11/17 15:33:33] <astrostl> over a year old, but it has recent updates at least | ||
| [2011/11/17 15:34:42] @ Quit: erodriguez: Quit: erodriguez | ||
| [2011/11/17 15:35:13] <the_ramink> ^scott^: Mysql doesn't seem like a good example for this. I expect some general tuning that works on all Mysql servers in various config files and then setting a Specific Mysql Farm file for it's specific use. Some tuning is going to be mutually exclusive sauch as assign 80% of RAM to both myisam and innodb | ||
| [2011/11/17 15:36:25] <^scott^> the_ramink: You're likely right, I'd prolly have a couple of tune files, and just drop one in the conf.d directory. Sorta like how theres a MySQL-huge MySQL-small etc. that ships with MySQL somewhere. | ||
| [2011/11/17 15:37:08] <chequers> astrostl: I think this iss the recommended syntax <% if has_variable?("imagetemp") then %> image-temp: <%= imagetemp %> <% end %> | ||
| [2011/11/17 15:37:37] <the_ramink> ^scott^: if you're interested I've done some work towards that. https://github.com/rkhatibi/rdk-puppet-modules/tree/master/mysql | ||
| [2011/11/17 15:38:32] <mfridh> astrostl: thanks | ||
| [2011/11/17 15:38:49] <mfridh> you guys know, facter does load facts recursively, right? | ||
| [2011/11/17 15:39:03] <mfridh> in var/lib/puppet/lib/facter ... | ||
| [2011/11/17 15:39:18] <^scott^> the_ramink Lemme read through this, it might be useful . . .I already see maatkit, how exciting. | ||
| [2011/11/17 15:40:48] @ Quit: Diranged: Ping timeout: 258 seconds | ||
| [2011/11/17 15:41:17] <the_ramink> ^scott^: heh, I wouldn't call it prod ready and it uses extlookup which I need to comment out, but it should give you some ideas. | ||
| [2011/11/17 15:41:47] @ fenris02 joined channel #puppet | ||
| [2011/11/17 15:42:05] <emergion> Anyone seen this error happening in 2.7.6? "err: Could not create resources for managing Puppet's files and directories in sections [:main, :agent, :ssl]: Could not find value for $host" | ||
| [2011/11/17 15:42:33] @ newtMcKerr joined channel #puppet | ||
| [2011/11/17 15:42:58] <emergion> I get that when attmepting to tun the puppet agent on the same machine as my puppet master, I noticed there was a bug report but it seemed to be accepted as an issue with *bsd | ||
| [2011/11/17 15:43:20] <^scott^> the_ramink: Oh, I have no experience with extlookup, that looks well worth learning | ||
| [2011/11/17 15:43:22] @ Quit: cjz: Quit: Leaving. | ||
| [2011/11/17 15:44:18] @ Quit: newtMcKerr: Client Quit | ||
| [2011/11/17 15:44:22] @ Quit: fenrus02: Ping timeout: 260 seconds | ||
| [2011/11/17 15:46:27] <kjetilho> mfridh: and it still works? | ||
| [2011/11/17 15:46:55] <kjetilho> if so I will definitely look into modules/baseconfig/lib/facter/baseconfig :) | ||
| [2011/11/17 15:47:33] @ Quit: nanliu_: Quit: Colloquy for iPhone - http://colloquy.mobi | ||
| [2011/11/17 15:47:34] @ Quit: Stenbryggen: Quit: Leaving. | ||
| [2011/11/17 15:48:23] <mfridh> kjetilho: I still get the expected output from my plugins | ||
| [2011/11/17 15:48:30] <mfridh> let me just verify by completely deleting the modules | ||
| [2011/11/17 15:48:42] <mfridh> yep | ||
| [2011/11/17 15:49:00] <kjetilho> wow. Puppet works in mysterious ways | ||
| [2011/11/17 15:49:53] @ skm joined channel #puppet | ||
| [2011/11/17 15:50:12] <mfridh> so, by keeping this folder completely clean of *.rb files: /var/lib/puppet/lib/facter, there are no redundant loads | ||
| [2011/11/17 15:50:26] <mfridh> i've just verified, reverified, and re-re-verified :D | ||
| [2011/11/17 15:51:06] @ ciupicri|away is now known as ciupicri | ||
| [2011/11/17 15:54:16] @ Quit: schlem: Quit: schlem | ||
| [2011/11/17 15:54:40] @ Quit: Razique: Quit: Razique | ||
| [2011/11/17 15:54:47] @ schlem joined channel #puppet | ||
| [2011/11/17 15:58:00] @ maplebed joined channel #puppet | ||
| [2011/11/17 15:58:43] <maplebed> Hi, does anybody know of a module that can configure haproxy using exported resources from the backend servers? (or an easy way to do that?) | ||
| [2011/11/17 15:59:38] <maplebed> in other words, I want my backend apache servers to export that they are serving a particular web site and have the haproxy rules consume that information to write out an appropriate haproxy conf file. | ||
| [2011/11/17 16:05:11] @ Quit: jbaldridge: Quit: leaving | ||
| [2011/11/17 16:05:17] @ jbaldridge joined channel #puppet | ||
| [2011/11/17 16:06:31] @ Quit: jsurfer: Quit: jsurfer | ||
| [2011/11/17 16:08:24] @ Quit: abetterlie: Ping timeout: 258 seconds | ||
| [2011/11/17 16:09:28] @ Quit: bobbyz: Ping timeout: 240 seconds | ||
| [2011/11/17 16:10:24] @ Quit: dan__t: Ping timeout: 248 seconds | ||
| [2011/11/17 16:10:46] @ Quit: mpdude: Remote host closed the connection | ||
| [2011/11/17 16:13:37] @ Quit: jbaldridge: Quit: Reconnecting | ||
| [2011/11/17 16:13:41] @ jbaldridge joined channel #puppet | ||
| [2011/11/17 16:15:05] @ Quit: cruzfox: Quit: cruzfox | ||
| [2011/11/17 16:15:19] <comptona> maplebed: this sounds like a job for a custom fact | ||
| [2011/11/17 16:16:29] <maplebed> the thing that steered me away from a custom fact is that the puppet matser knows who all the backend servers are (by the benefit of using a class to represent different site configs), | ||
| [2011/11/17 16:16:37] @ jsm joined channel #puppet | ||
| [2011/11/17 16:17:15] @ Quit: skm: Quit: Computer has gone to sleep. | ||
| [2011/11/17 16:17:16] @ Quit: DJClean: Read error: Operation timed out | ||
| [2011/11/17 16:20:21] @ elmer__ joined channel #puppet | ||
| [2011/11/17 16:21:05] @ Quit: ciupicri: Quit: Leaving | ||
| [2011/11/17 16:22:37] @ Quit: spiette: Ping timeout: 240 seconds | ||
| [2011/11/17 16:24:56] @ Quit: elmer__: Read error: Connection reset by peer | ||
| [2011/11/17 16:25:12] @ jorhett1 joined channel #puppet | ||
| [2011/11/17 16:26:34] @ Quit: jorhett: Read error: Operation timed out | ||
| [2011/11/17 16:27:32] @ Quit: jsm: Quit: jsm | ||
| [2011/11/17 16:28:31] @ mrwacky42 joined channel #puppet | ||
| [2011/11/17 16:31:20] @ skm joined channel #puppet | ||
| [2011/11/17 16:32:44] @ Quit: mrwacky42: Ping timeout: 244 seconds | ||
| [2011/11/17 16:33:30] @ Quit: schlem: Ping timeout: 276 seconds | ||
| [2011/11/17 16:33:35] @ Quit: alfism: Quit: alfism | ||
| [2011/11/17 16:35:57] @ Quit: astrostl: | ||
| [2011/11/17 16:36:38] @ moodywoody joined channel #puppet | ||
| [2011/11/17 16:37:36] @ schlem joined channel #puppet | ||
| [2011/11/17 16:39:10] <moodywoody> Hi guys .. just installed PE 2.0.0 on a Centos6 VM .. everything looks ok, but "mco ping" gives "can't convert nil into String" .. does anybody have an idea how to troubleshoot that? | ||
| [2011/11/17 16:40:37] @ rsnhyperion joined channel #puppet | ||
| [2011/11/17 16:51:39] @ Quit: Beast: Quit: Leaving. | ||
| [2011/11/17 16:54:12] @ jsm joined channel #puppet | ||
| [2011/11/17 16:54:46] @ mrwacky42 joined channel #puppet | ||
| [2011/11/17 16:55:30] @ Quit: schlem: Remote host closed the connection | ||
| [2011/11/17 16:55:46] @ schlem joined channel #puppet | ||
| [2011/11/17 16:57:14] @ bobbyz joined channel #puppet | ||
| [2011/11/17 16:58:49] @ Quit: ianbrandt: Quit: ianbrandt | ||
| [2011/11/17 16:58:58] @ Quit: neonflux: Quit: Leaving. | ||
| [2011/11/17 17:00:11] @ jsurfer joined channel #puppet | ||
| [2011/11/17 17:00:17] @ Quit: moodywoody: Ping timeout: 240 seconds | ||
| [2011/11/17 17:00:17] @ bobbyz_ joined channel #puppet | ||
| [2011/11/17 17:00:23] @ moodywoody joined channel #puppet | ||
| [2011/11/17 17:01:11] @ astrostl joined channel #puppet | ||
| [2011/11/17 17:03:58] @ Quit: Sargun_Screen: Changing host | ||
| [2011/11/17 17:03:58] @ Sargun_Screen joined channel #puppet | ||
| [2011/11/17 17:04:11] @ Quit: bobbyz: Ping timeout: 260 seconds | ||
| [2011/11/17 17:05:34] @ diq joined channel #puppet | ||
| [2011/11/17 17:05:44] @ Quit: schlem: Read error: Operation timed out | ||
| [2011/11/17 17:05:57] @ astrostl_ joined channel #puppet | ||
| [2011/11/17 17:07:07] @ schlem joined channel #puppet | ||
| [2011/11/17 17:08:34] @ Quit: moodywoody: Quit: Lost terminal | ||
| [2011/11/17 17:09:23] @ Quit: Wolfspyre: Quit: Leaving. | ||
| [2011/11/17 17:10:14] @ samkottler joined channel #puppet | ||
| [2011/11/17 17:11:33] @ lak joined channel #puppet | ||
| [2011/11/17 17:11:33] @ Quit: lak: Changing host | ||
| [2011/11/17 17:11:34] @ lak joined channel #puppet | ||
| [2011/11/17 17:13:39] @ Quit: williemach: Quit: Leaving. | ||
| [2011/11/17 17:20:16] @ Quit: comptona: Ping timeout: 244 seconds | ||
| [2011/11/17 17:20:44] @ Quit: lak: Quit: Leaving. | ||
| [2011/11/17 17:20:56] @ Quit: maplebed: Ping timeout: 252 seconds | ||
| [2011/11/17 17:20:58] @ Quit: hooper: Ping timeout: 260 seconds | ||
| [2011/11/17 17:21:03] @ Quit: alanna_: Remote host closed the connection | ||
| [2011/11/17 17:22:31] @ Quit: miche: Quit: Computer has gone to sleep. | ||
| [2011/11/17 17:25:04] @ Quit: johnston: Ping timeout: 265 seconds | ||
| [2011/11/17 17:25:37] @ Quit: peridot: Quit: Leaving. | ||
| [2011/11/17 17:27:47] @ Quit: ghanima: Quit: Leaving. | ||
| [2011/11/17 17:28:17] @ Quit: flex____: Remote host closed the connection | ||
| [2011/11/17 17:31:07] @ Quit: tilgovi: Remote host closed the connection | ||
| [2011/11/17 17:31:25] @ dbgster joined channel #puppet | ||
| [2011/11/17 17:34:38] @ ryancoleman joined channel #puppet | ||
| [2011/11/17 17:34:41] @ Quit: mmoya: Read error: Operation timed out | ||
| [2011/11/17 17:37:58] @ Erratic joined channel #puppet | ||
| [2011/11/17 17:38:04] @ Quit: ryancoleman: Client Quit | ||
| [2011/11/17 17:38:22] @ ryancoleman joined channel #puppet | ||
| [2011/11/17 17:38:24] @ Quit: Holocaine: Ping timeout: 248 seconds | ||
| [2011/11/17 17:38:25] @ Erratic is now known as Holocaine | ||
| [2011/11/17 17:38:27] @ Quit: Holocaine: Changing host | ||
| [2011/11/17 17:38:27] @ Holocaine joined channel #puppet | ||
| [2011/11/17 17:43:33] @ Quit: mrwacky42: Quit: Leaving. | ||
| [2011/11/17 17:44:05] @ Enf joined channel #puppet | ||
| [2011/11/17 17:44:26] @ Quit: bobbyz_: Ping timeout: 260 seconds | ||
| [2011/11/17 17:45:00] @ Quit: ken_barber1: Quit: Leaving. | ||
| [2011/11/17 17:47:38] @ Quit: jongrocho: Remote host closed the connection | ||
| [2011/11/17 17:49:02] @ Quit: hobbeswalsh: Quit: hobbeswalsh | ||
| [2011/11/17 17:49:37] @ Quit: ryancoleman: Quit: Leaving. | ||
| [2011/11/17 17:49:43] @ Quit: mitchellh: Quit: Computer has gone to sleep | ||
| [2011/11/17 17:51:19] @ mitchellh joined channel #puppet | ||
| [2011/11/17 17:54:29] @ Quit: Boltsky: Ping timeout: 244 seconds | ||
| [2011/11/17 17:55:58] @ ryancoleman joined channel #puppet | ||
| [2011/11/17 17:57:15] @ Quit: kelseyhi1htower: Ping timeout: 252 seconds | ||
| [2011/11/17 17:58:18] @ Quit: the_ramink: Ping timeout: 260 seconds | ||
| [2011/11/17 17:59:00] @ salajander joined channel #puppet | ||
| [2011/11/17 18:02:03] @ Quit: Chris64: | ||
| [2011/11/17 18:03:53] <chequers> hey. if I define a custom type of mymodule::foo, how do I create an object of that type elsewhere? `mymodule::foo { ... }` doesn't seem to work | ||
| [2011/11/17 18:07:55] @ Quit: Holocaine: | ||
| [2011/11/17 18:08:30] @ Quit: seanh-ansca: Quit: Leaving. | ||
| [2011/11/17 18:08:56] @ Quit: salajander: Ping timeout: 260 seconds | ||
| [2011/11/17 18:10:24] @ Boltsky joined channel #puppet | ||
| [2011/11/17 18:10:37] <Volcane> chequers: its best to show the code on a pastebin like pastie.org and any actual errors. | ||
| [2011/11/17 18:10:38] @ Quit: shadoi: Quit: Leaving. | ||
| [2011/11/17 18:11:03] @ Quit: ryancoleman: Quit: Leaving. | ||
| [2011/11/17 18:16:24] @ bobbyz_ joined channel #puppet | ||
| [2011/11/17 18:16:44] @ salajander joined channel #puppet | ||
| [2011/11/17 18:21:13] @ Quit: skm: Quit: Computer has gone to sleep. | ||
| [2011/11/17 18:21:13] @ doprdele joined channel #puppet | ||
| [2011/11/17 18:22:20] @ flex___ joined channel #puppet | ||
| [2011/11/17 18:24:04] @ Quit: ghg: Quit: Computer has gone to sleep. | ||
| [2011/11/17 18:26:58] @ tizzo-afk is now known as tizzo | ||
| [2011/11/17 18:27:36] @ Quit: larstobi: Ping timeout: 260 seconds | ||
| [2011/11/17 18:28:42] @ larstobi joined channel #puppet | ||
| [2011/11/17 18:30:52] @ Quit: mitchellh: Quit: Computer has gone to sleep | ||
| [2011/11/17 18:33:41] @ Quit: choonming: Quit: Leaving | ||
| [2011/11/17 18:34:18] @ alanevans joined channel #puppet | ||
| [2011/11/17 18:35:19] @ ghg joined channel #puppet | ||
| [2011/11/17 18:38:22] @ Quit: ghg: Client Quit | ||
| [2011/11/17 18:38:23] @ Quit: bmahe: Quit: Leaving | ||
| [2011/11/17 18:39:49] @ Quit: jimi_c: Ping timeout: 258 seconds | ||
| [2011/11/17 18:40:21] @ Kazuhiro joined channel #puppet | ||
| [2011/11/17 18:43:49] @ Quit: astrostl_: Ping timeout: 240 seconds | ||
| [2011/11/17 18:44:08] @ gaveen joined channel #puppet | ||
| [2011/11/17 18:46:13] @ bman1 left channel #puppet () | ||
| [2011/11/17 18:48:03] @ mattr joined channel #puppet | ||
| [2011/11/17 18:48:03] @ Quit: mattr: Changing host | ||
| [2011/11/17 18:48:03] @ mattr joined channel #puppet | ||
| [2011/11/17 18:48:15] @ Quit: bobbyz_: Ping timeout: 258 seconds | ||
| [2011/11/17 18:49:03] @ schlem_ joined channel #puppet | ||
| [2011/11/17 18:49:04] @ Quit: negronjl: Ping timeout: 240 seconds | ||
| [2011/11/17 18:49:15] @ ryancoleman joined channel #puppet | ||
| [2011/11/17 18:51:01] @ Quit: schlem: Ping timeout: 240 seconds | ||
| [2011/11/17 18:51:01] @ schlem_ is now known as schlem | ||
| [2011/11/17 18:51:53] @ skm joined channel #puppet | ||
| [2011/11/17 18:52:35] @ the_ramink joined channel #puppet | ||
| [2011/11/17 18:54:08] @ ghg joined channel #puppet | ||
| [2011/11/17 18:55:57] @ neonflux joined channel #puppet | ||
| [2011/11/17 18:58:41] @ Quit: Djelibeybi: Quit: Textual IRC Client: http://www.textualapp.com/ | ||
| [2011/11/17 19:00:33] @ Quit: BManojlovic: Remote host closed the connection | ||
| [2011/11/17 19:00:33] @ Holocaine joined channel #puppet | ||
| [2011/11/17 19:02:38] @ choonming joined channel #puppet | ||
| [2011/11/17 19:04:48] @ tizzo is now known as tizzo-afk | ||
| [2011/11/17 19:05:34] @ Quit: ghg: Quit: Computer has gone to sleep. | ||
| [2011/11/17 19:08:08] @ Quit: sebian: Read error: Operation timed out | ||
| [2011/11/17 19:08:09] @ Quit: mogitux: Read error: Operation timed out | ||
| [2011/11/17 19:09:32] @ mogitux joined channel #puppet | ||
| [2011/11/17 19:09:42] @ sebian joined channel #puppet | ||
| [2011/11/17 19:10:38] @ Quit: zorzar: Ping timeout: 240 seconds | ||
| [2011/11/17 19:10:52] @ Quit: rsnhyperion: Read error: Operation timed out | ||
| [2011/11/17 19:11:01] @ Quit: s0enke: Ping timeout: 240 seconds | ||
| [2011/11/17 19:11:28] @ Quit: p3rror: Ping timeout: 244 seconds | ||
| [2011/11/17 19:12:16] @ zorzar joined channel #puppet | ||
| [2011/11/17 19:17:00] @ seanh-ansca joined channel #puppet | ||
| [2011/11/17 19:17:31] @ s0enke joined channel #puppet | ||
| [2011/11/17 19:19:01] @ Quit: schlem: Quit: schlem | ||
| [2011/11/17 19:20:37] @ Quit: samkottler: Quit: Leaving. | ||
| [2011/11/17 19:23:14] @ jorhett joined channel #puppet | ||
| [2011/11/17 19:23:51] @ schlem joined channel #puppet | ||
| [2011/11/17 19:25:41] @ Kazuhiro1 joined channel #puppet | ||
| [2011/11/17 19:25:55] @ Quit: dbgster: Quit: dbgster | ||
| [2011/11/17 19:26:08] @ Quit: jorhett1: Ping timeout: 248 seconds | ||
| [2011/11/17 19:26:41] @ sarkis_ joined channel #puppet | ||
| [2011/11/17 19:26:45] @ tizzo-afk is now known as tizzo | ||
| [2011/11/17 19:29:07] @ KaiserBeto left channel #puppet () | ||
| [2011/11/17 19:29:33] @ Quit: Kazuhiro: Ping timeout: 244 seconds | ||
| [2011/11/17 19:31:12] @ tizzo is now known as tizzo-afk | ||
| [2011/11/17 19:32:06] @ samkottler joined channel #puppet | ||
| [2011/11/17 19:33:57] @ KaiserBeto1 joined channel #puppet | ||
| [2011/11/17 19:35:14] @ Quit: motomike: Quit: Leaving. | ||
| [2011/11/17 19:35:38] @ Quit: astrostl: | ||
| [2011/11/17 19:40:02] @ jimi_c joined channel #puppet | ||
| [2011/11/17 19:41:08] @ ciupicri joined channel #puppet | ||
| [2011/11/17 19:41:20] <ciupicri> how can I make a class require another class? | ||
| [2011/11/17 19:41:42] @ Quit: KaiserBeto1: Ping timeout: 245 seconds | ||
| [2011/11/17 19:42:10] <ciupicri> I'm writing a class inside module a module and I would like to make it to depend on another class | ||
| [2011/11/17 19:43:20] <the_ramink> ciupicri: include $classname and then chain it in the the requiring class as appropiate. | ||
| [2011/11/17 19:44:19] <ciupicri> the_ramink, http://cristian.ipq.co:8080/ check out the code, please | ||
| [2011/11/17 19:44:41] @ Quit: schlem: Quit: schlem | ||
| [2011/11/17 19:44:56] <ciupicri> class prestashop requires Class["httpd::service"] and Class["mysql::server::service"] | ||
| [2011/11/17 19:46:07] <ciupicri> I still don't understand how can I make that happen | ||
| [2011/11/17 19:46:45] @ Quit: nfagerlund: Remote host closed the connection | ||
| [2011/11/17 19:47:11] @ erodriguez joined channel #puppet | ||
| [2011/11/17 19:47:34] @ Quit: rmckee: Quit: Leaving | ||
| [2011/11/17 19:47:57] <the_ramink> something like this, http://pastie.org/2881429 | ||
| [2011/11/17 19:48:33] <the_ramink> well, http://pastie.org/2881433 with proper quoting | ||
| [2011/11/17 19:48:47] <ciupicri> yeah | ||
| [2011/11/17 19:49:38] <ciupicri> thanks! let me try it | ||
| [2011/11/17 19:51:03] <the_ramink> ciupicri: only thing to watch out for is Class[httpd] -> Class['mysql'] *does not* chain any subclasses. Using ::service in each case which is likely the termination of the internal order works best unless you're wrapping it in the new puppetlabs stlib stuff. | ||
| [2011/11/17 19:52:07] @ intransigent007 joined channel #puppet | ||
| [2011/11/17 19:53:16] <intransigent007> attempting to limit an include based on a facter variable: http://pastebin.com/dVGnX7tV | ||
| [2011/11/17 19:54:17] <intransigent007> simply want to limit the include of the vmware::tools module if $is_virtual is true | ||
| [2011/11/17 20:00:00] @ Quit: Kazuhiro1: Quit: Leaving. | ||
| [2011/11/17 20:03:14] <intransigent007> NM, facter was reporting incorrectly | ||
| [2011/11/17 20:05:09] @ schlem joined channel #puppet | ||
| [2011/11/17 20:06:52] @ Quit: Boltsky: Quit: Textual IRC Client: http://www.textualapp.com/ | ||
| [2011/11/17 20:07:30] @ Quit: schlem: Client Quit | ||
| [2011/11/17 20:10:22] <ryancoleman> intransigent007: You may already be aware but something like this can help when you're learning conditionals. If you remove including a class from the equation, you can make sure your conditional works and then try to introduce the class. http://pastebin.com/bnnab83W | ||
| [2011/11/17 20:11:44] @ Quit: samkottler: Quit: Leaving. | ||
| [2011/11/17 20:12:47] @ Quit: intransigent007: Ping timeout: 265 seconds | ||
| [2011/11/17 20:15:40] @ Quit: szaydel: Quit: Leaving Chat | ||
| [2011/11/17 20:17:06] <chequers> hey, I have some code like this in a template: <% if has_variable?("expiredefault") then %>expire-default: <%= expiredefault %><% end %> | ||
| [2011/11/17 20:17:31] @ bobra joined channel #puppet | ||
| [2011/11/17 20:17:32] <chequers> I only want the line to appear when the variable is assigned an explicit value, basically | ||
| [2011/11/17 20:18:22] <chequers> but the value is part of a type constructer, so I have the default value of 'false' which I believe is the boolean False type in puppet, but that causes has_variable to be true | ||
| [2011/11/17 20:22:54] @ Chillax_ joined channel #puppet | ||
| [2011/11/17 20:23:25] @ negronjl joined channel #puppet | ||
| [2011/11/17 20:23:28] @ Quit: Chillax: Ping timeout: 240 seconds | ||
| [2011/11/17 20:26:48] @ Quit: seanh-ansca: Quit: Leaving. | ||
| [2011/11/17 20:28:40] @ Quit: negronjl: Ping timeout: 240 seconds | ||
| [2011/11/17 20:32:31] <ryancoleman> chequers: are you saying you want to suppress the new line when your expression evaluates to false? | ||
| [2011/11/17 20:32:49] <chequers> right | ||
| [2011/11/17 20:33:55] <chequers> my constructor is like: define dirvish::vault ($bank, $vault, $client, $tree, $expiredefault=false, $expirerule=[''], | ||
| [2011/11/17 20:33:55] <ryancoleman> chequers: you can trim the new line by adding a hyphen directly before your closing %, so <% end %> becomes <% end -%> | ||
| [2011/11/17 20:34:51] <chequers> it's not the newline that's a problem (yet, at least) | ||
| [2011/11/17 20:34:56] <chequers> it's that I see output like this: expire-default: false | ||
| [2011/11/17 20:35:39] <chequers> I see the problem is that having a variable set to 'false' is having a 'set' variable, but I don't know how to have a constructor with default values that I can test to see if they're overridden | ||
| [2011/11/17 20:36:05] <chequers> as in, I'm not sure what the default values should be, and I'm not sure what function to use in the template | ||
| [2011/11/17 20:36:23] @ abetterlie joined channel #puppet | ||
| [2011/11/17 20:39:00] @ Quit: sumsuch: Quit: sumsuch | ||
| [2011/11/17 20:40:36] <ryancoleman> Hmm. I see what you mean. Could you instead build your template like <% if variable == "true" then %> ? | ||
| [2011/11/17 20:42:20] <chequers> in this case, yes, but for example the next parameter $expirerule=[''], has the template lines like this: | ||
| [2011/11/17 20:42:24] <chequers> <% if has_variable?("expirerule") then %>expire-rule: | ||
| [2011/11/17 20:42:26] <chequers> <% expirerule.each do |exp| %> <%= exp %><% end %> | ||
| [2011/11/17 20:42:29] <chequers> <% end %> | ||
| [2011/11/17 20:42:50] <chequers> I guess your idea only works for boolean type options, right | ||
| [2011/11/17 20:43:24] <ryancoleman> yeah. my suggestion doesn't work in your face, where you want to evaluate whether or not a node contains that variable. | ||
| [2011/11/17 20:43:31] @ alanna joined channel #puppet | ||
| [2011/11/17 20:43:32] <ryancoleman> s/case/face | ||
| [2011/11/17 20:44:21] @ sumsuch joined channel #puppet | ||
| [2011/11/17 20:45:12] @ negronjl joined channel #puppet | ||
| [2011/11/17 20:48:58] @ Quit: sumsuch: Client Quit | ||
| [2011/11/17 20:50:27] <ryancoleman> Sorry chequers, I see what you're trying to accomplish and I'm simulating it but I can't get the behavior you want. Hopefully someone with more knowledge of erb will come along and help. | ||
| [2011/11/17 20:51:40] <chequers> no probs | ||
| [2011/11/17 20:52:16] <chequers> is the "false" i'm using in the constructor just a string "false", or is it a special boolean type? | ||
| [2011/11/17 20:52:53] <chequers> if it's the latter, I guess `<% if expirerule != false %>` would work even if someone passes in "false" | ||
| [2011/11/17 20:53:20] @ Quit: Holocaine: | ||
| [2011/11/17 20:54:44] <ryancoleman> I'm actually not certain. The language guide calls out true as a reserved word but doesn't mention false. http://docs.puppetlabs.com/guides/language_guide.html#reserved-words--acceptable-characters | ||
| [2011/11/17 20:57:05] <chequers> heh | ||
| [2011/11/17 20:57:10] @ Quit: alanna: Remote host closed the connection | ||
| [2011/11/17 20:57:50] @ Quit: skm: Quit: Computer has gone to sleep. | ||
| [2011/11/17 20:58:11] <chequers> I guess I'll take some word as a magic value for now, but I'll idle here in case someone knows a better way or if it's just not possible for certain | ||
| [2011/11/17 20:58:19] <chequers> thanks for the pointers | ||
| [2011/11/17 20:59:16] @ Quit: CrazyGir_: Changing host | ||
| [2011/11/17 20:59:16] @ CrazyGir_ joined channel #puppet | ||
| [2011/11/17 20:59:24] @ CrazyGir_ is now known as CrazyGir | ||
| [2011/11/17 21:01:04] <chequers> got it! | ||
| [2011/11/17 21:01:17] <chequers> false is a magical value, but my test was wrong | ||
| [2011/11/17 21:01:36] <chequers> (well, 'magical' == boolean, rather than string, I think) | ||
| [2011/11/17 21:01:55] <chequers> The correct test is just a boolean test, not variable existence: <% if has_variable?("expirerule") then %>expire-rule: | ||
| [2011/11/17 21:01:58] <chequers> <% expirerule.each do |exp| %> <%= exp %><% end %> | ||
| [2011/11/17 21:02:01] <chequers> er | ||
| [2011/11/17 21:02:03] <chequers> <% end %> | ||
| [2011/11/17 21:02:06] <chequers> <% if expiredefault then %>expire-default: <%= expiredefault %> <% end %> | ||
| [2011/11/17 21:02:15] <chequers> that first one is still wrong | ||
| [2011/11/17 21:02:20] <chequers> this second seems to work | ||
| [2011/11/17 21:03:13] <ryancoleman> ah, awesome! thanks for reporting back. :-) | ||
| [2011/11/17 21:05:28] <chequers> drat. Only works for strings. [''] evaluates to true | ||
| [2011/11/17 21:06:47] @ skm joined channel #puppet | ||
| [2011/11/17 21:07:03] <ryancoleman> :-( | ||
| [2011/11/17 21:07:31] @ Quit: sarkis_: Ping timeout: 252 seconds | ||
| [2011/11/17 21:08:05] <chequers> oh. the default value doesn't need to be [] jsut because the actual value is | ||
| [2011/11/17 21:09:48] <chequers> yeah! I implemented your suggestion for getting rid of whitespace too | ||
| [2011/11/17 21:10:45] <ryancoleman> cool. so you're good to go now? | ||
| [2011/11/17 21:10:54] <chequers> yes | ||
| [2011/11/17 21:11:13] <ryancoleman> Awesome. Thanks for sharing, yours in an interesting case for templates that I hadn't encountered before. | ||
| [2011/11/17 21:11:23] <ryancoleman> Which is great! | ||
| [2011/11/17 21:11:49] @ mrwacky42 joined channel #puppet | ||
| [2011/11/17 21:11:58] @ Beast joined channel #puppet | ||
| [2011/11/17 21:15:41] @ newtMcKerr joined channel #puppet | ||
| [2011/11/17 21:15:45] @ KaiserBeto joined channel #puppet | ||
| [2011/11/17 21:19:45] <flex___> hi, everyone, in erb files, how could i use a variable declared in a define ? | ||
| [2011/11/17 21:22:18] <chequers> use `<%= variable %>` to print the variable's value at that location in the file | ||
| [2011/11/17 21:22:24] @ AvaCam joined channel #puppet | ||
| [2011/11/17 21:22:46] <flex___> in puppet 2.7.x, this will throw a warning | ||
| [2011/11/17 21:23:36] <flex___> the variable used is not declared in the define which invoke the template | ||
| [2011/11/17 21:23:57] <flex___> before puppet 2.7, that is ok | ||
| [2011/11/17 21:24:00] @ alanna joined channel #puppet | ||
| [2011/11/17 21:24:40] <chequers> your define should (AFAIK) look like: define whatever ($variable) { | ||
| [2011/11/17 21:25:23] @ Quit: garethr: Excess Flood | ||
| [2011/11/17 21:25:41] @ garethr joined channel #puppet | ||
| [2011/11/17 21:26:09] <flex___> o, that seems the only way, can not access a variable in a define using the namespace directly | ||
| [2011/11/17 21:27:28] <chequers> oh, i'm on 2.6 sorry | ||
| [2011/11/17 21:27:35] * chequers jsut learnt this | ||
| [2011/11/17 21:28:04] <flex___> in puppet 2.7 can not use the dynamic scope | ||
| [2011/11/17 21:29:45] @ Quit: neonflux: Quit: Leaving. | ||
| [2011/11/17 21:32:14] <flex___> the trouble is the variables for the define is not a fixed number... | ||
| [2011/11/17 21:34:00] <whack> flex___: you can with the namespace yes | ||
| [2011/11/17 21:34:07] <whack> flex___: scope.lookupvar("foo::bar::baz") | ||
| [2011/11/17 21:38:08] <flex___> whack: master give an error | ||
| [2011/11/17 21:38:19] <flex___> (Scope(Initd::Add[initd for ark-test])) Could not look up qualified variable 'ark::prelease::add_prelease::suffix'; class ark::prelease::add_prelease could not be found | ||
| [2011/11/17 21:38:44] <flex___> ark::prelease::add_prelease is a define not a class | ||
| [2011/11/17 21:40:34] @ adimania joined channel #puppet | ||
| [2011/11/17 21:52:15] @ jongrocho joined channel #puppet | ||
| [2011/11/17 21:55:04] @ Quit: jaschal: Quit: I'm outta here... | ||
| [2011/11/17 21:57:23] @ bmahe joined channel #puppet | ||
| [2011/11/17 21:57:23] @ Quit: bmahe: Changing host | ||
| [2011/11/17 21:57:23] @ bmahe joined channel #puppet | ||
| [2011/11/17 21:58:08] @ aditya_ joined channel #puppet | ||
| [2011/11/17 21:58:10] @ Quit: aditya_: Client Quit | ||
| [2011/11/17 21:59:23] @ bkerensa joined channel #puppet | ||
| [2011/11/17 22:00:43] @ hooper joined channel #puppet | ||
| [2011/11/17 22:00:52] @ bkerensa left channel #puppet ("Leaving") | ||
| [2011/11/17 22:01:26] <flex___> o, i can pass a hash to resolve this | ||
| [2011/11/17 22:01:58] @ Quit: jsurfer: Quit: jsurfer | ||
| [2011/11/17 22:06:49] @ jedi4ever joined channel #puppet | ||
| [2011/11/17 22:07:11] <limed> and it created records on the fly | ||
| [2011/11/17 22:08:44] @ Quit: jedi4ever: Client Quit | ||
| [2011/11/17 22:09:51] @ jedi4ever joined channel #puppet | ||
| [2011/11/17 22:11:40] @ sumsuch joined channel #puppet | ||
| [2011/11/17 22:16:53] @ sarkis_ joined channel #puppet | ||
| [2011/11/17 22:18:38] <limed> opps | ||
| [2011/11/17 22:18:44] <limed> heh didnt realized i said something here | ||
| [2011/11/17 22:21:02] @ mitchellh joined channel #puppet | ||
| [2011/11/17 22:22:04] @ bobbyz_ joined channel #puppet | ||
| [2011/11/17 22:27:12] @ Quit: ciupicri: Quit: Leaving | ||
| [2011/11/17 22:29:11] @ Quit: gniks: Quit: Leaving. | ||
| [2011/11/17 22:29:32] @ sdog joined channel #puppet | ||
| [2011/11/17 22:32:08] @ Quit: mosen: Quit: Leaving | ||
| [2011/11/17 22:33:11] @ Quit: sdog: Changing host | ||
| [2011/11/17 22:33:11] @ sdog joined channel #puppet | ||
| [2011/11/17 22:33:30] @ Quit: nokia3510: Excess Flood | ||
| [2011/11/17 22:34:25] @ nokia3510 joined channel #puppet | ||
| [2011/11/17 22:38:59] @ Quit: jongrocho: Remote host closed the connection | ||
| [2011/11/17 22:39:10] @ jodok joined channel #puppet | ||
| [2011/11/17 22:39:10] @ Quit: jodok: Changing host | ||
| [2011/11/17 22:39:10] @ jodok joined channel #puppet | ||
| [2011/11/17 22:47:24] @ Quit: alanna: Remote host closed the connection | ||
| [2011/11/17 22:48:38] @ tilgovi joined channel #puppet | ||
| [2011/11/17 22:48:39] @ Quit: tilgovi: Changing host | ||
| [2011/11/17 22:48:39] @ tilgovi joined channel #puppet | ||
| [2011/11/17 22:53:51] @ Quit: flex___: Remote host closed the connection | ||
| [2011/11/17 22:53:59] @ artkrz joined channel #puppet | ||
| [2011/11/17 22:54:36] @ Quit: tremble: Ping timeout: 260 seconds | ||
| [2011/11/17 22:56:33] @ Gwayne joined channel #puppet | ||
| [2011/11/17 22:57:47] @ Quit: mrwacky42: Quit: Leaving. | ||
| [2011/11/17 22:58:18] @ Quit: sdog: Quit: Leaving. | ||
| [2011/11/17 22:59:09] @ Quit: emergion: Quit: later... | ||
| [2011/11/17 22:59:19] @ emergion joined channel #puppet | ||
| [2011/11/17 23:00:00] @ mpdude joined channel #puppet | ||
| [2011/11/17 23:03:20] @ Quit: doprdele: Ping timeout: 244 seconds | ||
| [2011/11/17 23:04:25] @ Quit: emergion: Quit: later... | ||
| [2011/11/17 23:04:29] @ Quit: Gwayne: Remote host closed the connection | ||
| [2011/11/17 23:04:43] @ Quit: mitchellh: Quit: Computer has gone to sleep | ||
| [2011/11/17 23:07:29] @ mitchellh joined channel #puppet | ||
| [2011/11/17 23:09:06] @ bkdem joined channel #puppet | ||
| [2011/11/17 23:15:05] @ unique joined channel #puppet | ||
| [2011/11/17 23:16:16] @ Quit: choonming: Quit: Leaving | ||
| [2011/11/17 23:20:24] @ erthad joined channel #puppet | ||
| [2011/11/17 23:20:52] @ Quit: erthad: Changing host | ||
| [2011/11/17 23:20:53] @ erthad joined channel #puppet | ||
| [2011/11/17 23:22:10] @ Razique joined channel #puppet | ||
| [2011/11/17 23:26:05] @ SkoolZoMBiE joined channel #puppet | ||
| [2011/11/17 23:27:07] @ Quit: SkoolZoMBiE: Client Quit | ||
| [2011/11/17 23:28:00] @ Meier joined channel #puppet | ||
| [2011/11/17 23:29:27] @ Quit: unique: Ping timeout: 252 seconds | ||
| [2011/11/17 23:32:34] @ DJClean joined channel #puppet | ||
| [2011/11/17 23:33:28] @ Quit: negronjl: Ping timeout: 240 seconds | ||
| [2011/11/17 23:35:07] @ Quit: sumsuch: Quit: sumsuch | ||
| [2011/11/17 23:36:09] @ Stenbryggen joined channel #puppet | ||
| [2011/11/17 23:37:13] @ pmorillon joined channel #puppet | ||
| [2011/11/17 23:38:21] @ flex___ joined channel #puppet | ||
| [2011/11/17 23:41:58] @ Quit: larstobi: Quit: Leaving. | ||
| [2011/11/17 23:45:21] @ brtl joined channel #puppet | ||
| [2011/11/17 23:45:29] @ Quit: dgillies: Remote host closed the connection | ||
| [2011/11/17 23:45:29] @ sumsuch joined channel #puppet | ||
| [2011/11/17 23:45:35] @ Gwayne joined channel #puppet | ||
| [2011/11/17 23:46:15] <magicaltrout> morning guys, i asked this question last night, and the google group seems to be a bit wobbly(must be having server issues) so i'll try again in the hope the morning shift may know. I am trying to use the SSL class from camptocamps apache module. Within that class there is a File call that has a "source" declaration that doesn't exist until after the class has started to run as the file it requires is created by an Exec | ||
| [2011/11/17 23:46:59] <magicaltrout> I tried offloading the file call into a seperate definition but puppet still tries to validate the source | ||
| [2011/11/17 23:47:08] <magicaltrout> anyone got any bright ideas as to how i might get around this? | ||
| [2011/11/17 23:48:05] @ Quit: mitchellh: Quit: Computer has gone to sleep | ||
| [2011/11/17 23:50:08] @ MartVisser joined channel #puppet | ||
| [2011/11/17 23:51:14] @ verwilst joined channel #puppet | ||
| [2011/11/17 23:52:58] @ Quit: MartVisser: Client Quit | ||
| [2011/11/17 23:56:11] @ philbert_777 joined channel #puppet | ||
| [2011/11/17 23:56:51] @ Quit: Ebron: Read error: Operation timed out |
Generated by irclog2html.py 2.9.2 by Marius Gedminas - find it at mg.pov.lt!