Tuesday, 2010-07-20

[2010/07/20 00:03:41] @ Log started by gepetto
[2010/07/20 00:03:41] <johnw> what does this mean now in puppet 2.6: ip is a required attribute for hosts
[2010/07/20 00:03:51] <johnw> i'm seeing this error in my log, but don't understand why, where it's coming from, or how to fix it
[2010/07/20 00:03:54] <johnw> i'm using stored configs
[2010/07/20 00:05:19] <Volcane> sounds like you have host{} resources that doesnt specify ip => ...
[2010/07/20 00:05:22] <johnw> i guess i'll try dropping all my stored configs and starting over
[2010/07/20 00:05:26] <johnw> this is a new set of servers
[2010/07/20 00:05:35] <johnw> the upgrade to 2.6 worked on an existing system
[2010/07/20 00:06:22] @ pmorillo joined channel #puppet
[2010/07/20 00:08:29] <johnw> i also see a lot of "You cannot collect without storeconfigs being set"
[2010/07/20 00:08:32] <johnw> when in fact it is set
[2010/07/20 00:09:02] @ MattyM joined channel #puppet
[2010/07/20 00:09:41] <johnw> no, that same error appears: "Could not evaluate: ip is a required attribute for hosts"
[2010/07/20 00:09:52] @ Quit: ezekiel: Ping timeout: 276 seconds
[2010/07/20 00:09:55] <johnw> i don't get any indication why, when this worked perfectly under 0.25.6
[2010/07/20 00:10:38] @ alcy joined channel #puppet
[2010/07/20 00:14:12] @ shug joined channel #puppet
[2010/07/20 00:14:34] @ littleidea joined channel #puppet
[2010/07/20 00:15:13] <johnw> is there now a new way to enable storeconfigs?
[2010/07/20 00:17:17] <johnw> none of my clients can connect via SSL either. is there an upgrade guide for 2.6?
[2010/07/20 00:18:02] @ jmccune joined channel #puppet
[2010/07/20 00:18:31] <tim|mac> hey jmccune :)
[2010/07/20 00:21:37] <johnw> any idea what this means: "You cannot collect without storeconfigs being set"?
[2010/07/20 00:21:58] <johnw> besides the obvious. I have storeconfigs = true in my [master] section, and the postgres database is getting populated with facts
[2010/07/20 00:22:47] @ ezekiel joined channel #puppet
[2010/07/20 00:25:48] @ Quit: jmccune: Ping timeout: 240 seconds
[2010/07/20 00:32:02] @ jab_doa joined channel #puppet
[2010/07/20 00:32:46] <johnw> have storeconfigs changed in 2.6?
[2010/07/20 00:33:43] <johnw> even running puppetmasterd --storeconfigs, I still get the warning that they are not on, and thus my @@host is ignored, which I believe is leading to my "ip" problem
[2010/07/20 00:34:01] <tim|mac> no idea, not using 2.6 yet
[2010/07/20 00:34:09] <johnw> ahh
[2010/07/20 00:34:10] * tim|mac suggests the mailinglist
[2010/07/20 00:34:27] <johnw> i wish I had a packaged version of 0.25, I didn't want to spend the night fighting puppet
[2010/07/20 00:34:38] @ yannL joined channel #puppet
[2010/07/20 00:34:52] @ progre55 joined channel #puppet
[2010/07/20 00:35:26] <johnw> and i haven't been able to get a client to connect yet. Now I get this: Could not intern from pson: Syntax error at '=' at /root/puppet:13
[2010/07/20 00:35:29] <tim|mac> why don't you create a package of 0.25 then?
[2010/07/20 00:35:45] <johnw> i would'nt even know where to start to do that reliably
[2010/07/20 00:35:52] <tim|mac> which distro?
[2010/07/20 00:36:03] <johnw> CentOS 5.4, but I'm using a custom ruby to install via gem
[2010/07/20 00:36:11] <tim|mac> hm ok
[2010/07/20 00:36:19] <tim|mac> can't help with that, i'm afraid
[2010/07/20 00:36:25] <johnw> thanks for responding anyway
[2010/07/20 00:36:25] <tim|mac> has been ages since i last build a rpm
[2010/07/20 00:36:43] <tim|mac> one thing though
[2010/07/20 00:36:49] <tim|mac> gems are aweful :P
[2010/07/20 00:36:56] @ Quit: gniks: Quit: Leaving.
[2010/07/20 00:37:02] <johnw> it's the easiest way for me to upgrade puppet and its dependencies in one command
[2010/07/20 00:37:33] <tim|mac> in my limited experience with those, it's also the easiest way to create incompatibilities between libs and apps and break stuff
[2010/07/20 00:39:16] <alcy> folks, is there a way to make sure that in a class exec takes precedence or is executed before other resource types (like file) ?
[2010/07/20 00:39:54] <tim|mac> alcy: you can in 2.6, otherwise, it's hard
[2010/07/20 00:40:09] <tim|mac> most reliable way is to make all other resources in that class require the exec
[2010/07/20 00:41:30] <alcy> tim|mac: like this: file {require=>exec} ? but how will it know which instance of exec ?
[2010/07/20 00:42:37] <alcy> tim|mac: maybe like file{ "xyz": require=>exec["mkdir /var/abc"]}...not sure how to go about this
[2010/07/20 00:42:59] @ verwilst joined channel #puppet
[2010/07/20 00:43:09] <tim|mac> alcy: last thing is correct
[2010/07/20 00:43:17] <tim|mac> and use Exec
[2010/07/20 00:43:23] <tim|mac> since you reference an instantiated resource
[2010/07/20 00:43:26] <tim|mac> not a resource type
[2010/07/20 00:43:30] <johnw> ok, I found a way to drop everything back down to 0.25.4
[2010/07/20 00:44:02] <ptman> does anyone know if 2.6 will be packaged in time for debian squeeze?
[2010/07/20 00:44:06] <alcy> tim|mac: yup, sorry for that. thanks for confirming,.
[2010/07/20 00:45:43] <tim|mac> ptman: since squeeze is not frozen yet and the debian packages are usually fairly quick, I'd count on it
[2010/07/20 00:45:56] <tim|mac> ptman: i might be wrong, though
[2010/07/20 00:47:21] @ johnw left channel #puppet ()
[2010/07/20 00:50:36] <alcy> tim|mac: can you please see what's wrong with this: http://pastie.org/1051684 (small snippet, just the require line)?
[2010/07/20 00:51:44] <Volcane> alcy: you cant *create* resources in a require statement like that
[2010/07/20 00:51:49] <Volcane> alcy: you have to reference existing ones
[2010/07/20 00:52:35] <Volcane> not to mention how horrible all those mkdir's are, thats why you have puppet
[2010/07/20 00:52:49] <alcy> Volcane: that's what was confusing. so I should have an exec with the same action declared before and then again to refer it, I repeat the whole thing in a require statement
[2010/07/20 00:53:16] <Volcane> alcy: exec{"this exec sux cos i abuse puppet": command => "mkdir......."}
[2010/07/20 00:53:29] <Volcane> alcy: require => Exec["this exec sux cos i abuse puppet"]
[2010/07/20 00:53:44] <alcy> Volcane: heh. ok, Iam trying to mend my ways slowly. :D
[2010/07/20 00:53:56] <alcy> Volcane: point taken.
[2010/07/20 00:54:05] <Volcane> :)
[2010/07/20 00:58:29] @ Quit: mclarke: Quit: mclarke
[2010/07/20 00:59:54] @ spawnyd joined channel #puppet
[2010/07/20 01:03:32] @ Quit: littleidea: Quit: littleidea
[2010/07/20 01:26:47] @ Quit: M-: Quit: This computer has gone to sleep
[2010/07/20 01:34:55] @ glut joined channel #puppet
[2010/07/20 01:42:01] @ kolla joined channel #puppet
[2010/07/20 01:45:11] <alcy> is it possible to do something like exec{"command xyz": onlyif => "test `[! -e /abc/directory]`"} ?
[2010/07/20 01:46:04] <alcy> I mean, only do exec if directory/file doesn't exist ?
[2010/07/20 01:46:28] <Volcane> creates => "/abc/directory"
[2010/07/20 01:47:38] <alcy> oh wait thatw as so wrong, what I was suggesting. I want to create a soft link if it doesn't already exist. so that everytime puppetd is called, it doesn't attempt making the link again
[2010/07/20 01:50:24] @ andrewh joined channel #puppet
[2010/07/20 01:55:23] @ docelic joined channel #puppet
[2010/07/20 01:55:32] <alcy> Volcane: http://pastie.org/1051719, so basically I don't want this repeating again, so, am not sure what to use in this case ?
[2010/07/20 01:55:57] <Volcane> alcy: why dont you use file to create the link?
[2010/07/20 01:57:18] @ racerx joined channel #puppet
[2010/07/20 01:57:44] <racerx> Hiya all, today I have a more general best practice puppet question :) just for something different...
[2010/07/20 01:57:57] @ Quit: wilmoore: Read error: Connection reset by peer
[2010/07/20 01:58:21] <alcy> Volcane: didn't know how to. was looking for a quick fix. and the fact that the types reference page or for that matter puppetlabs isn't loading.
[2010/07/20 01:58:31] @ wilmoore joined channel #puppet
[2010/07/20 01:58:50] <Volcane> alcy: dont use puppet for quick fixes, thats not what its for and you _wil_ regret it :)
[2010/07/20 01:59:15] <Volcane> alcy: docs.puppetlabs.com doesnt work for you? works for me
[2010/07/20 02:00:02] <racerx> Its more to do with how I should structure and name things in /etc/puppet. Ive created users.pp which contains http://pastie.org/1051724 and Im calling it in my nodes.pp with import "users"
[2010/07/20 02:00:05] <alcy> Volcane: Tell me about it. I have mellowed down quite much ! Still learning of course ! :)
[2010/07/20 02:00:28] <alcy> Volcane: hmm, porbbaly some internal problem then
[2010/07/20 02:00:50] <Volcane> racerx: use modules, u more or less never need to use import
[2010/07/20 02:01:30] <Volcane> racerx: http://docs.reductivelabs.com/guides/modules.html
[2010/07/20 02:01:36] <racerx> Im also defining create user like this http://pastie.org/1051726
[2010/07/20 02:01:56] <racerx> hrm so that should be done as a module too then
[2010/07/20 02:01:56] <Volcane> alcy: http://82.113.151.205/ :)
[2010/07/20 02:02:04] <Volcane> racerx: everything in modules
[2010/07/20 02:02:24] <racerx> So all the import stuff is legacy now?
[2010/07/20 02:02:32] <Volcane> racerx: and you also want to avoid creating resources in node {} blocks
[2010/07/20 02:02:58] <racerx> so can i call the users.pp /etc/puppet/modules/users/init.pp just like any other module
[2010/07/20 02:02:59] <Volcane> racerx: so make a users module with users::create_user define and use it in the class users::jack
[2010/07/20 02:03:20] <Volcane> racerx: and in node block just include that users::jack class
[2010/07/20 02:03:37] @ Quit: wilmoore: Ping timeout: 276 seconds
[2010/07/20 02:04:06] <Volcane> racerx: that way if jacks is on 100s machines and you're including the class you have one change to make, not 100 as when you put the logic in the node blocks
[2010/07/20 02:05:26] <racerx> Volcane: Im a little confused with the users::create_user bit.. currently I have the create_user only on one node (in the nopes.pp) but would move it to my base node that is inherited by all others
[2010/07/20 02:05:58] @ plathrop is now known as plathrop-away
[2010/07/20 02:05:58] <racerx> Volcane: let me get this rite... I can move users.pp to /etc/pupppet/modules/users/init.pp ?
[2010/07/20 02:07:03] <alcy> racerx: users/manifests/init.pp
[2010/07/20 02:07:14] <racerx> alcy: sorry.. meant that :)
[2010/07/20 02:07:38] <alcy> Volcane: thanks for that
[2010/07/20 02:07:46] <racerx> Volcane: but how excatly do I do what Im doing here: http://pastie.org/1051726
[2010/07/20 02:08:28] <Volcane> racerx: make a class users::failsafe put that stuff in there
[2010/07/20 02:08:45] <Volcane> then node "cleveland" inherits base { include users::failsafe }
[2010/07/20 02:09:45] <racerx> Volcane: ahh ok... should the create_user{"failsafe": xxxx} be in the init.pp where they are also defined?
[2010/07/20 02:09:56] <racerx> Volcane: or in a seperate module?
[2010/07/20 02:10:08] <Volcane> racerx: the module documentation is in the link above and it tells you where to put things
[2010/07/20 02:12:39] * ssm has uploaded debian packages of puppet 2.6.0-1 to "experimental".
[2010/07/20 02:17:48] @ gebi joined channel #puppet
[2010/07/20 02:18:43] @ bkohler joined channel #puppet
[2010/07/20 02:21:15] @ Quit: bkohler: Client Quit
[2010/07/20 02:21:33] @ bkohler joined channel #puppet
[2010/07/20 02:22:36] <progre55> hi people! I'm new to puppet, and want to try it out. However, at the moment I'm a little confused with the information overload reading the docs :) Any tutorials or guides, for instance, on sync'ing a directory in multiple clients?
[2010/07/20 02:23:14] @ itguru joined channel #puppet
[2010/07/20 02:23:14] @ Quit: itguru: Changing host
[2010/07/20 02:23:14] @ itguru joined channel #puppet
[2010/07/20 02:23:18] <progre55> for example, if a file is changed in the master, the change should reflect all the other clients
[2010/07/20 02:26:10] <racerx> Volcane: Ok... could you ahve a quick look at this and tell me its its best practice :) http://pastie.org/1051738
[2010/07/20 02:26:24] <henk> progre55: what's the status?
[2010/07/20 02:26:27] <racerx> Im calling is in node as you said "include user::dsmith
[2010/07/20 02:26:56] @ rasputnik joined channel #puppet
[2010/07/20 02:27:12] <progre55> henk: the status of what?
[2010/07/20 02:27:24] <henk> progre55: your server...
[2010/07/20 02:27:34] <henk> progre55: do you have anything running so far? have you tried simple manifests?
[2010/07/20 02:28:04] <progre55> henk: I havent yet installed puppets, thought maybe need to create manifests first..
[2010/07/20 02:28:24] <ptman> http://www.puppetlabs.com/misc/download-options/ -- still states rc4
[2010/07/20 02:28:46] <henk> no, i'd just install puppet and make sure the client can communication with the server. then write a simple manifest and see if it works. then start...
[2010/07/20 02:30:15] <progre55> henk: thanks, I'll do that
[2010/07/20 02:30:37] <progre55> got to find a good installation guide for ubuntu now =)
[2010/07/20 02:35:49] * henk .oO( always needs to be a guide or howto or tutorial for ubuntu lusers it seems... )
[2010/07/20 02:36:28] * progre55 lols :D
[2010/07/20 02:37:05] <progre55> well, I figured I'd just install it from the repos..
[2010/07/20 02:37:12] <sejo> can I add a define in a class and use it in another class?
[2010/07/20 02:37:15] <sejo> or where should i put the define?
[2010/07/20 02:39:56] <sejo> got it
[2010/07/20 02:44:07] @ kazoo joined channel #puppet
[2010/07/20 02:51:18] <sejo> 0.25 doesn't know hashes right?
[2010/07/20 02:52:00] <Volcane> racerx: you obviously didnt read the link i pasted, so no i wont be reading your pastie.
[2010/07/20 02:54:03] <racerx> Volcane: I did read the link...
[2010/07/20 02:54:39] <racerx> but fine, thanks for the help.
[2010/07/20 02:55:57] <racerx> Its unfortunate, there is so much conflicting documentation online, and even coming here asking for advice gets responses that official documentation is sometimes not correct either. Im not entirely sure what the issue is tbh.
[2010/07/20 02:56:30] <henk> racerx: try thinking, that might help :-p
[2010/07/20 02:56:31] <Volcane> the modules documentation is good, i know which docs are rubbish and which arent, and I recommend the ones that document actual behavior
[2010/07/20 02:56:54] <Volcane> now if you followed the docs, and showed you were putting files where the doc says they should go and it still didnt work, I'd be glad to help
[2010/07/20 02:57:44] <racerx> I was just asking if I should (or could) split the actual user classes from the main init.pp
[2010/07/20 02:57:56] <racerx> I dont see that explicitly documented there
[2010/07/20 02:58:13] <racerx> but perhaps ill try thinking harder... thanks for the tip henk
[2010/07/20 02:58:49] <Volcane> racerx: the doc tells you how to split, what files to put in and how to handle that
[2010/07/20 03:01:24] <racerx> Volcane: I know, I still didn't completely understand it, I asked another question and pasted a link. Seriously, what have I done wrong? Im a new puppet user and asking questions.. last week I was in here asking what is the best way to give back to the community and make everything I've done available for others. Im seriously confused with the sentiment here.
[2010/07/20 03:02:14] @ M- joined channel #puppet
[2010/07/20 03:02:36] <racerx> Volcane: Obviously there is an issue, I dont really have time for this... Im going to thank you for you help to date and thats it.
[2010/07/20 03:04:16] <Volcane> racerx: there's no issue. I am happy to help when it doesnt cost me too much time to re-itterate the same things to the same person, once that gets too much from a certain person or when the person asks questions suggesting he either didnt read what i said or the links i posted then I just choose not to spend my time further on that
[2010/07/20 03:04:32] <Volcane> racerx: its not like i am being paid to help people, i am self emplyoed, helping people *costs me money*
[2010/07/20 03:04:36] <Volcane> racerx: so i choose who i help.
[2010/07/20 03:05:10] <Legooolas> The changes in 2.6.0 look pretty cool.
[2010/07/20 03:05:36] <Legooolas> Are they mostly to help with getting modules to be more generic, with just a bunch of external settings to configure them?
[2010/07/20 03:05:48] <rasputnik> the 2.6 changes look humongous tbh :/ Luckily I won't have to worry about it til EPEL spin a RPM .
[2010/07/20 03:05:56] <Volcane> Legooolas: the parameterised classes? (there's a ton of new things)
[2010/07/20 03:06:17] <Legooolas> (seems that way from the look of the parameterised classes and hases)
[2010/07/20 03:06:18] <Legooolas> yeah
[2010/07/20 03:06:20] * rasputnik only got up to 02.5.x last Tuesday.
[2010/07/20 03:06:23] <Legooolas> *hashes
[2010/07/20 03:06:58] <Volcane> Legooolas: yeah. external tools will also be able to interrogate that, so when say you include apache from the puppet dashboard it can ask you questions that it knows the class needs for example
[2010/07/20 03:07:01] <Legooolas> Are the hashes meant to be so that you can do things like create a big table of all your settings centrally (like in roles.pp or something)
[2010/07/20 03:07:11] <Legooolas> *nod*
[2010/07/20 03:08:35] <rasputnik> is it going to support hash merging? that'd be really powerful way to set defaults and override them.
[2010/07/20 03:08:51] <Volcane> racerx: not sure
[2010/07/20 03:09:18] <Volcane> rasputnik: not sure
[2010/07/20 03:09:20] <Volcane> even.
[2010/07/20 03:09:33] <Volcane> rasputnik: i guess it depends on what people need when they start using it
[2010/07/20 03:09:36] <rasputnik> need to get my storeconfigs sorted next. not being able to export facts cross-node is starting to be a problem.
[2010/07/20 03:09:44] @ Quit: kazoo: Excess Flood
[2010/07/20 03:09:52] <Legooolas> rasputnik: Do that, it's great :D
[2010/07/20 03:10:00] <Volcane> rasputnik: export facts in what way?
[2010/07/20 03:10:03] <rasputnik> have been happy to be SQL freee though.
[2010/07/20 03:10:07] <Legooolas> I just got all my Nagios config auto-generating, it's brill.
[2010/07/20 03:10:24] <rasputnik> Volcane: what's the terminology : exported resources ?
[2010/07/20 03:10:43] <Volcane> rasputnik: yeah just wondering what your use case is if you're mentioning facts
[2010/07/20 03:11:02] <rasputnik> Legooolas: that's the sort of thing I want; that, auto-populating Cacti, etc.
[2010/07/20 03:11:14] <rasputnik> Volcane: I probably don't mean facts.
[2010/07/20 03:11:15] <Legooolas> The only problems I have so far are if I want to remove nodes (need to look at the tools, but haven't had to yet), and that if I've missed machines then I don't notice as the monitoring server doesn't start monitoring nodes until they've been run on the client first
[2010/07/20 03:12:01] <Legooolas> I'm using exported resources to do a client/server mapping for UPS connections at the moment
[2010/07/20 03:12:23] <Legooolas> I've not got to the point where I need to write any custom facts or anything yet, so I'm wondering how far away that is..
[2010/07/20 03:12:58] <rasputnik> Volcane: mcollective can see custom facts, can't it?
[2010/07/20 03:13:27] <Volcane> rasputnik: i find exported resources a bit of a weird fit, having to say file, or nagios_service on a node and then realizing those resources on some other node. i find itterating in templates better but i guess thats just cos i am programming a lot
[2010/07/20 03:13:28] @ Quit: ceren: Quit: ceren
[2010/07/20 03:13:31] <Volcane> rasputnik: yup
[2010/07/20 03:13:38] @ Quit: itguru: Quit: No Ping reply in 180 seconds.
[2010/07/20 03:14:03] @ itguru joined channel #puppet
[2010/07/20 03:14:07] @ Quit: itguru: Changing host
[2010/07/20 03:14:07] @ itguru joined channel #puppet
[2010/07/20 03:14:14] <Legooolas> How "basic" is the basic windows support in 2.6.0?
[2010/07/20 03:14:31] <rasputnik> had a quick go at deploying it on Friday , but don't know *mq from a hole in the ground, which scared me off.
[2010/07/20 03:14:50] <Volcane> rasputnik: heh, in the ext directory on github are configs that Just Work for that
[2010/07/20 03:18:07] @ Quit: devdas: Remote host closed the connection
[2010/07/20 03:20:04] @ ckauhaus joined channel #puppet
[2010/07/20 03:21:31] <rasputnik> Volcane: have you been using it for a while on other work then? I'd have picked XMPP myself, but I think that's Golden Hammer Syndrome.
[2010/07/20 03:33:51] @ Quit: shug: Quit: Leaving
[2010/07/20 03:36:48] <Volcane> rasputnik: its pluggable, its just what I already knew but you can replace it with whatever
[2010/07/20 03:37:35] @ devdas joined channel #puppet
[2010/07/20 03:37:37] <Volcane> rasputnik: like this 182 lines of code is the entire stomp connector
[2010/07/20 03:37:39] <Volcane> rasputnik: http://github.com/mcollective/marionette-collective/blob/master/plugins/mcollective/connector/stomp.rb
[2010/07/20 03:41:53] @ squirrel_labs joined channel #puppet
[2010/07/20 03:43:01] @ Quit: M-: Quit: Leaving
[2010/07/20 03:50:32] * alcy feels #mcollective needs some marketing :P
[2010/07/20 03:50:32] <rasputnik> Volcane: aah, interesting. Will definitely take another look then, thanks.
[2010/07/20 03:51:25] * rasputnik picks over MCollective::Connector::Base
[2010/07/20 03:51:54] @ Quit: ckauhaus: Read error: Operation timed out
[2010/07/20 03:54:43] @ jense joined channel #puppet
[2010/07/20 03:57:43] @ ckauhaus joined channel #puppet
[2010/07/20 03:57:53] @ Quit: gebi: Ping timeout: 260 seconds
[2010/07/20 04:01:18] @ Quit: TREllis: *.net *.split
[2010/07/20 04:01:18] @ Quit: ahasenack: *.net *.split
[2010/07/20 04:01:18] @ Quit: yure: *.net *.split
[2010/07/20 04:01:19] @ Quit: carlasouza: *.net *.split
[2010/07/20 04:01:19] @ Quit: snikkers: *.net *.split
[2010/07/20 04:01:19] @ Quit: huggie: *.net *.split
[2010/07/20 04:03:36] @ TREllis joined channel #puppet
[2010/07/20 04:03:36] @ ahasenack joined channel #puppet
[2010/07/20 04:03:36] @ yure joined channel #puppet
[2010/07/20 04:03:36] @ carlasouza joined channel #puppet
[2010/07/20 04:03:36] @ snikkers joined channel #puppet
[2010/07/20 04:03:36] @ huggie joined channel #puppet
[2010/07/20 04:04:04] @ rasputnik left channel #puppet ()
[2010/07/20 04:04:04] @ Quit: ecolitan: Excess Flood
[2010/07/20 04:04:04] @ ecolitan_ joined channel #puppet
[2010/07/20 04:04:19] <Volcane> rasputnik: though it has to be said the stomp connecter is awesome, connection pools, failover between nodes etcetc
[2010/07/20 04:04:23] @ rasputnik joined channel #puppet
[2010/07/20 04:05:10] <rasputnik> Volcane: think I'm getting old. the idea of rolling out new infrastructre puts me off.
[2010/07/20 04:05:15] <Volcane> heh
[2010/07/20 04:05:24] <Volcane> yeah if you have xmpp already it would be worth it
[2010/07/20 04:05:50] <Volcane> against what the comments in MC::Connector says I have made the topic names etc configurable
[2010/07/20 04:05:54] <kuh> hi guys, is it possible to have submodules in module subdirectories? I'd like /modules/foo/packages.pp to be in /modules/foo/packages/init.pp, but it doesnt autoload. Should it be in /modules/foo/packages/packages.pp instead?
[2010/07/20 04:06:12] <rasputnik> think I'll try the golden path first, get a feel for what it does etc and then think about being 'special'.
[2010/07/20 04:06:24] <Volcane> kuh: yeah sadly, i made a ticket to get the behavior you want which I'd prefer too but its not there yet
[2010/07/20 04:06:53] <Volcane> rasputnik: kewl, well the configs in git would just work out the box for you
[2010/07/20 04:06:56] <kuh> Volcane: ah, thanks :-)
[2010/07/20 04:07:18] @ herdingcat joined channel #puppet
[2010/07/20 04:07:50] <rasputnik> I'll spin up a little Virtualbox test VLAN and have at it next week (migrating to google apps and rackspace this week).
[2010/07/20 04:11:29] @ gergund joined channel #puppet
[2010/07/20 04:11:57] <gergund> Hi everyone !
[2010/07/20 04:12:47] <gergund> I have one small question. There is any install manuall for puppet dashboard ?
[2010/07/20 04:14:20] <alcy> gergund: its there on the docs page
[2010/07/20 04:17:03] @ Quit: gergund: Ping timeout: 252 seconds
[2010/07/20 04:18:30] @ Quit: ahasenack: Ping timeout: 260 seconds
[2010/07/20 04:19:01] @ Quit: alexine_dsouza: Read error: Connection reset by peer
[2010/07/20 04:23:40] <alcy> is it possible to use generic linux commands and tools like sed/awk etc. which comprise a mjor chunk of quite a few shell scripts , in erb templates ? I need to port a lot of shell script code into templates, but not sure if that's really an uphill task.
[2010/07/20 04:26:45] <joschi> alcy: what do you exactly mean with using them in ERB templates?
[2010/07/20 04:28:02] <joschi> alcy: the templates are evaluated on the server and the result is sent to the client. so if you have a template for foo.sh which contains calls to sed/awk/whatever, you can still use them in the shell script.
[2010/07/20 04:29:06] <alcy> joschi: lets say a shell script takes a string and breaks it into two separate strings using filters with sed, grep etc. eventually these strings are used by the shell script to set a variable(s) in a configuration file.
[2010/07/20 04:29:41] <Volcane> alcy: ruby has excellent string handling.
[2010/07/20 04:30:37] <Volcane> you'd be better off spending some time learning that
[2010/07/20 04:30:37] @ Quit: squirrel_labs: Quit: See ya!
[2010/07/20 04:32:47] <alcy> Volcane: alright, will do. :) not sure of the learning curve though. or how much different it would be from writing sed and grep filters.
[2010/07/20 04:33:21] <Volcane> "some long string".split(" ").join("-")
[2010/07/20 04:33:27] <Volcane> that makes some-long-string
[2010/07/20 04:33:33] <Volcane> "some long string".split(" ")[2]
[2010/07/20 04:33:37] <Volcane> that make "string"
[2010/07/20 04:34:05] <Volcane> that kind of thing, not very hard
[2010/07/20 04:34:37] <alcy> Volcane: oh that ? i messed around with those in some of foreman's code to sort out some inconsistency with release numbers etc. anyway, good to know !
[2010/07/20 04:34:50] <Volcane> also has perl style reg:
[2010/07/20 04:35:12] <Volcane> if something =~ /some (.+) string/
[2010/07/20 04:35:16] <Volcane> var = $1
[2010/07/20 04:35:17] <Volcane> end
[2010/07/20 04:35:23] <Volcane> that'll leave "long" in var
[2010/07/20 04:36:22] <alcy> ah alright. there are quite a few shell scripts, I need to work on. hmm, thanks for the quich tutorial Volcane
[2010/07/20 04:36:57] <hal-j> I'm an innocent bystander here, but I think that in the long run you'll be much happier porting your shell scripts to templates, rather than bending over backwards to keep them around (and then distributing / execing them on the hosts).
[2010/07/20 04:37:11] <Volcane> hal-j: totally
[2010/07/20 04:37:25] <hal-j> especially as new ops guys come on board and need to come up to speed
[2010/07/20 04:37:36] <spawnyd> alcy: ues "irb" on the cli to play around with ruby
[2010/07/20 04:38:00] @ Quit: devdas: Remote host closed the connection
[2010/07/20 04:39:13] <alcy> spawnyd: nice, thanks !;)
[2010/07/20 04:39:42] @ MPSimmons joined channel #puppet
[2010/07/20 04:40:10] <alcy> hal-j: thanks for validating my line of reasoning as well. that's exactly what I need to, will do.
[2010/07/20 04:40:27] <dcarley> real programming string manipulation can be a breath of fresh air if you're used to a lot of bash/awk/sed manip.
[2010/07/20 04:41:49] @ Quit: Determinist: Remote host closed the connection
[2010/07/20 04:44:34] @ ceren joined channel #puppet
[2010/07/20 04:55:46] @ Quit: ninjazjb_: Ping timeout: 246 seconds
[2010/07/20 04:59:20] <henk> 'sigh' i always forget: do i need require and subscribe or is subscribe enough?
[2010/07/20 04:59:27] <henk> or even before =>?
[2010/07/20 05:00:20] <henk> hm... or is require enough? o_O i'm confused, please help! is there a page somewhere explaining all this dependency stuff?
[2010/07/20 05:01:28] <fenris02> iirc, subscribe is akin to 'after', and does also require
[2010/07/20 05:01:48] <hal-j> they're described here: http://docs.puppetlabs.com/references/stable/metaparameter.html
[2010/07/20 05:01:53] <hal-j> (along with others)
[2010/07/20 05:03:10] @ \ask_ joined channel #puppet
[2010/07/20 05:04:02] <henk> so we have 'after' and 'before' which order resources. then we have 'require' which ... is basically also just for ordering and behaves like 'after', right? there is no aequivalent to 'before', is there?
[2010/07/20 05:05:09] <hal-j> there's an after?
[2010/07/20 05:05:18] @ Quit: \ask: Ping timeout: 265 seconds
[2010/07/20 05:05:20] <henk> oh, there used to be afair...
[2010/07/20 05:05:27] <hal-j> ah
[2010/07/20 05:05:54] <fenris02> before is before :)
[2010/07/20 05:06:09] @ ahasenack joined channel #puppet
[2010/07/20 05:06:11] <fenris02> "This parameter is the opposite of require – it guarantees that the specified object is applied later than the specifying object:"
[2010/07/20 05:06:35] <henk> but you're right, it's not on the page, so it's probably gone due to redundancy...
[2010/07/20 05:07:14] <henk> subscribe: One or more objects that this object depends on
[2010/07/20 05:07:37] <henk> sounds like subscribing includes requiring a resource...
[2010/07/20 05:07:48] <jmslagle> Yeah
[2010/07/20 05:07:56] <jmslagle> But subscribe also schedules a change
[2010/07/20 05:08:18] <jmslagle> so it triggers an object to be checked based on another changing
[2010/07/20 05:08:24] <jmslagle> So you can restart a service for instance
[2010/07/20 05:08:34] <hal-j> its counterpart is notify
[2010/07/20 05:08:50] <hal-j> fwiw
[2010/07/20 05:09:33] <henk> yup, so subscribe is enough, no need for require. thanks ;)
[2010/07/20 05:11:40] <hal-j> hm
[2010/07/20 05:11:52] <hal-j> does subscribe infer requre? I won't swear to it
[2010/07/20 05:12:04] @ gebi joined channel #puppet
[2010/07/20 05:12:35] <henk> hal-j: well, the example on the metaparameter page doesn't use require, only subscribe, so i guess it does...
[2010/07/20 05:12:37] @ Quit: ckauhaus: Read error: Operation timed out
[2010/07/20 05:12:42] <ohadlevy> it does..
[2010/07/20 05:13:17] @ Quit: londo_: Read error: Connection reset by peer
[2010/07/20 05:13:30] <henk> ohadlevy: thanks
[2010/07/20 05:13:48] @ londo_ joined channel #puppet
[2010/07/20 05:14:22] @ Bass10 joined channel #puppet
[2010/07/20 05:14:29] @ snoop joined channel #puppet
[2010/07/20 05:17:54] @ Quit: rasputnik: Quit: rasputnik
[2010/07/20 05:19:08] @ Quit: bug: Quit: bug
[2010/07/20 05:22:56] <progre55> hey guys, I want to synchronize a whole directory. First off, does the directory have to be under /etc/puppet/ on the master server? Also, would I have to create a module for that? (my first day with puppet :) )
[2010/07/20 05:23:27] <jmslagle> I need to look at your apache module Ohad and see if it meets my needs :)
[2010/07/20 05:23:32] @ devdas joined channel #puppet
[2010/07/20 05:23:39] <henk> progre55: i guess it should be there. and you should imho create a module...
[2010/07/20 05:23:58] <ptman> progre55, no and no, but it will be easier if you think that I answered yes and yes
[2010/07/20 05:23:59] @ schimmi1 joined channel #puppet
[2010/07/20 05:24:00] <progre55> henk: could it just be a symlink?
[2010/07/20 05:24:26] <fenris02> ptman, nice answer :)
[2010/07/20 05:24:27] <henk> progre55: sorry, don't know...
[2010/07/20 05:24:54] <progre55> found this "tip" http://docs.puppetlabs.com/guides/techniques.html on directories, but not sure where to place that code
[2010/07/20 05:24:56] <jmslagle> Or is it specific to foreman?
[2010/07/20 05:24:58] <fenris02> progre55, it would seem in bad form to use a symlink. you'd be better off replicating it
[2010/07/20 05:25:27] <henk> progre55: that's a manifest...
[2010/07/20 05:25:51] @ Quit: schimmi: Ping timeout: 276 seconds
[2010/07/20 05:26:19] <progre55> fenris02, henk: thanks guys, will try to experiment now :)
[2010/07/20 05:27:54] <ecolitan_> may i specify a file path with a relative path? eg file { "~user/.vimrc"
[2010/07/20 05:32:13] <progre55> so I've replicated the needed files into /etc/puppet/files and created a manifest in /etc/puppet/manifests/site.pp and now how do I set it as a default manifest?
[2010/07/20 05:33:01] <fenris02> node default { ... }
[2010/07/20 05:33:23] @ [GuS] joined channel #puppet
[2010/07/20 05:33:52] <progre55> fenris02: where? in puppet.conf?
[2010/07/20 05:35:14] <spawnyd> progre55: puppetmasterd just parse /etc/puppet/manifests/site.pp . If you want other files to be parsed you have to import them there
[2010/07/20 05:35:14] @ Quit: \ask_: Remote host closed the connection
[2010/07/20 05:35:16] <fenris02> site.pp if you wanted. maybe you'd like to visit example42.com ?
[2010/07/20 05:38:47] <progre55> oh cool, thanks
[2010/07/20 05:40:13] @ rasputnik joined channel #puppet
[2010/07/20 05:40:14] @ Quit: showy: Ping timeout: 258 seconds
[2010/07/20 05:40:26] @ beata- joined channel #puppet
[2010/07/20 05:40:39] @ Bass2 joined channel #puppet
[2010/07/20 05:41:37] @ Quit: Bass2: Read error: Connection reset by peer
[2010/07/20 05:41:58] @ rasputnik left channel #puppet ()
[2010/07/20 05:42:04] @ Bass2 joined channel #puppet
[2010/07/20 05:42:10] @ Quit: beata: Ping timeout: 252 seconds
[2010/07/20 05:42:42] @ rasputnik joined channel #puppet
[2010/07/20 05:42:42] @ rasputnik left channel #puppet ()
[2010/07/20 05:43:15] @ Quit: Bass10: Ping timeout: 245 seconds
[2010/07/20 05:43:59] @ Quit: scooby2: Ping timeout: 264 seconds
[2010/07/20 05:44:32] @ alcy left channel #puppet ()
[2010/07/20 05:44:34] @ scooby2 joined channel #puppet
[2010/07/20 05:44:55] @ \ask joined channel #puppet
[2010/07/20 05:45:07] <progre55> just one more thing, please. Having trouble establishing a client-server connection. Have the server IP in /etc/hosts and trying to run "puppetd --waitforcert 10 --test" on the client but the server doesnt see any certificates to sign..
[2010/07/20 05:45:10] @ ckauhaus joined channel #puppet
[2010/07/20 05:45:23] @ Quit: \ask: Remote host closed the connection
[2010/07/20 05:45:31] <fenris02> did you use the fqdn ?
[2010/07/20 05:45:46] @ \ask joined channel #puppet
[2010/07/20 05:46:17] <progre55> nope, it just says "No certificates to sign" when I run "puppetca --list"
[2010/07/20 05:46:27] <agaffney> progre55: and what does the client say?
[2010/07/20 05:46:40] <agaffney> it should say something about sending a certificate request
[2010/07/20 05:46:47] @ showy joined channel #puppet
[2010/07/20 05:46:55] <agaffney> or that it can't continue because it didn't get a signed certificate
[2010/07/20 05:47:09] <progre55> "warning: peer certificate won't be verified in this SSL session" "notice: Did not receive certificate" "notice: Set to run 'one time'; exiting with no certificate"
[2010/07/20 05:47:10] <hal-j> are you 100% sure you're running "puppetca —list" as the right user (root most likely)
[2010/07/20 05:47:32] <progre55> oh, not as root..
[2010/07/20 05:47:34] <progre55> sec
[2010/07/20 05:47:52] <progre55> oh yeah, I can see the fqdn of the client now! =)
[2010/07/20 05:47:55] <progre55> thanks
[2010/07/20 05:49:49] @ Quit: cliff-hm: Ping timeout: 258 seconds
[2010/07/20 05:50:35] @ Quit: \ask: Ping timeout: 258 seconds
[2010/07/20 05:51:10] <progre55> so, now the client says "err: //File[/usr/share/tomcat6]: Failed to retrieve current state of resource: Cannot access mount[files] Could not describe /files/tomcat/share/tomcat6: Cannot access mount[files] at /etc/puppet/manifests/site.pp:4" does it mean the server cannot locate the files?
[2010/07/20 05:51:51] <fenris02> did you populate /etc/puppet/fileserver.conf ?
[2010/07/20 05:54:38] <progre55> yeah, there is fileserver.conf but with default content
[2010/07/20 05:56:24] @ Quit: ckauhaus: Ping timeout: 276 seconds
[2010/07/20 05:57:19] <progre55> here is my site.pp http://pastie.org/1051939 and I think the "source" is incorrect or smth
[2010/07/20 05:57:28] <progre55> fenris02: can you please have a look?
[2010/07/20 05:58:57] <fenris02> your sources line needs to start with "puppet://${server}/sharename" where you define the sharename in fileserver.conf
[2010/07/20 05:59:06] <progre55> and here is what the client says http://pastie.org/1051941
[2010/07/20 05:59:39] <progre55> oh, and what's server? can I just use "puppet" as I have the IP bound in /etc/hosts?
[2010/07/20 05:59:55] <hal-j> I'd also suggest putting this in a module before you get too far :)
[2010/07/20 06:00:34] <progre55> hal-j: any tutorials on that, please? )
[2010/07/20 06:01:04] <hal-j> http://projects.puppetlabs.com/projects/puppet/wiki/Puppet_Modules should get you started
[2010/07/20 06:01:11] @ \ask joined channel #puppet
[2010/07/20 06:02:07] <progre55> hal-j: thanks
[2010/07/20 06:02:10] <hal-j> People here have mentioned bits of the docs being out of date, so I won't swear to anything. the puppet version I'm using is more out of date, so I haven't noticed :)
[2010/07/20 06:02:30] <progre55> oh and also, when starting a client deamon (puppetd), do I need to start it with root priv?
[2010/07/20 06:02:30] @ alban2 joined channel #puppet
[2010/07/20 06:03:02] <joschi> progre55: yes. otherwise it couldn't create/edit/delete files everywhere
[2010/07/20 06:04:12] <progre55> joschi: thanks
[2010/07/20 06:04:41] @ radkin joined channel #puppet
[2010/07/20 06:16:05] @ bug joined channel #puppet
[2010/07/20 06:19:49] <progre55> what does "Mounts without paths are not usable" mean?
[2010/07/20 06:20:18] <progre55> here is the whole error message: "err: //File[/usr/share/tomcat6]: Failed to retrieve current state of resource: Mounts without paths are not usable Could not describe /modules/tomcat6/files/tomcat/share/tomcat6: Mounts without paths are not usable at /etc/puppet/modules/tomcat6/manifests/init.pp:4"
[2010/07/20 06:20:33] @ Quit: \ask: Remote host closed the connection
[2010/07/20 06:20:56] @ \ask joined channel #puppet
[2010/07/20 06:21:46] <progre55> actually, I think I still have a problem naming my server
[2010/07/20 06:22:12] <progre55> source => "puppet:///modules/tomcat6/files/tomcat/share/tomcat6"
[2010/07/20 06:22:27] <zipkid> progre55: a 0.24 client on 0.25 server?
[2010/07/20 06:22:35] <henk> can the 'responsefile => ' point to "puppet:///mymod/files/bla/foo/responsefile.txt"?
[2010/07/20 06:23:09] <ashp> i really should look at 0.26 but i'm lazy :/
[2010/07/20 06:23:21] <progre55> zipkid: dong think so, I have installed both of them from the repos..
[2010/07/20 06:23:37] <hal-j> you want puppet:///modules/tomcat6/tomcat/share/tomcat6, if your file is /etc/puppet/modules/tomcat6/files/share/tomcat6
[2010/07/20 06:23:56] <progre55> 0.24.8
[2010/07/20 06:24:13] <hal-j> or, perhaps, puppet:///tomcat6/tomcat/share/tomcat6 if your puppet is old enough
[2010/07/20 06:25:08] <progre55> hal-j: it is /etc/puppet/modules/tomcat6/files/tomcat/share/tomcat6/
[2010/07/20 06:25:26] @ Quit: \ask: Ping timeout: 260 seconds
[2010/07/20 06:25:41] <hal-j> puppet:///tomcat6/tomcat/share/tomcat6 then
[2010/07/20 06:25:50] <hal-j> or puppet:///modules/tomcat6/tomcat/share/tomcat6
[2010/07/20 06:27:39] <progre55> hal-j: awesome! "puppet:///tomcat6/tomcat/share/tomcat6" worked )
[2010/07/20 06:29:01] <hal-j> I believe that's deprecated in more modern puppets, but you're good in 0.24.8
[2010/07/20 06:29:25] <progre55> hal-j: yeah. so I suppose the repos contain the old version..
[2010/07/20 06:29:40] <zipkid> progre55: as i said, an older client..
[2010/07/20 06:29:55] <progre55> and the whole directory with all the files are being created.. except one file: "err: //File[/etc/tomcat6/tomcat-users.xml]: Failed to retrieve current state of resource: No specified source was found from puppet:///tomcat6/tomcat/etc/tomcat6/tomcat-users.xml"
[2010/07/20 06:30:24] <progre55> zipkid: and the server is old, too =)
[2010/07/20 06:30:43] @ DbT_ joined channel #puppet
[2010/07/20 06:30:44] <zipkid> then dont use //modules/
[2010/07/20 06:32:05] <progre55> zipkid: yep, it's working now
[2010/07/20 06:32:26] <DbT_> Volcane: Hi, thanx again for last assistance with notice; sorry I was a little distracted. I now understand what happened - I have used a define without including the class... with strange behaviour as result.
[2010/07/20 06:33:17] <progre55> oh and when I just run the client, I get this http://pastie.org/1052000 is anything missing in /var/lib/puppet/lib? the directory exists..
[2010/07/20 06:33:24] <Volcane> DbT_: hmm. yeh better to just put defines in their own files correctly named, that'll avoid that
[2010/07/20 06:34:06] @ jslagle joined channel #puppet
[2010/07/20 06:34:11] <Volcane> yeah
[2010/07/20 06:34:14] <jslagle> Hrm.
[2010/07/20 06:34:17] <Volcane> oops, wrong #
[2010/07/20 06:34:21] <jslagle> My home box seems to be angry.
[2010/07/20 06:34:38] <jslagle> I'll have to stop at lunch and take a peek
[2010/07/20 06:35:42] @ Quit: devdas: Ping timeout: 260 seconds
[2010/07/20 06:36:20] <DbT_> Hi all! I am trying to install and run foreman; for now, with no avail. I use RHEL5 and the available rpm. I use storedconfig and have configured foreman's db to be the same (mysql) db as puppet's. foreman starts on port 3000 but when I try to connect it gives an error message: http://pastebin.com/k9EinjgJ
[2010/07/20 06:39:51] @ reyjrar joined channel #puppet
[2010/07/20 06:43:02] <DbT_> Volcane: hmmm. I am not sure I understand that about defines. The issue was that I had a manifests/init.pp which is auto-included so the defines in the file are "visible". Before using the define I forgot to include the class which managed the resources themselves. How does putting defines in their own files prevent this?
[2010/07/20 06:43:29] <Volcane> DbT_: ah maybe i am not understanding what you mean then :)
[2010/07/20 06:43:45] <DbT_> Volcane: aha ok, that is possible :-)
[2010/07/20 06:45:07] <DbT_> Volcane: for instance, I have apache::site but before using it I have to include apache. Seems a little redundant; I would expect there was a way to include the class implicitly by using a define.
[2010/07/20 06:45:30] <Volcane> DbT_: yup, thats odd, you totally dont need to do that
[2010/07/20 06:45:38] <Volcane> DbT_: but it depends how you did it i suspect
[2010/07/20 06:45:54] <Volcane> DbT_: if you did class apache { define site() { } } then that might be possible weirdness
[2010/07/20 06:46:07] <Volcane> DbT_: but if you did define apache::site () { .... } in site.pp it should just work
[2010/07/20 06:46:21] <Volcane> (site.pp for the apache module)
[2010/07/20 06:46:26] <DbT_> Volcane: no, I had class apache { ... } define apache::site() { .. }
[2010/07/20 06:46:35] <Volcane> shouldnt need that then
[2010/07/20 06:46:38] <DbT_> and the class and the defines live in init.pp
[2010/07/20 06:46:56] <DbT_> but the define was called from a node which did not include the apache class
[2010/07/20 06:47:52] <Volcane> yeah you shouldnt need to include that class for it to work
[2010/07/20 06:48:09] <Volcane> like i have a module called common and under there lots of defines
[2010/07/20 06:48:14] <Volcane> no class called common
[2010/07/20 06:48:19] <Volcane> and it just works
[2010/07/20 06:48:54] @ nanliu joined channel #puppet
[2010/07/20 06:48:55] <DbT_> you mean that all resources you need are declared within the defines?
[2010/07/20 06:49:57] <DbT_> oh I see: in my common module, it says class common { ... } include common
[2010/07/20 06:50:31] <DbT_> I guess I can say 'include apache' inside the define?
[2010/07/20 06:50:54] <Volcane> nevermind :) i think i just dont recall your symptoms
[2010/07/20 06:51:01] <ohadlevy> DbT_: did you run the migration in foreman?
[2010/07/20 06:51:15] <DbT_> ohadlevy: yes I did, let me re-run it.
[2010/07/20 06:51:16] @ Quit: cyrus_mc: Ping timeout: 246 seconds
[2010/07/20 06:51:32] <ohadlevy> DbT_: make sure that foreman user can actually access the db
[2010/07/20 06:51:56] <DbT_> ohadlevy: yep, I doublechecked
[2010/07/20 06:53:20] <ohadlevy> DbT_: I'm guessing you get these errors because you didnt (or got errors ) run the migrations
[2010/07/20 06:53:24] <progre55> so I have a directory synchronization puppet, and I've added a new file into the dir and running the client puppetd, but it's not being synchronized for some reason..
[2010/07/20 06:54:08] <spawnyd> progre55: kill -HUP <pi_of_puppetmasterd>
[2010/07/20 06:54:18] <spawnyd> pi -> pid
[2010/07/20 06:54:25] @ notbrien joined channel #puppet
[2010/07/20 06:54:33] <progre55> spawnyd: thanks, let me try that
[2010/07/20 06:54:36] <DbT_> ohadlevy: migration fails with log here: http://pastebin.com/6semqggM
[2010/07/20 06:55:26] <progre55> spawnyd: and should I restart it now? how? )
[2010/07/20 06:55:29] <ohadlevy> DbT_: can you run it again with --trace? are you using the dev or stable version?
[2010/07/20 06:55:47] <DbT_> ohadlevy: I am using your module
[2010/07/20 06:56:05] <DbT_> ohadlevy: can I just run the migration again or should I revert the db?
[2010/07/20 06:56:17] <DbT_> ohadlevy: or can I undo the migration?
[2010/07/20 06:56:21] <ohadlevy> DbT_: its safe to run the migration again
[2010/07/20 06:56:27] <DbT_> ok
[2010/07/20 06:56:32] <spawnyd> progre55: restart you puppetd process, depending how you start puppetd
[2010/07/20 06:56:35] @ kaptk2 joined channel #puppet
[2010/07/20 06:56:43] <ohadlevy> DbT_: you did change the /etc/foreman/database.yml to point to the storeconfig db right?
[2010/07/20 06:56:52] <DbT_> ohadlevy: yes
[2010/07/20 06:57:47] <DbT_> ohadlevy: trace log: http://pastebin.com/aJ6dfTAe
[2010/07/20 06:58:11] <progre55> spawnyd: I did, but still the client does not fetch the file I put in modules/tomcat6/ ...
[2010/07/20 06:58:40] <ohadlevy> DbT_: can we move this talk to #theforeman channel, not to spam too much? :)
[2010/07/20 06:58:40] <DbT_> ohadlevy: seems like it tries to do the migration again and fails on a duplicate column name
[2010/07/20 06:59:29] @ Quit: alban2: Quit: Leaving.
[2010/07/20 06:59:32] @ alban2 joined channel #puppet
[2010/07/20 06:59:37] <spawnyd> progre55: try again and use tail -f /path/to/your/logfile to see what happens.
[2010/07/20 06:59:46] <progre55> oh yeah, sec
[2010/07/20 07:00:05] <DbT_> ohadlevy: ok
[2010/07/20 07:01:09] @ bobbyz joined channel #puppet
[2010/07/20 07:01:31] @ cliff-hm joined channel #puppet
[2010/07/20 07:01:35] @ \ask joined channel #puppet
[2010/07/20 07:04:19] <progre55> spawnyd: that's weird.. the log is not complete..
[2010/07/20 07:04:37] <progre55> spawnyd: it gets stuck in a random place
[2010/07/20 07:05:15] <spawnyd> maybe you want to start the processes with --verbose or --debug to get further
[2010/07/20 07:06:18] <progre55> okay
[2010/07/20 07:08:29] @ pheezy joined channel #puppet
[2010/07/20 07:09:30] <progre55> spawnyd: oh, here what it says: "debug: //File[/etc/tomcat6]: Not managing more explicit file /etc/tomcat6/tomcat-users.xml"
[2010/07/20 07:09:51] <progre55> why is it "more explicit"?
[2010/07/20 07:10:46] @ jdcasey joined channel #puppet
[2010/07/20 07:12:10] <jslagle> Cool
[2010/07/20 07:12:17] <jslagle> Ohad's apache module seems to jive with RHEL :)
[2010/07/20 07:12:38] <notbrien> How do you test mounting external drives when automating with puppet? I have a problem where EC2 sets a volume to something specific, such as /dev/sdf. However, the vmware instance I'm using for development sets a volume to the next available device, such as /dev/sdb.
[2010/07/20 07:12:55] <ohadlevy> jslagle: what did I do wrong? :)
[2010/07/20 07:14:34] <Volcane> notbrien: use a fact that holds the right value - then you can just have the logic in your fact
[2010/07/20 07:14:50] <jbooth> progre55: You have a file{/etc/tomcat6: recurse=>true} and a file{/etc/tomcat6/tomcat-users.xml} I'd guess.
[2010/07/20 07:15:08] @ Quit: dbruce: Read error: No route to host
[2010/07/20 07:15:33] <progre55> jbooth: yep
[2010/07/20 07:16:54] <progre55> jbooth: and is that wrong?
[2010/07/20 07:18:19] <jbooth> progre55: Not strictly. It is just the one is more explicit and that's why you got the message.
[2010/07/20 07:18:57] <notbrien> Volcane: oh... that makes too much sense :-) Thanks for the help
[2010/07/20 07:19:47] <progre55> jbooth: so is there a way to fix it? I want the puppet to sync the whole directory..
[2010/07/20 07:20:07] @ ecapriolo joined channel #puppet
[2010/07/20 07:24:56] @ jmccune joined channel #puppet
[2010/07/20 07:25:29] <jbooth> progre55: Don't... manage the file elsewhere?
[2010/07/20 07:26:45] @ tonyskapunk joined channel #puppet
[2010/07/20 07:27:44] <progre55> jbooth: like?
[2010/07/20 07:27:49] @ Quit: nanliu: Quit: nanliu
[2010/07/20 07:27:55] @ Quit: DbT_: Ping timeout: 240 seconds
[2010/07/20 07:27:57] <progre55> how and where to manage it?
[2010/07/20 07:28:24] @ Quit: andrewh: Remote host closed the connection
[2010/07/20 07:30:29] <hal-j> it may just be that we tackle different problems, but I can't say that *I* have ever needed to use the recurse param to file
[2010/07/20 07:30:31] @ mindless joined channel #puppet
[2010/07/20 07:30:50] <hal-j> I'd bet that eventually, you'll find you'll convert some things to templates, others you'll want to tweaks perms etc...
[2010/07/20 07:31:01] @ Quit: jmccune: Ping timeout: 258 seconds
[2010/07/20 07:31:56] <jslagle> ohad: The other Apache module I was using was doing things in a Debian sort of way
[2010/07/20 07:32:55] <progre55> hal-j: well, my first day with puppet.. hopefully I'll get more experienced
[2010/07/20 07:32:56] @ Quit: benoit__: Ping timeout: 258 seconds
[2010/07/20 07:32:56] <progre55> =)
[2010/07/20 07:36:13] @ littleidea joined channel #puppet
[2010/07/20 07:37:29] @ Quit: herdingcat: Quit: Leaving
[2010/07/20 07:38:43] <ohadlevy> jslagle: its just a simple apache module for people to get started quickly with foreman / apache and passenger
[2010/07/20 07:38:44] @ Quit: littleidea: Client Quit
[2010/07/20 07:38:50] <ohadlevy> jslagle: on RHEL5
[2010/07/20 07:39:43] @ warreng joined channel #puppet
[2010/07/20 07:46:27] <jbooth> progre55: I don't have a further way to express my advice to you. You're managing both the directory with recurse and the specific file. Puppet is telling you what it is doing. If you don't want it to error on the file, don't mention the file in the first place and let puppet sync the directory.
[2010/07/20 07:46:50] @ sdog left channel #puppet ()
[2010/07/20 07:47:18] @ Quit: alban2: Quit: Leaving.
[2010/07/20 07:51:02] @ testburger joined channel #puppet
[2010/07/20 07:53:56] <progre55> jbooth: oh, I've managed make it work. Just added "ensure => present" to the second "file" reference, and now no errors
[2010/07/20 07:56:39] <hal-j> what do you feel you're gaining by specifying a file that's in that directory, separately though
[2010/07/20 07:56:44] <hal-j> it's not HURTING
[2010/07/20 07:57:41] <progre55> no it's just I had to set some special permissions to that file.. that's why I'm referencing it the second time
[2010/07/20 08:00:32] <jbooth> Your rules likely do not have a well-defined result. This will bite you in the butt later.
[2010/07/20 08:01:33] <jbooth> recurse on the dir and ensure present may do unexpected things if they execute in the other order than they did this time.
[2010/07/20 08:02:38] <rmiller4pi8> can't you just force the order with a require?
[2010/07/20 08:03:35] <hal-j> if it were me, I'd either specify each file separately, or if I was married to recursing, I'd put this particular file outside of the dir I was recursing on the master, and drop it there as you are
[2010/07/20 08:04:02] <progre55> jbooth: no, I'm not ensuring present in the recurse block, but in the second block where I'm setting file permisions to a single file
[2010/07/20 08:04:14] <hal-j> or, if it's really just a bunch of files and nothing else, I'd consider putting it in a noarch package or something
[2010/07/20 08:04:39] @ rcrowley joined channel #puppet
[2010/07/20 08:05:02] <progre55> hal-j: so, will just moving the file outside the dir and separetely dropping it in solve the problem?
[2010/07/20 08:05:33] <hal-j> the problem is that you're effectively specifying the file twice
[2010/07/20 08:05:35] @ nanliu joined channel #puppet
[2010/07/20 08:05:46] <hal-j> if I recall the error (I'm not looking at it)
[2010/07/20 08:06:27] <hal-j> so yeah, I'd bet that will fix it, unless there's some magic about recursing that I'm unaware of
[2010/07/20 08:07:31] @ Quit: tmz: Ping timeout: 265 seconds
[2010/07/20 08:08:09] <jbooth> progre55: I understand. I think you're in an undefined final state. Puppet may mask it for you, for now, but I bet if you rebuild the machine 10 times you'd find half fail.
[2010/07/20 08:08:56] <jbooth> progre55: Because ensure=>present means "touch file". If that's overriding the recurse (as the error says) then you now have an empty file. Recurse won't touch it; it already told you that.
[2010/07/20 08:09:09] @ jmccune joined channel #puppet
[2010/07/20 08:09:48] <progre55> jbooth: oh now I get what "present" means =)
[2010/07/20 08:09:51] <hal-j> IMHO - remove ambiguity. 3 months from now you'll look and say "what the f*ck"
[2010/07/20 08:10:00] <hal-j> or a new ops guy will
[2010/07/20 08:10:35] <progre55> hal-j: yeah, I'll just move it out and remove the ensure-present thing
[2010/07/20 08:10:50] <progre55> and hope that solves the problem
[2010/07/20 08:11:22] @ Mick27 joined channel #puppet
[2010/07/20 08:14:26] <z00dax6> hum, so i have a module called zzz that has a define zzz::filecont - can I not call that from outside the module ?
[2010/07/20 08:14:54] <z00dax6> i seem to recall having done this in the past, include zzz \n zzz::filecont{test1: blah => 'something' }
[2010/07/20 08:15:45] <Volcane> z00dax6: you can use defines from anywhere as long as autoimport can find them
[2010/07/20 08:16:11] <z00dax6> in this case, the define is in the init.pp of the modules/zzz
[2010/07/20 08:16:19] <z00dax6> and I'm including zzz
[2010/07/20 08:16:35] <Volcane> dont even need to include, like look at my concat stuff
[2010/07/20 08:16:39] <Volcane> you can use them from anywhere
[2010/07/20 08:16:48] <z00dax6> hang on, let me pastebin this
[2010/07/20 08:18:19] <z00dax6> https://gist.github.com/234fd45b7ae857adbdd5
[2010/07/20 08:18:49] <z00dax6> ignore excess newlines, no idea where they came from
[2010/07/20 08:18:51] <Volcane> oh
[2010/07/20 08:18:55] <Volcane> nah you're doing it wrong
[2010/07/20 08:19:11] <Volcane> either: class zzzz { define foo { } }
[2010/07/20 08:19:19] <Volcane> or: define zzz::foo { }
[2010/07/20 08:19:25] <z00dax6> bah
[2010/07/20 08:19:29] <Volcane> what you have is zzz::zzz::filecon
[2010/07/20 08:19:36] <z00dax6> so what I've got here is zzz::zzz:filecon ...
[2010/07/20 08:19:38] <z00dax6> right :)
[2010/07/20 08:19:42] * z00dax6 fixifies
[2010/07/20 08:20:30] <progre55> so I have a file with permission mode 640, and get this error "err: //File[/etc/tomcat6/tomcat-users.xml]: Failed to retrieve current state of resource: No specified source was found from puppet:///tomcat6/tomcat/etc/tomcat6/tomcat-users.xml"
[2010/07/20 08:20:35] <progre55> suggestions, pleasE?
[2010/07/20 08:21:02] <z00dax6> Volcane: ta; that was it
[2010/07/20 08:21:34] <Volcane> progre55: which user owns the file on the puppetmaster?
[2010/07/20 08:22:21] <progre55> Volcane: root
[2010/07/20 08:22:34] <Volcane> and what does your master run as?
[2010/07/20 08:22:37] <progre55> Volcane: and I'm running the client with root privs
[2010/07/20 08:22:48] <Volcane> the master serves te files
[2010/07/20 08:22:58] <progre55> Volcane: I suppose the master runs as root, too
[2010/07/20 08:23:09] <Volcane> progre55: assumption is the mother of what?
[2010/07/20 08:23:28] <progre55> Volcane: I've starting it by "sudo /etc/init.d/puppetmasterd start"
[2010/07/20 08:23:44] <Volcane> look in the process list
[2010/07/20 08:23:47] <progre55> sec =)
[2010/07/20 08:23:54] @ squirrel_labs joined channel #puppet
[2010/07/20 08:24:10] @ Quit: lkoranda: Quit: Ex-Chat
[2010/07/20 08:27:40] <progre55> Volcane: yeah you were right, it was run by "puppet" =)
[2010/07/20 08:27:50] <progre55> I mean, the master process
[2010/07/20 08:27:53] <Volcane> yup
[2010/07/20 08:28:45] <progre55> and what's the best way to handle it? have the file readable and then change it's permissions after it's been synchronized with the client?
[2010/07/20 08:28:57] <progre55> or run puppetmasterd with root privs?
[2010/07/20 08:29:02] <Volcane> puppet master needs to read the file all the time
[2010/07/20 08:29:05] <Volcane> just make the file owned by it
[2010/07/20 08:29:21] @ Quit: ahasenack: Ping timeout: 240 seconds
[2010/07/20 08:30:01] <progre55> Volcane: but it's a file specific to tomcat, and it needs to be owned by root
[2010/07/20 08:30:30] <Volcane> progre55: you shouldnt rely on whoever owns the file on the puppetmaster, make it owned by the master on teh puppetmaster host
[2010/07/20 08:30:48] <progre55> oh I get it =)
[2010/07/20 08:30:48] <Volcane> progre55: then file{"/etc/whatever": owner => tomcat, group => tomcat, mode => 650, source => .....}
[2010/07/20 08:31:03] <Volcane> progre55: then the puppetd - running as root on the node - will sort it out for you
[2010/07/20 08:31:19] <progre55> Volcane: thanks =)
[2010/07/20 08:32:07] <jbooth> progre55: In general the right way to do it is not to use recurse=> unless necessary. It is generally slow and often leads you bad places.
[2010/07/20 08:32:09] @ EvanCC joined channel #puppet
[2010/07/20 08:32:20] <EvanCC> is it me or is http://projects.reductivelabs.com/projects/puppet/wiki/Module_Ssh_Auth_Patterns completely busted?
[2010/07/20 08:33:45] <joe-mac> hey jamesturnbull you here?
[2010/07/20 08:33:59] <joe-mac> i'm wondering if that fact REST terminus is available in 2.6
[2010/07/20 08:34:04] <joe-mac> or if that's on th e roadmap
[2010/07/20 08:34:08] <joe-mac> for later versions
[2010/07/20 08:34:17] <progre55> jbooth: will I have to create a resource for every single file? it's just, the directory has too many files..
[2010/07/20 08:34:41] <Volcane> progre55: are you trying to install the whole tomcat from files with puppet?
[2010/07/20 08:35:24] @ Quit: pmorillo: Quit: pmorillo
[2010/07/20 08:35:24] <progre55> Volcane: well, not really, just want to keep track of specific config files + a whole webapp
[2010/07/20 08:35:40] <Volcane> progre55: yeah, 'whole web app' is probably not what puppet is for
[2010/07/20 08:36:46] <progre55> Volcane: so then I'll just keep track of a .war file
[2010/07/20 08:36:54] <Volcane> how big is it?
[2010/07/20 08:37:55] <progre55> sec
[2010/07/20 08:38:07] <Volcane> bascially before puppet 2.6.0 file serving really isnt awesome
[2010/07/20 08:38:08] <progre55> about 2Mb
[2010/07/20 08:38:20] <Volcane> and even then, you really should consider using packages or something along those lines
[2010/07/20 08:38:51] @ Determinist joined channel #puppet
[2010/07/20 08:39:22] <progre55> oh and my version is kinda old.. 0.24.8
[2010/07/20 08:39:29] <Volcane> yeah 2mb will hurt
[2010/07/20 08:39:38] @ andrewh joined channel #puppet
[2010/07/20 08:39:46] <Volcane> (it'll go sit in memory forever about 3 times its normal size)
[2010/07/20 08:39:51] <Volcane> (and be awefully slow)
[2010/07/20 08:40:07] <Volcane> and cause high cpu on both client and master
[2010/07/20 08:40:29] <progre55> well but the file (.war) might change one once a week or smth
[2010/07/20 08:40:57] <z00dax6> Volcane: that works without the include zzz on 0.25.3; but on 0.23.2 puppet still needs the 'include zzz' somewhere
[2010/07/20 08:41:09] <Volcane> z00dax6: dude, get with the times already :)
[2010/07/20 08:41:26] <z00dax6> :)
[2010/07/20 08:41:33] <Volcane> progre55: ant - and most java build tools - support outputing packages like rpms or debs
[2010/07/20 08:42:09] @ jschairb joined channel #puppet
[2010/07/20 08:44:12] <progre55> Volcane: well, dont want to dive into ant packaging for this small task..
[2010/07/20 08:45:24] <ecapriolo> progre55: It is very easy to make java noarch rpms mostly just a bunch of copy commands :)
[2010/07/20 08:45:28] <slapayoda> hm, time to test the new version today
[2010/07/20 08:46:01] <ecapriolo> Or if you are willing to compromise your layout jpackage.org has pre-built tomcat packages
[2010/07/20 08:46:38] <progre55> ecapriolo: got a link to some docs, please?
[2010/07/20 08:47:08] <ecapriolo> Do you want docs on jpacakge or docs on building your own RPM?
[2010/07/20 08:47:17] <Volcane> or on how to use google? :P
[2010/07/20 08:47:28] <progre55> ecapriolo: the rpm one
[2010/07/20 08:47:31] <progre55> Volcane: lol :D
[2010/07/20 08:48:41] <Volcane> ant pretty much comes with an out of the box useful rpm target
[2010/07/20 08:48:47] <Volcane> all it takes is for you to read how to use it
[2010/07/20 08:49:58] <progre55> Volcane: btw, why would I need it for, I forgot? :) to share the .war file among all the clients?
[2010/07/20 08:50:16] @ Quit: jaredrhine: Ping timeout: 252 seconds
[2010/07/20 08:50:50] @ lak joined channel #puppet
[2010/07/20 08:50:53] <ecapriolo> progre55: If you generate a tomcat package you can use standard packages to install tomcat rather then recursive file copying
[2010/07/20 08:51:09] @ Quit: lak: Client Quit
[2010/07/20 08:51:11] <Volcane> ecapriolo: this is for webapps
[2010/07/20 08:51:19] <progre55> ecapriolo: yeah that's how I'm doing it
[2010/07/20 08:51:41] <progre55> ecapriolo: just want to manage some config files + a webbapp .war file with puppets
[2010/07/20 08:51:57] @ lak joined channel #puppet
[2010/07/20 08:52:00] <testburger> hi
[2010/07/20 08:52:08] <progre55> hello
[2010/07/20 08:52:18] <testburger> rsyslog or syslog-ng for logging from lots of hosts to a database for analysis?
[2010/07/20 08:52:42] <ecapriolo> progre55: That does seem like something you can do with file objects
[2010/07/20 08:52:51] <ecapriolo> testburger: splunk ?
[2010/07/20 08:53:12] <progre55> ecapriolo: but Volcane says a 2Mb war file might be too big for puppets..
[2010/07/20 08:53:37] <Volcane> ecapriolo: he's on 0.24 with the old way of file copying that really wasnt awesome
[2010/07/20 08:54:05] <progre55> oh and another solution.. I could install a newer version of puppet! =)
[2010/07/20 08:54:31] <progre55> well, my working day is over, and time to play some golf =)
[2010/07/20 08:54:39] <progre55> thanks a lot for all the support and suggestions, guys
[2010/07/20 08:54:43] <progre55> truly appreciate
[2010/07/20 08:54:50] <progre55> I'll be back tomorrow, though =)
[2010/07/20 08:55:19] @ progre55 left channel #puppet ("gone home")
[2010/07/20 09:03:15] @ adrian_broher joined channel #puppet
[2010/07/20 09:03:15] <jamesturnbull> joe-mac: I am
[2010/07/20 09:05:12] @ Quit: WALoeIII: Quit: WALoeIII
[2010/07/20 09:05:55] <joe-mac> what's with the facts REST terminus jamesturnbull?
[2010/07/20 09:05:59] <joe-mac> can we use that now to get node info?
[2010/07/20 09:10:01] @ Quit: testburger: Ping timeout: 252 seconds
[2010/07/20 09:12:15] @ littleidea joined channel #puppet
[2010/07/20 09:12:52] @ gniks joined channel #puppet
[2010/07/20 09:12:54] <EvanCC> I am using the puppet version in Ubuntu 10.4 and no matter what module i add i get variations no namespace errors or class errors..any ideas why this is?
[2010/07/20 09:13:45] <Volcane> EvanCC: we can guess based on the information you provided its a variation of a puppet error.
[2010/07/20 09:14:10] <mark> sometimes it seems that puppet is just not picking up changes
[2010/07/20 09:14:10] <EvanCC> Volcane, err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class apache in namespaces backuppc::server at /etc/puppet/modules/backuppc/manifests/init.pp:28 on node puppettesting2.openplans.org
[2010/07/20 09:14:17] <mark> and I have no clue why
[2010/07/20 09:14:28] <mark> I am including a base class on *all* servers, asking it to install some packages
[2010/07/20 09:14:29] <EvanCC> Error 400 on SERVER: Could not match 'class' at /etc/puppet/modules/ssh/manifests/auth.pp:10 on node puppettesting2.openplans.org
[2010/07/20 09:14:33] <EvanCC> etc etc
[2010/07/20 09:14:34] <Volcane> EvanCC: can you show the code in question on pastie?
[2010/07/20 09:14:36] <mark> and occasionally there's a server where puppet just doesn't do anything
[2010/07/20 09:14:44] <EvanCC> Volcane one sec
[2010/07/20 09:15:09] <jamesturnbull> joe-mac: ref:indirection
[2010/07/20 09:15:09] <gepetto> jamesturnbull: joe-mac: ref:indirection is http://docs.puppetlabs.com/references/latest/indirection.html "Puppet Labs"
[2010/07/20 09:15:12] @ Quit: racerx: Remote host closed the connection
[2010/07/20 09:15:27] <EvanCC> Volcane it seems to happen no matter what module i use...from whoever i get it from
[2010/07/20 09:15:32] <EvanCC> no modules appear to ever work
[2010/07/20 09:15:35] <jamesturnbull> joe-mac: we'll have more docs RSN
[2010/07/20 09:16:24] <joe-mac> jamesturnbull: one more question, is it posible to also retrieve variables from REST?
[2010/07/20 09:16:32] @ ckauhaus joined channel #puppet
[2010/07/20 09:17:22] <jamesturnbull> joe-mac: http://github.com/mmrobins/puppet-docs/tree/3016-document_the_rest_api
[2010/07/20 09:18:30] <ecapriolo> $aminute = fqdn_rand(60) $ahour = fqdn_rand(24)
[2010/07/20 09:18:44] <ecapriolo> If i reverse the order they produce the same number .
[2010/07/20 09:18:49] <ecapriolo> Interesting huh?
[2010/07/20 09:19:26] @ devdas joined channel #puppet
[2010/07/20 09:19:28] <Volcane> joe-mac: http://github.com/mmrobins/puppet-docs/commit/51e4ae489f8961f0d5be8cf4cc689ab854c6cf6f
[2010/07/20 09:19:30] @ Quit: devdas: Read error: Connection reset by peer
[2010/07/20 09:19:37] @ devdas joined channel #puppet
[2010/07/20 09:19:58] @ Quit: TREllis: Ping timeout: 260 seconds
[2010/07/20 09:21:51] @ TREllis joined channel #puppet
[2010/07/20 09:22:14] @ bodepd joined channel #puppet
[2010/07/20 09:22:16] @ toi joined channel #puppet
[2010/07/20 09:23:15] @ Quit: verwilst: Quit: Ex-Chat
[2010/07/20 09:23:31] @ Quit: littleidea: Quit: littleidea
[2010/07/20 09:23:42] @ Quit: yure: Ping timeout: 260 seconds
[2010/07/20 09:27:07] <pheezy> can i check if a class is defined in a template?
[2010/07/20 09:30:33] @ Hypnoz joined channel #puppet
[2010/07/20 09:30:37] @ Quit: bkohler: Ping timeout: 258 seconds
[2010/07/20 09:31:56] @ littleidea joined channel #puppet
[2010/07/20 09:32:05] @ Quit: ckauhaus: Ping timeout: 252 seconds
[2010/07/20 09:32:52] @ WALoeIII joined channel #puppet
[2010/07/20 09:33:35] @ odyi_ joined channel #puppet
[2010/07/20 09:34:32] @ Quit: odyi: Read error: Connection reset by peer
[2010/07/20 09:36:37] @ yure joined channel #puppet
[2010/07/20 09:36:43] @ mclarke joined channel #puppet
[2010/07/20 09:36:46] @ Quit: bronto: Quit: Leaving.
[2010/07/20 09:37:07] @ becks` joined channel #puppet
[2010/07/20 09:37:54] @ tmz joined channel #puppet
[2010/07/20 09:38:58] @ Quit: littleidea: Quit: littleidea
[2010/07/20 09:39:13] @ Quit: jdcasey: Remote host closed the connection
[2010/07/20 09:42:45] @ beata joined channel #puppet
[2010/07/20 09:44:18] @ Quit: TREllis: Ping timeout: 240 seconds
[2010/07/20 09:46:28] @ Quit: beata-: Ping timeout: 248 seconds
[2010/07/20 09:46:50] @ squirrel_labs is now known as Xenu
[2010/07/20 09:47:00] @ Quit: lak: Quit: lak
[2010/07/20 09:47:10] @ Quit: Mick27: Quit: Leaving
[2010/07/20 09:47:20] @ Xenu is now known as Guest56805
[2010/07/20 09:47:38] @ Guest56805 is now known as squirrel_labs
[2010/07/20 09:49:24] @ Quit: docelic: Quit: Leaving
[2010/07/20 09:49:33] @ Quit: bodepd: Quit: bodepd
[2010/07/20 09:49:51] @ Quit: showy: Quit: leaving
[2010/07/20 09:50:20] @ Quit: andrewh: Ping timeout: 245 seconds
[2010/07/20 09:50:36] @ littleidea joined channel #puppet
[2010/07/20 09:51:34] @ TREllis joined channel #puppet
[2010/07/20 09:53:03] @ thekad-afk is now known as thekad
[2010/07/20 09:53:48] @ Quit: gebi: Ping timeout: 240 seconds
[2010/07/20 09:54:22] @ Quit: TREllis: Read error: Operation timed out
[2010/07/20 09:55:56] @ radkin left channel #puppet ()
[2010/07/20 09:57:20] @ beata_ joined channel #puppet
[2010/07/20 09:57:23] @ TREllis joined channel #puppet
[2010/07/20 09:58:06] <beata_> will require => Class["ldap"] include any subclass of ldap like ldap::linux ?
[2010/07/20 09:58:42] <hal-j> only if ldap::linux is included by the ldap class
[2010/07/20 09:59:17] <beata_> it is, inside a case depending on the os
[2010/07/20 09:59:58] <hal-j> also, the require doesn't cause it to be included I'm pretty sure. Just enforces ordering
[2010/07/20 10:00:22] <beata_> yea thats what I want to make sure my ldap stuff gets done before this other thing
[2010/07/20 10:00:24] <hal-j> don't quote me on that, I can't say I ever didn't explicitly include
[2010/07/20 10:01:29] @ rasputnik joined channel #puppet
[2010/07/20 10:02:51] @ Quit: rasputnik: Client Quit
[2010/07/20 10:04:54] @ bodepd joined channel #puppet
[2010/07/20 10:05:07] @ Quit: devdas: Ping timeout: 240 seconds
[2010/07/20 10:07:09] @ gmcquillan joined channel #puppet
[2010/07/20 10:07:44] @ Quit: gmcquillan: Client Quit
[2010/07/20 10:07:50] @ Quit: bodepd: Remote host closed the connection
[2010/07/20 10:08:19] @ bodepd joined channel #puppet
[2010/07/20 10:08:48] @ TREllis_ joined channel #puppet
[2010/07/20 10:08:57] @ Quit: TREllis: Ping timeout: 240 seconds
[2010/07/20 10:09:01] @ Quit: bodepd: Remote host closed the connection
[2010/07/20 10:09:22] @ Quit: meltemi: Ping timeout: 246 seconds
[2010/07/20 10:09:30] @ bodepd joined channel #puppet
[2010/07/20 10:10:12] @ Quit: bodepd: Remote host closed the connection
[2010/07/20 10:10:41] @ bodepd joined channel #puppet
[2010/07/20 10:11:23] @ Quit: bodepd: Remote host closed the connection
[2010/07/20 10:11:48] <duritong> what do people against too many connections issues?
[2010/07/20 10:11:52] @ bodepd joined channel #puppet
[2010/07/20 10:12:03] @ Quit: bodepd: Client Quit
[2010/07/20 10:16:26] @ Quit: TREllis_: Ping timeout: 260 seconds
[2010/07/20 10:16:51] @ EvanCC left channel #puppet ("Leaving")
[2010/07/20 10:17:03] @ devdas joined channel #puppet
[2010/07/20 10:17:38] @ radkin joined channel #puppet
[2010/07/20 10:18:03] @ TREllis joined channel #puppet
[2010/07/20 10:22:20] @ PhabX joined channel #puppet
[2010/07/20 10:24:52] @ threebean left channel #puppet ()
[2010/07/20 10:25:17] @ Quit: MattyM: Remote host closed the connection
[2010/07/20 10:29:42] <fenris02> -eparse duritong
[2010/07/20 10:34:56] @ Quit: TREllis: Ping timeout: 265 seconds
[2010/07/20 10:37:41] @ Quit: warreng: Quit: Leaving.
[2010/07/20 10:38:19] @ warreng joined channel #puppet
[2010/07/20 10:40:44] @ plathrop-away is now known as plathrop
[2010/07/20 10:43:29] @ eidolon joined channel #puppet
[2010/07/20 10:43:44] @ vachon joined channel #puppet
[2010/07/20 10:44:13] @ Quit: bug: Ping timeout: 258 seconds
[2010/07/20 10:44:35] <eidolon> hi folks - does puppet support parameterized classes? i see something in the development chat wiki...
[2010/07/20 10:44:49] <eidolon> i want something like "$version="bob"; include "somemodule";"
[2010/07/20 10:45:02] <eidolon> where somemodule would instlal version 'bob', but would use a default if the version were not defined.
[2010/07/20 10:45:24] @ bug joined channel #puppet
[2010/07/20 10:46:16] <eidolon> ala this
[2010/07/20 10:46:17] <eidolon> http://pastebin.stonekeep.com/11312
[2010/07/20 10:46:30] @ TREllis joined channel #puppet
[2010/07/20 10:50:14] <jbooth> eidolon: Puppet has always supported seeing variables declared elsewhere. 2.6 just added actual paramaterized classes with something like 'class { "somemodule": version => "bob"; }'
[2010/07/20 10:50:19] <jbooth> Note I haven't played with 2.6 yet
[2010/07/20 10:50:29] <jbooth> So my syntax may be wrong there
[2010/07/20 10:50:57] @ Quit: TREllis: Client Quit
[2010/07/20 10:51:29] <hal-j> yeah, I routinely do similar things, but not using the paramaterized classes (I'm still 0.24.8)
[2010/07/20 10:51:42] <hal-j> so yes, you _can_ do what you're looking to do, one way or the other
[2010/07/20 10:57:32] <eidolon> okay, so how would i adjust this to work with what i'm using now?
[2010/07/20 10:57:41] <eidolon> embed the variable in the node definition, and the scope will pick up in the class?
[2010/07/20 10:58:41] <eidolon> ah
[2010/07/20 10:58:43] <eidolon> i found an example
[2010/07/20 10:58:55] <hal-j> that's pretty much what I do, yes
[2010/07/20 10:59:05] <eidolon> node blah { $variable="somevalue" include "module"; }
[2010/07/20 10:59:22] <eidolon> in the module, can i have a default value? will the node definition override it?
[2010/07/20 10:59:50] @ Quit: bug: Read error: Connection reset by peer
[2010/07/20 10:59:50] <hal-j> if !$variable { $variable = "somedefault" }
[2010/07/20 10:59:52] <hal-j> shoudl help
[2010/07/20 11:00:16] @ bug joined channel #puppet
[2010/07/20 11:00:31] <hal-j> but if you've got the latest puppet, you may want to check into the parameterized classes mentioned above
[2010/07/20 11:00:55] <eidolon> yeah, don't have the latest yet :)
[2010/07/20 11:01:53] <vachon> well 2.6 isnt baked yet either
[2010/07/20 11:02:14] <vachon> its still has a slightly warm center
[2010/07/20 11:02:18] <hal-j> yeah, dunno when this new stuff hit, beyond "after the version I have" :)
[2010/07/20 11:07:47] <twisla> any rpms already available? :) (didn't check anything, just saw 2.6.0 is out)
[2010/07/20 11:09:54] <vachon> but the epel people
[2010/07/20 11:10:00] <vachon> *bug
[2010/07/20 11:10:11] <Volcane> or just read the users list
[2010/07/20 11:11:01] <vachon> touche sir
[2010/07/20 11:11:56] <eidolon> i've never put 'code' into a module definition. where would i put the blurb that checks to see if a variable is initted or not?
[2010/07/20 11:12:01] <eidolon> note, IANARP.
[2010/07/20 11:12:14] <vachon> you can "if" it
[2010/07/20 11:12:18] <eidolon> yes
[2010/07/20 11:12:19] <eidolon> i know
[2010/07/20 11:12:22] <eidolon> where does that go?
[2010/07/20 11:12:25] <dballing> if I have new clients that autofetch the 2.6.0 client, but they're talking to a 0.25.5 master, is that going to be an issue?
[2010/07/20 11:12:28] <eidolon> right after 'class'?
[2010/07/20 11:12:39] <vachon> inside the class i believe
[2010/07/20 11:12:48] <hal-j> I'd do it inside the class
[2010/07/20 11:12:50] @ Quit: devdas: Ping timeout: 245 seconds
[2010/07/20 11:12:52] <hal-j> I do it inside the class
[2010/07/20 11:12:53] @ jdcasey joined channel #puppet
[2010/07/20 11:12:58] <eidolon> ok
[2010/07/20 11:13:04] <hal-j> or else you do it in every node that needs it.
[2010/07/20 11:13:13] <hal-j> Don't Repeat Yourself :)
[2010/07/20 11:13:17] <eidolon> ruby's definition of what OOP structure shoudl be like is really crap.
[2010/07/20 11:13:33] <Volcane> eidolon: in what sense?
[2010/07/20 11:14:03] <eidolon> http://pastebin.stonekeep.com/11313
[2010/07/20 11:14:05] <eidolon> right?
[2010/07/20 11:14:15] @ Russ_S joined channel #puppet
[2010/07/20 11:14:26] @ meltemi joined channel #puppet
[2010/07/20 11:14:28] <vachon> eidolon: personally i think a define might make more sense now
[2010/07/20 11:14:42] <Volcane> eidolon: not seeing any ruby code there :)
[2010/07/20 11:14:49] <eidolon> what's the if() command?
[2010/07/20 11:14:53] <eidolon> that's a puppet construct?
[2010/07/20 11:15:16] <eidolon> sorry, i'm getting sort of cranky on this project, i should just stfu :)
[2010/07/20 11:15:16] <Volcane> everything in .pp files are puppet
[2010/07/20 11:15:28] <Volcane> no ruby at all
[2010/07/20 11:15:36] <Volcane> unless you do something with inline_template()
[2010/07/20 11:15:41] <eidolon> k
[2010/07/20 11:15:48] <eidolon> is that class definition right?
[2010/07/20 11:15:49] @ pting joined channel #puppet
[2010/07/20 11:16:16] <joe-mac> yea, cause ruby's OOP is badass
[2010/07/20 11:16:32] <Volcane> eidolon: puppets OO is rubbish though yes :P
[2010/07/20 11:16:32] <joe-mac> puppet isn't really OOP even though it uses some terms
[2010/07/20 11:16:35] @ Quit: jab_doa: Ping timeout: 245 seconds
[2010/07/20 11:16:36] <eidolon> crud
[2010/07/20 11:16:47] <eidolon> ensure => $mysqlversion,
[2010/07/20 11:16:49] <eidolon> that's wrong
[2010/07/20 11:16:51] <joe-mac> yea and you should put OO in little quotes like "OO" heh
[2010/07/20 11:16:56] @ jab_doa joined channel #puppet
[2010/07/20 11:16:59] <eidolon> that should be 'latest' or the like - it's giving me an error
[2010/07/20 11:17:09] <eidolon> Jul 20 14:16:05 bos-cds-db01 puppetd[14153]: Could not run Puppet configuration client: Parameter ensure failed: Invalid value "". Valid values are present, absent, purged, latest. Valid values match /./. at /etc/puppet/modules/mysql-latest/manifests/init.pp:10
[2010/07/20 11:17:16] <joe-mac> eidolon: not necessarily. if mysqlversion is a number available in your repos, it shold work
[2010/07/20 11:17:18] <Volcane> eidolon: the variable has nothing in it
[2010/07/20 11:17:31] <eidolon> um
[2010/07/20 11:17:55] <joe-mac> you have mysqlversion empty
[2010/07/20 11:18:01] <joe-mac> so when it goes to apply the package def it can't
[2010/07/20 11:18:07] <eidolon> except - my rule has
[2010/07/20 11:18:12] <eidolon> if !$mysqlversion { $variable = "5.1.30" }
[2010/07/20 11:18:17] <eidolon> oh crap
[2010/07/20 11:18:17] <eidolon> nm
[2010/07/20 11:18:21] <joe-mac> lol yea
[2010/07/20 11:18:21] * eidolon idiots
[2010/07/20 11:18:45] <joe-mac> i was wiondering what you were trying to accomplish with that one :-P
[2010/07/20 11:18:51] <eidolon> :)
[2010/07/20 11:19:08] <eidolon> still getting that error, but i won't whine about it until i look at it more.
[2010/07/20 11:19:36] <joe-mac> look up selectors
[2010/07/20 11:20:23] <eidolon> there we go.
[2010/07/20 11:28:30] @ rcrowley_ joined channel #puppet
[2010/07/20 11:30:20] @ Quit: rcrowley: Remote host closed the connection
[2010/07/20 11:30:46] @ Quit: toi: Ping timeout: 276 seconds
[2010/07/20 11:31:18] @ vachon left channel #puppet ()
[2010/07/20 11:34:33] @ Quit: rcrowley_: Ping timeout: 240 seconds
[2010/07/20 11:36:02] @ Quit: jdcasey: Remote host closed the connection
[2010/07/20 11:38:14] @ jdcasey joined channel #puppet
[2010/07/20 11:39:09] @ rcrowley joined channel #puppet
[2010/07/20 11:43:07] @ r-17 joined channel #puppet
[2010/07/20 11:44:42] @ r-17 left channel #puppet ()
[2010/07/20 11:45:10] @ Quit: beata_: Quit: Lost terminal
[2010/07/20 11:51:36] <eidolon> hey puppetgeeks - on that variable passing
[2010/07/20 11:51:39] <eidolon> http://pastebin.stonekeep.com/11314
[2010/07/20 11:51:45] <eidolon> why isoh
[2010/07/20 11:51:45] <eidolon> nm
[2010/07/20 11:51:49] @ bug_ joined channel #puppet
[2010/07/20 11:52:26] @ Quit: snikkers: Quit: leaving
[2010/07/20 11:52:31] @ Quit: bug: Read error: Connection reset by peer
[2010/07/20 11:52:31] @ bug_ is now known as bug
[2010/07/20 11:57:00] <Whoop> eidolon, Upgrade to puppet 2.6 - classes support arguments :D
[2010/07/20 12:00:18] @ Quit: nanliu: Quit: nanliu
[2010/07/20 12:01:45] @ Quit: bobbyz: Read error: Connection reset by peer
[2010/07/20 12:02:09] @ bobbyz joined channel #puppet
[2010/07/20 12:06:09] <radkin> clear cache for puppetd anyone?
[2010/07/20 12:06:14] @ Quit: littleidea: Quit: littleidea
[2010/07/20 12:06:30] <radkin> something like --nocache I think /???
[2010/07/20 12:09:10] @ littleidea joined channel #puppet
[2010/07/20 12:12:16] @ Quit: jmccune: Read error: Operation timed out
[2010/07/20 12:15:10] @ Quit: jmslagle: Quit: BitchX-1.1-final -- just do it.
[2010/07/20 12:16:51] @ Quit: littleidea: Quit: littleidea
[2010/07/20 12:18:59] @ jmslagle joined channel #puppet
[2010/07/20 12:19:30] @ Quit: schimmi1: Quit: Leaving.
[2010/07/20 12:21:20] <jmslagle> There
[2010/07/20 12:27:25] @ Quit: kolla: Remote host closed the connection
[2010/07/20 12:30:31] @ schimmi joined channel #puppet
[2010/07/20 12:31:02] @ Quit: bug: Quit: bug
[2010/07/20 12:31:12] @ Quit: schimmi: Client Quit
[2010/07/20 12:32:15] @ schimmi joined channel #puppet
[2010/07/20 12:34:31] <geekatcmu> Is there a way to make this work other than creating a define? http://pastie.org/1052519
[2010/07/20 12:36:05] @ Quit: rmiller4pi8: Read error: Connection reset by peer
[2010/07/20 12:37:39] @ windowsrefund joined channel #puppet
[2010/07/20 12:37:41] <windowsrefund> hello
[2010/07/20 12:38:05] <carlasouza> geekatcmu: the pastie has nothing :(
[2010/07/20 12:38:06] <jbooth> geekatcmu: "this" is empty?
[2010/07/20 12:38:16] <jbooth> Too slow. :-(
[2010/07/20 12:38:28] <windowsrefund> is there a way to render a template without running the pupppet client?
[2010/07/20 12:38:49] @ Quit: schimmi: Quit: ZNC - http://znc.sourceforge.net
[2010/07/20 12:39:22] @ schimmi joined channel #puppet
[2010/07/20 12:40:29] @ Quit: \ask: Remote host closed the connection
[2010/07/20 12:40:57] @ \ask joined channel #puppet
[2010/07/20 12:41:59] @ schimmi left channel #puppet ()
[2010/07/20 12:43:18] <geekatcmu> http://pastie.org/1052520
[2010/07/20 12:43:20] * geekatcmu sighs
[2010/07/20 12:43:41] @ achester joined channel #puppet
[2010/07/20 12:44:06] <geekatcmu> So, assume I actually put the template() around the content pointer.
[2010/07/20 12:44:13] <mackn> heh
[2010/07/20 12:44:20] <jbooth> geekatcmu: Yep
[2010/07/20 12:44:44] <jbooth> geekatcmu: And yes you need a define there.
[2010/07/20 12:44:45] <carlasouza> :)
[2010/07/20 12:45:03] <jbooth> Well... in 2.6 that isn't true
[2010/07/20 12:45:07] <geekatcmu> Oddly enough, it's *also* trying to do math.
[2010/07/20 12:45:08] @ Quit: \ask: Ping timeout: 248 seconds
[2010/07/20 12:45:10] <jbooth> But in 0.25 or less yes.
[2010/07/20 12:45:15] <geekatcmu> Thanks.
[2010/07/20 12:45:50] @ schimmi joined channel #puppet
[2010/07/20 12:46:39] @ Quit: [GuS]: Remote host closed the connection
[2010/07/20 12:49:03] @ Quit: MrHeavy: Read error: Connection reset by peer
[2010/07/20 12:52:48] @ gebi joined channel #puppet
[2010/07/20 12:56:37] @ OpenMedia joined channel #puppet
[2010/07/20 12:57:26] @ MrHeavy joined channel #puppet
[2010/07/20 12:58:58] @ littleidea joined channel #puppet
[2010/07/20 13:04:48] <dballing> I asked this before but I don't recall seeing anyone answer. If one of my clients eventually grabs 2.6 from EPEL at kickstart time, will it have any problems talking to my 0.25.5 servers?
[2010/07/20 13:05:34] <Volcane> probably. its really a bad idea to rely on 3rd party repos during builds
[2010/07/20 13:05:36] <mackn> historically newer clients can have issues talking to older masters
[2010/07/20 13:06:14] <dballing> Volcane: yeah, I know. I'm working on building our own local repo for that precise reason, but until then....
[2010/07/20 13:06:36] <dballing> I might just freeze our EPEL mirror and stop taking updates on it....
[2010/07/20 13:07:49] <Volcane> epic sigh @ warning: You have configuration parameter $graph specified in [puppetd], which is a deprecated section. I'm assuming you meant [agent]
[2010/07/20 13:08:40] <fenris02> is there a conversion script? :)
[2010/07/20 13:09:08] <Kiloman> dballing: I tend to put a specific version in our kickstarts for just that reasion
[2010/07/20 13:09:10] <Kiloman> *reason
[2010/07/20 13:09:39] <fenris02> Kiloman, how? by importing ISOs that match and just not doing updates?
[2010/07/20 13:10:01] <Kiloman> no, just put 'puppet-0.25.5' in the package section
[2010/07/20 13:10:08] <Kiloman> instead of just 'puppet'
[2010/07/20 13:10:34] <dballing> Kiloman: you're pointing kickstart at multiple repos?
[2010/07/20 13:10:37] <fenris02> oh, i see. i thought about that, but not sure i like editing the puppet files every time there's an update
[2010/07/20 13:11:09] <Kiloman> en, as long as it's the right major version, it can get updated later
[2010/07/20 13:11:11] <dballing> we use the "stock" CentOS mirror for main install (the package list), then add the EPEL-mirror in post, and do a yum install at that point.
[2010/07/20 13:13:20] @ Quit: mattock: Ping timeout: 258 seconds
[2010/07/20 13:13:51] <tmz> FWIW, there are no imminent plans to drop 2.6 into EPEL. At least not without some decent idea that it's reasonably backward-compatible and stable.
[2010/07/20 13:14:21] @ Quit: reyjrar: Quit: Leaving.
[2010/07/20 13:14:25] <fenris02> tmz, you plan on dropping it onto fedora? :)
[2010/07/20 13:14:26] <tmz> Anyone that wants to test is welcome to use the repos at http://tmz.fedorapeople.org/repo/puppet/ if they don't want to build their own packages.
[2010/07/20 13:14:44] <tmz> fenris02: No, since having clients newer than a master might cause issues.
[2010/07/20 13:14:59] <tmz> Basically, they usually stay in lock-step.
[2010/07/20 13:15:16] <fenris02> tmz, 0.25 clients should be able to talk to a 2.6 server, right?
[2010/07/20 13:15:22] <tmz> At some point, puppet will stop moving as quickly and compatibility between releases will be less of an issue.
[2010/07/20 13:15:31] <tmz> I think they should, but haven't tested much myself.
[2010/07/20 13:15:38] <fenris02> is there a version check in the client such that it'll refuse if it's newer than the server?
[2010/07/20 13:15:56] <fenris02> (should there be such a check?)
[2010/07/20 13:16:14] <tmz> Not that I know of. For the 0.24 to 0.25, it failed because of the switch to REST
[2010/07/20 13:16:20] @ Quit: bobbyz: Quit: Leaving
[2010/07/20 13:17:05] <fenris02> ah. that could be problematic.
[2010/07/20 13:17:18] <tmz> Ideally, things shouldn't break so easily or too often. So a check that just refuses to work with a newer master would be as bad as a blind $USER-AGENT != Internet Explorer. :)
[2010/07/20 13:17:20] <dballing> well, ok, let me ask the followup question: what all is involved in upgrading my server from 0.25.5 to 2.6, if I'm using Apache as my front-end?
[2010/07/20 13:17:38] <dballing> ie, if the problem can't be attacked from the client side... :-)
[2010/07/20 13:17:59] <tmz> dballing: enable the tmz.fedorapeople.org repo, yum update and give it a try.
[2010/07/20 13:18:14] @ ahasenack joined channel #puppet
[2010/07/20 13:18:14] <dballing> tmz: yeah, this is kind of my production environment. :-)
[2010/07/20 13:18:18] <tmz> I did that on my local systems with rc2 and found a few issues that were fixed up.
[2010/07/20 13:18:28] <dballing> "give it a try" isn't necessarily what I was hoping for. :-D
[2010/07/20 13:18:35] <tmz> dballing: Ah. Then you'd be wise to find a staging environment to test in.
[2010/07/20 13:18:45] <dballing> tmz: wish that I had one. :-(
[2010/07/20 13:18:49] <tmz> Or hope that others test it well enough.
[2010/07/20 13:19:06] @ Quit: littleidea: Quit: littleidea
[2010/07/20 13:19:16] <dballing> I guess I'm just asking is: in THEORY, is the 2.6 server a drop-in for 0.25.5?
[2010/07/20 13:19:24] <tmz> dballing: A few vm's can go a good way toward easing concerns about rolling it into production.
[2010/07/20 13:19:30] <dballing> or is there a bunch of work to re-duct-tape it in place? :-)
[2010/07/20 13:19:52] <tmz> AFAIK, there aren't supposed to be backward-incompatible changes with this release.
[2010/07/20 13:20:15] @ santoroj1 joined channel #puppet
[2010/07/20 13:20:17] <tmz> There are new warnings for the single binary (like Volcane pointed out above).
[2010/07/20 13:20:47] <tmz> In theory, we could patch those to be debug rather than warnings in the epel packages. Not sure if there's value in doing that or not yet.
[2010/07/20 13:21:05] * tmz dislikes deviating from upstream whenever possible
[2010/07/20 13:21:44] <dballing> I saw something about "[puppetd]" versus "[agent]"? if I'm running 0.25.5, am I supposed to be using "[agent]"? in that respect, I'm just using whatever was in the default configs
[2010/07/20 13:21:47] <Tonnerre> There are upstreams you want to deviate from as much as possible
[2010/07/20 13:21:50] <Tonnerre> If not avoid them
[2010/07/20 13:22:22] <tmz> dballing: Eventually, yeah. But it still works, it's just a warning that it should be changed for the future.
[2010/07/20 13:22:41] * Volcane is rapidly going back to 0.25.x
[2010/07/20 13:22:47] <tmz> I did update the default configs shipped in the packages. but if you change then, rpm won't overwrite them.
[2010/07/20 13:22:51] <Volcane> wow, whats the purpose of the 100s of 'auto importing... lines'
[2010/07/20 13:22:54] <dballing> ok, so I can wait til things settle out and then just push a new client config out.....
[2010/07/20 13:22:57] <tmz> Volcane: What all did you run into?
[2010/07/20 13:22:59] @ rmiller4pi8 joined channel #puppet
[2010/07/20 13:23:11] <Volcane> software thats too annying to use on the cli.
[2010/07/20 13:23:42] <tmz> Just because of the new warnings?
[2010/07/20 13:23:43] @ Quit: santoroj1: Client Quit
[2010/07/20 13:23:55] <Volcane> i dont mind the deprecation warnings
[2010/07/20 13:24:00] <Volcane> well i do but fair enough
[2010/07/20 13:24:06] <Volcane> --test produce lots of auto importing lines
[2010/07/20 13:24:33] <Volcane> 21:15:44 monitor2> puppet-agent[16370]: Automatically imported iptables::motd from iptables/motd into production
[2010/07/20 13:24:43] <tmz> Those might be better as debug, yeah.
[2010/07/20 13:25:18] <Volcane> wil ticket
[2010/07/20 13:25:26] <Volcane> also weird escaping issues
[2010/07/20 13:25:30] <Volcane> #4303
[2010/07/20 13:25:30] <gepetto> Volcane: #4303 is http://projects.puppetlabs.com/issues/show/4303 "Puppet - Bug #4303: warning: Unrecognised escape sequence '\.' in file ..... - Puppet Labs"
[2010/07/20 13:26:10] @ Quit: PhabX: Remote host closed the connection
[2010/07/20 13:26:32] <tmz> Neat.
[2010/07/20 13:27:25] @ faddah joined channel #puppet
[2010/07/20 13:27:36] @ faddah left channel #puppet ()
[2010/07/20 13:28:14] @ littleidea joined channel #puppet
[2010/07/20 13:33:39] <fenris02> iptables::motd ? that does not really make sense.
[2010/07/20 13:33:54] @ TREllis joined channel #puppet
[2010/07/20 13:34:22] <Volcane> fenris02: makes a motd: http://pastie.org/1052635
[2010/07/20 13:34:30] <Volcane> fenris02: modules can register into the motd
[2010/07/20 13:34:45] @ mindless left channel #puppet ()
[2010/07/20 13:35:53] <Volcane> fenris02: so not all my nodes have iptables rules, this way when i login i know
[2010/07/20 13:38:18] @ plathrop is now known as plathrop-away
[2010/07/20 13:41:11] <ashp> why can't people here realize i can't just 'throw in support for mounting volumes on cifs' into puppet
[2010/07/20 13:41:27] <ashp> in 1 second flat, i actually have to stop and think about how to handle this fucking nightmare of evil
[2010/07/20 13:41:41] <fenris02> add to autofs ?
[2010/07/20 13:41:52] <ashp> we don't use automounter
[2010/07/20 13:42:21] <ashp> also they didn't provide an account to authenticate against and i'm sure as hell not mounting them with my admin account
[2010/07/20 13:42:22] <fenris02> er, why not? it works awesome with cifs/nfs
[2010/07/20 13:42:25] <ashp> nobody thought their way through this
[2010/07/20 13:42:30] <fenris02> ah, ok
[2010/07/20 13:42:30] @ zenchild joined channel #puppet
[2010/07/20 13:42:33] <ashp> fenris02: my boss "doesn't trust automounter"
[2010/07/20 13:42:36] <ashp> that's a direct quote
[2010/07/20 13:42:40] <fenris02> there are userland tools for this too
[2010/07/20 13:43:04] * fenris02 searches for the proper name
[2010/07/20 13:43:08] @ plathrop-away is now known as plathrop
[2010/07/20 13:43:13] @ Quit: ahasenack: Quit: Leaving
[2010/07/20 13:44:11] <aforgue> I don't trust automounter either, but it's worth the trouble mostly
[2010/07/20 13:44:29] <ashp> yeah, i'd use it but he specifically told me not to, so i just let it go
[2010/07/20 13:44:41] <ashp> two years ago i was all over this environment like it was my baby
[2010/07/20 13:44:52] <ashp> now it's like it's 35 years old and still living at home playing WoW
[2010/07/20 13:44:54] <ashp> and i just want it to go away
[2010/07/20 13:45:14] @ lak joined channel #puppet
[2010/07/20 13:45:17] <aforgue> haha
[2010/07/20 13:46:46] @ toi joined channel #puppet
[2010/07/20 13:49:34] <fenris02> nice
[2010/07/20 13:54:40] @ Quit: radkin: Remote host closed the connection
[2010/07/20 14:03:19] <dan__t> I wish I had time to play with all the new shart in 2.6
[2010/07/20 14:07:54] @ Quit: Hypnoz: Ping timeout: 260 seconds
[2010/07/20 14:07:58] <bdha> automounter is fail.
[2010/07/20 14:08:14] <bdha> Most trivial fix is replacing auto_home, but still. blegh.
[2010/07/20 14:08:25] <bdha> If you don't need network homes, what's the point.
[2010/07/20 14:09:27] @ joe-mac left channel #puppet ()
[2010/07/20 14:10:18] <dan__t> heh
[2010/07/20 14:10:58] <ecapriolo> I love how with all the great things linux has no one has ever come up with a liked automounter implementation
[2010/07/20 14:11:18] <bdha> It isn't just Linux's automounter that sucks. :)
[2010/07/20 14:12:09] @ jmccune joined channel #puppet
[2010/07/20 14:14:29] @ zenchild left channel #puppet ()
[2010/07/20 14:21:24] @ keithlard joined channel #puppet
[2010/07/20 14:21:37] @ Quit: keithlard: Client Quit
[2010/07/20 14:25:24] @ bitfield joined channel #puppet
[2010/07/20 14:26:04] @ Quit: adrian_broher: Quit: Verlassend
[2010/07/20 14:31:43] @ shenson is now known as zz_shenson
[2010/07/20 14:32:00] @ Quit: eidolon: Quit: Leaving
[2010/07/20 14:33:33] @ Quit: squirrel_labs: Quit: See ya!
[2010/07/20 14:37:35] <fenris02> *shrugs* autofs works here for nfs/cifs. not tried dav yet, but it should work too. fuse would be better suited for cifs/dav though.
[2010/07/20 14:38:57] @ Quit: MPSimmons: Quit: Leaving.
[2010/07/20 14:39:37] @ fredden joined channel #puppet
[2010/07/20 14:45:46] @ Hypnoz joined channel #puppet
[2010/07/20 14:48:41] @ Quit: toi: Ping timeout: 265 seconds
[2010/07/20 14:50:08] @ Quit: littleidea: Quit: littleidea
[2010/07/20 14:52:58] * odyi_ thinks that is a cue for complaining about Lunux's NFS server.
[2010/07/20 14:53:12] @ odyi_ is now known as odyi
[2010/07/20 14:53:36] @ fbe joined channel #puppet
[2010/07/20 14:56:11] @ littleidea joined channel #puppet
[2010/07/20 14:57:28] @ windowsr1fund joined channel #puppet
[2010/07/20 14:57:28] @ plathrop is now known as plathrop-away
[2010/07/20 14:58:09] @ Quit: windowsrefund: Ping timeout: 240 seconds
[2010/07/20 14:58:31] @ stewartl42 joined channel #puppet
[2010/07/20 14:58:36] @ stewartl42 left channel #puppet ()
[2010/07/20 15:01:51] @ Quit: ecapriolo: Quit: KVIrc Insomnia 4.0.0, revision: 4030, sources date: 20100125, built on: 2010-02-25 23:12:54 UTC http://www.kvirc.net/
[2010/07/20 15:02:29] @ Quit: littleidea: Quit: littleidea
[2010/07/20 15:10:47] @ Quit: jschairb: Quit: jschairb
[2010/07/20 15:24:28] @ Quit: pheezy: Remote host closed the connection
[2010/07/20 15:28:40] @ Quit: spawnyd: Ping timeout: 276 seconds
[2010/07/20 15:33:02] <aforgue> for 2.6, is there a way to specify --moduledir to run the site.pp locally instead of from the server?
[2010/07/20 15:33:14] <aforgue> I thought it was in 0.25, but seems to not be there
[2010/07/20 15:36:54] @ zorzar joined channel #puppet
[2010/07/20 15:36:59] @ littleidea joined channel #puppet
[2010/07/20 15:37:39] @ romke joined channel #puppet
[2010/07/20 15:38:59] @ Quit: scooby2: Quit: leaving
[2010/07/20 15:39:00] @ raven joined channel #puppet
[2010/07/20 15:39:54] @ Quit: zorzar_: Ping timeout: 240 seconds
[2010/07/20 15:41:21] @ bug joined channel #puppet
[2010/07/20 15:41:55] @ Quit: notbrien: Quit: notbrien
[2010/07/20 15:44:08] @ rodnet joined channel #puppet
[2010/07/20 15:53:45] @ Quit: kaptk2: Quit: Leaving.
[2010/07/20 16:00:06] @ Quit: rodnet: Quit: rodnet
[2010/07/20 16:01:15] @ snikkers joined channel #puppet
[2010/07/20 16:03:18] @ Quit: gebi: Ping timeout: 240 seconds
[2010/07/20 16:03:20] @ Quit: jab_doa: Quit: Verlassend
[2010/07/20 16:04:02] @ Quit: littleidea: Quit: littleidea
[2010/07/20 16:04:29] @ Quit: fenris02: Quit: Leaving
[2010/07/20 16:05:33] @ Quit: jdcasey: Remote host closed the connection
[2010/07/20 16:05:49] @ Quit: becks`:
[2010/07/20 16:10:07] @ kolla joined channel #puppet
[2010/07/20 16:12:53] @ scooby2 joined channel #puppet
[2010/07/20 16:18:38] <gniks> so when puppetd —disable is in effect the error logs show "Run of Puppet configuration client already in progress; skipping" might be helpful to have a better message in this instance :)
[2010/07/20 16:23:02] @ Quit: fbe: Quit: Leaving
[2010/07/20 16:31:16] @ littleidea joined channel #puppet
[2010/07/20 16:39:01] <mackn> i don't think it can tell the diff :)
[2010/07/20 16:39:21] <gniks> yeah, but should be programmed to do ;)
[2010/07/20 16:39:43] @ Quit: TREllis: Quit: ---> ZzZzZz
[2010/07/20 16:41:15] <Determinist> err: /Stage[main]/Java/Exec[accept-license]/returns: change from notrun to 0 failed: Could not find command '
[2010/07/20 16:41:17] <Determinist> echo'
[2010/07/20 16:41:33] @ Djelibeybi joined channel #puppet
[2010/07/20 16:41:40] <Determinist> getting this strange error since upgrading to 2.6.0, worked fine on the prev version. any ideas?
[2010/07/20 16:59:35] <Determinist> nm, figured it out. was something silly.
[2010/07/20 17:00:09] <Determinist> seems like 2.6.0 is more sensitive about the exec { "...": command => "" } and newlines.
[2010/07/20 17:00:57] @ fenris02 joined channel #puppet
[2010/07/20 17:04:30] @ Quit: Hypnoz: Ping timeout: 245 seconds
[2010/07/20 17:09:25] @ Quit: gniks: Ping timeout: 276 seconds
[2010/07/20 17:20:05] @ gniks joined channel #puppet
[2010/07/20 17:21:56] @ Hypnoz joined channel #puppet
[2010/07/20 17:29:40] @ Quit: mclarke: Quit: mclarke
[2010/07/20 17:31:59] @ ghaskins_mobile joined channel #puppet
[2010/07/20 17:32:42] <ghaskins_mobile> hi all, im having trouble figuing out the magic of using the zypper provider for managing some suse nodes
[2010/07/20 17:33:11] <ghaskins_mobile> anyone have experience managing suse nodes, or how to use a provider in general?
[2010/07/20 17:34:00] <ghaskins_mobile> (sorry if this is dumb question...been searching google in vain all afternoon
[2010/07/20 17:34:02] @ p3rror joined channel #puppet
[2010/07/20 17:37:55] @ Quit: littleidea: Read error: Connection reset by peer
[2010/07/20 17:39:00] <Djelibeybi> jamesturnbull: who's doing the Sydney training, btw?
[2010/07/20 17:40:08] @ littleidea joined channel #puppet
[2010/07/20 17:41:02] @ Quit: lak: Quit: lak
[2010/07/20 17:43:09] <jamesturnbull> Djelibeybi: not sure - the PS guys will probably fight over it - I've told them Australia is paved with gold and beer flows freely and the women/men just throw themselves at accented foreigners ... the bickering started shortly after I left the room
[2010/07/20 17:43:35] <Djelibeybi> jamesturnbull: clever. I notice the complete lack of warning about Dropbears, though.
[2010/07/20 17:45:41] <Kiloman> jamesturnbull: I hear OSU is trying to set something up with you guys?
[2010/07/20 17:45:49] <Kiloman> my crew will probably end up there as well
[2010/07/20 17:46:03] <jamesturnbull> Kiloman: and which crew do you roll with?
[2010/07/20 17:46:07] <Kiloman> UO ;)
[2010/07/20 17:47:43] <Kiloman> s/probably/hopefully/
[2010/07/20 17:48:27] <Kiloman> we're already using Puppet to manage our core mail/web/oracle infrastructure (which is why I'm here) but more training is always good
[2010/07/20 17:51:11] @ Quit: Hypnoz: Ping timeout: 264 seconds
[2010/07/20 17:52:01] <Determinist> jamesturnbull: i see there's something called 'events' in 2.6.0, what are those?
[2010/07/20 17:52:34] <jmslagle> Which OSU :P
[2010/07/20 17:52:41] <Kiloman> the good one!
[2010/07/20 17:52:44] <Kiloman> Oregon State ;)
[2010/07/20 17:52:47] <jmslagle> Ahh ;)
[2010/07/20 17:52:53] * jmslagle in Ohio
[2010/07/20 17:53:20] * Determinist in IL, not Illinois tho ;)
[2010/07/20 17:53:51] @ Quit: Russ_S: Quit: Leaving
[2010/07/20 18:03:53] <Determinist> do the pre/postrun_command scripts get any parameters passed to them? how would i know which node is doing running against the master?
[2010/07/20 18:04:03] <Determinist> s/doing/''
[2010/07/20 18:04:25] @ Quit: romke: Quit: leaving
[2010/07/20 18:05:43] <aforgue> Is there a way to parse the entire site.pp and all dependencies (modules, other manifests) within ruby to get a list of resources, defines, classes?
[2010/07/20 18:05:59] <aforgue> without actually building a catalot for a specific node?
[2010/07/20 18:06:19] <aforgue> I'm trying to build a ctags file, and the ctags regex stuff isn't very reliable
[2010/07/20 18:07:18] <aforgue> I'm trying to do it in ruby with 'require "puppet"' and then somehow iterate through everything that the parser found
[2010/07/20 18:07:35] <aforgue> I may be totally off my rocker....
[2010/07/20 18:08:02] @ jhaddad joined channel #puppet
[2010/07/20 18:08:38] <jamesturnbull> Kiloman: cool
[2010/07/20 18:08:48] <jamesturnbull> Determinist: events are basically more granular output from Puppet runs
[2010/07/20 18:09:58] @ sdodson joined channel #puppet
[2010/07/20 18:17:15] @ Wandrewvious joined channel #puppet
[2010/07/20 18:17:16] @ Quit: Wandrewvious: Client Quit
[2010/07/20 18:21:21] @ Quit: WALoeIII: Ping timeout: 265 seconds
[2010/07/20 18:21:37] @ Quit: littleidea: Quit: littleidea
[2010/07/20 18:21:45] @ Quit: jense: Ping timeout: 240 seconds
[2010/07/20 18:28:19] @ sebas891 joined channel #puppet
[2010/07/20 18:33:04] @ Quit: rcrowley: Quit: rcrowley
[2010/07/20 18:36:48] @ jense joined channel #puppet
[2010/07/20 18:36:57] @ Quit: vagn: Quit: ChatZilla 0.9.86 [Firefox 3.0.19/2010040118]
[2010/07/20 18:43:51] @ littleidea joined channel #puppet
[2010/07/20 18:54:22] @ Quit: jmccune: Ping timeout: 246 seconds
[2010/07/20 18:59:17] @ ohadlevy left channel #puppet ()
[2010/07/20 18:59:41] @ WALoeIII joined channel #puppet
[2010/07/20 19:01:31] @ ohadlevy joined channel #puppet
[2010/07/20 19:02:29] @ Quit: WALoeIII: Client Quit
[2010/07/20 19:03:14] @ Quit: littleidea: Quit: littleidea
[2010/07/20 19:17:02] @ ahuman joined channel #puppet
[2010/07/20 19:18:08] @ alexine_dsouza joined channel #puppet
[2010/07/20 19:18:19] @ \ask joined channel #puppet
[2010/07/20 19:24:10] @ cyrus_mc joined channel #puppet
[2010/07/20 19:34:43] @ jaredrhine joined channel #puppet
[2010/07/20 19:34:54] @ Quit: cyrus_mc: Ping timeout: 252 seconds
[2010/07/20 19:35:29] @ salvor joined channel #puppet
[2010/07/20 19:38:26] @ physicspackage joined channel #puppet
[2010/07/20 19:39:29] @ Quit: physicspackage: Client Quit
[2010/07/20 19:40:42] @ PhabX joined channel #puppet
[2010/07/20 19:40:48] @ jmccune joined channel #puppet
[2010/07/20 19:59:14] @ devdas joined channel #puppet
[2010/07/20 20:01:46] @ davea1 joined channel #puppet
[2010/07/20 20:02:22] @ wilmoore joined channel #puppet
[2010/07/20 20:06:40] @ AimanA is now known as HouseAway
[2010/07/20 20:12:24] @ MaxBube joined channel #puppet
[2010/07/20 20:19:21] @ alcy joined channel #puppet
[2010/07/20 20:20:42] @ Quit: bug: Quit: bug
[2010/07/20 20:28:49] @ Quit: sebas891: Quit: Leaving.
[2010/07/20 20:30:00] @ Quit: MaxBube: Quit: Ex-Chat
[2010/07/20 20:32:26] @ bug joined channel #puppet
[2010/07/20 20:33:30] @ thekad is now known as thekad-afk
[2010/07/20 20:41:42] @ littleidea joined channel #puppet
[2010/07/20 20:45:17] @ Quit: ghaskins_mobile: Quit: Leaving
[2010/07/20 20:45:51] @ Quit: littleidea: Client Quit
[2010/07/20 20:48:34] @ emiddd_ joined channel #puppet
[2010/07/20 20:53:47] <alcy> folks, trying to get a template work, just a little pointer required: http://pastie.org/1053110 , I think I am mixing ruby code with erb template code, but then, i do want to get something like that.
[2010/07/20 20:58:15] @ littleidea joined channel #puppet
[2010/07/20 20:58:48] @ jens_ joined channel #puppet
[2010/07/20 21:00:11] @ Quit: jense: Read error: Operation timed out
[2010/07/20 21:01:38] @ Quit: Bass2: Ping timeout: 260 seconds
[2010/07/20 21:01:46] @ vagn joined channel #puppet
[2010/07/20 21:01:50] <salvor> alcy: I think this part: <%=domain%>.split(".")
[2010/07/20 21:02:30] <salvor> should be replaced by <%=domain.split(".").join("something_maybe_a_coma")%>
[2010/07/20 21:02:50] <salvor> outside <% ... %> you cannot put ruby code, it will not be interpreted
[2010/07/20 21:03:22] <salvor> and inside, you should return a string (hence the "join" I propose)
[2010/07/20 21:03:37] <salvor> hope it helps, I have to go, by
[2010/07/20 21:03:39] <salvor> bye*
[2010/07/20 21:03:41] @ salvor left channel #puppet ("WeeChat 0.3.0")
[2010/07/20 21:03:53] <alcy> salvor: thanks a lot ! :)
[2010/07/20 21:11:46] @ Quit: vagn: Quit: ChatZilla 0.9.85 [Iceape 2.0.5/20100623124528]
[2010/07/20 21:14:24] @ Quit: OpenMedia: Quit: Leaving.
[2010/07/20 21:17:37] @ Quit: pting: Quit: Ex-Chat
[2010/07/20 21:18:49] @ mattock joined channel #puppet
[2010/07/20 21:42:48] @ Quit: gniks: Quit: Leaving.
[2010/07/20 21:43:02] @ gniks joined channel #puppet
[2010/07/20 21:46:45] @ Anandha joined channel #puppet
[2010/07/20 21:59:01] @ Quit: jmccune: Ping timeout: 252 seconds
[2010/07/20 21:59:39] @ Quit: cliff-hm: Ping timeout: 258 seconds
[2010/07/20 22:02:40] @ quit (okay bye)
[2010/07/20 22:03:18] @ Joined channel #puppet
[2010/07/20 22:03:18] @ Topic is "Puppet 2.6.0 released! http://bit.ly/dp8LKR | Puppet Dashboard 1.0.1 released! http://tinyurl.com/2b2gzc5 | Puppet Labs wants an Ops Engineer - http://bit.ly/cjroPr | http://docs.puppetlabs.com | Bugs & Feature Requests: http://bit.ly/ddjhPk"
[2010/07/20 22:03:18] @ Topic set by jamesturnbull!~jamesturn@pelin.lovedthanlost.net on Mon Jul 19 22:31:38 -0700 2010
[2010/07/20 22:03:21] @ Mode +cnt by kornbluth.freenode.net
[2010/07/20 22:04:15] @ Quit: littleidea: Quit: littleidea
[2010/07/20 22:07:03] @ Quit: omry: Remote host closed the connection
[2010/07/20 22:08:50] @ jmccune joined channel #puppet
[2010/07/20 22:10:48] @ Quit: devdas: Remote host closed the connection
[2010/07/20 22:15:46] @ Quit: jmccune: Ping timeout: 265 seconds
[2010/07/20 22:26:17] @ cyrus_mc joined channel #puppet
[2010/07/20 22:26:42] @ benoit__ joined channel #puppet
[2010/07/20 22:26:59] @ Quit: Anandha: Quit: Page closed
[2010/07/20 22:34:58] @ Quit: emiddd_: Ping timeout: 265 seconds
[2010/07/20 22:36:06] @ Quit: jhunter: Ping timeout: 260 seconds
[2010/07/20 22:36:08] @ jhunter joined channel #puppet
[2010/07/20 22:36:34] <cyrus_mc> how can I implement multiple inheritance for nodes. I have one node - base_node, from there I break it down into dev, prod and tqa nodes (each of those inherit base).
[2010/07/20 22:37:16] <cyrus_mc> after that I have applicatino classifications for nodes, so I have a wes node
[2010/07/20 22:37:48] <cyrus_mc> from there I need to define dev, tqa and prod wes nodes so I wanted to do somethign like node wes_prod inherits wes, dev { .. }
[2010/07/20 22:38:33] @ ckauhaus joined channel #puppet
[2010/07/20 22:38:53] @ Quit: ceren: Read error: Connection reset by peer
[2010/07/20 22:40:22] @ ceren joined channel #puppet
[2010/07/20 22:42:01] @ emiddd_ joined channel #puppet
[2010/07/20 22:43:15] @ Quit: ckauhaus: Ping timeout: 276 seconds
[2010/07/20 22:45:00] <fenris02> like this? http://git.example42.com/?p=example42infrastructures/.git;a=blob_plain;f=example42_small/nodes.pp;hb=HEAD
[2010/07/20 22:46:29] <marut> last I heard puppet does not do multiple inheritance. However, it's usually pretty easy to redesign such that your classes include the relevant resources (classes), rather than resorting to multiple inheritance. Do you really need to override resources in more than one class?
[2010/07/20 22:51:30] @ ckauhaus joined channel #puppet
[2010/07/20 22:51:39] <cyrus_mc> marut: what is the difference betwen a class and a node....can't you really do all the same stuff inside a node as you can a class
[2010/07/20 22:51:50] <cyrus_mc> sorry, I am very new to puppet so that may sound liek a dumb question
[2010/07/20 22:52:32] <fenris02> you "can" ... but why put shared code into a non-shared space?
[2010/07/20 22:54:15] <fenris02> instead, create multiple classes. each class with a specific task. Then include the tasks you want into the node. This way, you have flexibility and reuse.
[2010/07/20 22:55:55] @ gebi joined channel #puppet
[2010/07/20 22:56:50] <marut> cyrus_mc: I heard "multiple inheritance" and my brain jumped to "class". otherwise, what fenris02 said. best to design your configuration using modules/classes and then include them in your nodes. :)
[2010/07/20 22:58:03] <fenris02> marut, I heard "multiple inheritance" and i thought "where did i leave my tylenol ..."
[2010/07/20 22:58:15] <cyrus_mc> marut: ok..that is what I did but didn't think that was the way to do it
[2010/07/20 22:58:24] <cyrus_mc> also http://projects.puppetlabs.com/projects/puppet/wiki/Using_Multiple_Environments
[2010/07/20 22:58:31] <cyrus_mc> i was trying to implement this..
[2010/07/20 22:59:44] <fenris02> that's the same as what i said above really ... they do not conflict
[2010/07/20 22:59:51] @ alban2 joined channel #puppet
[2010/07/20 23:00:03] <cyrus_mc> in my puppet.conf that I supply when running puppetmasterd I defined three sections production, development and tqa where I set differnet fileserver (I believe that is the directive) to point to different fileserver.cfg files.
[2010/07/20 23:00:48] @ Quit: benoit__: Ping timeout: 276 seconds
[2010/07/20 23:00:52] <cyrus_mc> each one of the filserver.cfg fiels specified a different location for the files. However when I run puppet on the client specifying the --environment= it doesn't seem to select the correct one as it just defaults to the global fileserver.cfg
[2010/07/20 23:02:35] @ jmccune joined channel #puppet
[2010/07/20 23:02:47] @ Quit: Determinist: Remote host closed the connection
[2010/07/20 23:06:56] <marut> cyrus_mc: would this affect you? http://projects.reductivelabs.com/issues/3548
[2010/07/20 23:07:42] @ rcrowley joined channel #puppet
[2010/07/20 23:07:46] @ Quit: fredden: Remote host closed the connection
[2010/07/20 23:11:34] @ Quit: cyrus_mc: Ping timeout: 260 seconds
[2010/07/20 23:23:29] @ rasputnik joined channel #puppet
[2010/07/20 23:23:48] @ Quit: rasputnik: Client Quit
[2010/07/20 23:26:28] @ Quit: alban2: Ping timeout: 240 seconds
[2010/07/20 23:30:19] @ Quit: ckauhaus: Ping timeout: 253 seconds
[2010/07/20 23:34:29] @ WALoeIII joined channel #puppet
[2010/07/20 23:37:45] @ Quit: PhabX: Quit: PhabX
[2010/07/20 23:37:45] @ ahasenack joined channel #puppet
[2010/07/20 23:37:58] @ Quit: jmccune: Ping timeout: 260 seconds
[2010/07/20 23:41:46] @ pmorillo joined channel #puppet
[2010/07/20 23:42:53] @ Quit: rcrowley: Quit: rcrowley
[2010/07/20 23:42:56] @ Quit: WALoeIII: Quit: Bai.
[2010/07/20 23:50:49] @ rmt joined channel #puppet
[2010/07/20 23:50:50] @ Quit: alexine_dsouza: Read error: Connection reset by peer
[2010/07/20 23:51:02] <rmt> Hi ho.
[2010/07/20 23:51:24] @ alexine_dsouza joined channel #puppet
[2010/07/20 23:52:30] <rmt> If I want to generate a config on a specific server, based on configuration in multiple nodes, how would I achieve that? I'd like to be able to iterate over a list of Node's implementing a specific class.
[2010/07/20 23:53:04] <rmt> (in a template)
[2010/07/20 23:55:16] <rmt> eg., I'd like to define a dhcp class on a node, which contains a MAC address (or two), an IP address, and possibly a pxeboot file/template to use .. I'd then like to use that (and all other definitions) to generate the dhcpd.conf file.
[2010/07/20 23:55:21] <Djelibeybi> rmt: exported and collected resources is what you're looking for here.
[2010/07/20 23:55:44] <Djelibeybi> rmt: but that seems a bit chicken-egg for me: how will a node talk to a puppet master if it's not in dhcpd.conf yet?
[2010/07/20 23:56:16] <rmt> Djelibeybi, I will define the node in puppet conf first - it needn't register itself until it's booted. :-)
[2010/07/20 23:56:33] <Djelibeybi> rmt: ah, then exported/collected resources won't work. That only happens when the node runs Puppet
[2010/07/20 23:56:50] <rmt> Hmm.
[2010/07/20 23:56:58] <ohadlevy> rmt: you might look at foreman query interface
[2010/07/20 23:57:12] <Djelibeybi> ohadlevy: I was about to suggest Foreman. :) I suspected it would do something like this.
[2010/07/20 23:57:48] <ohadlevy> Djelibeybi: yeah it does, but you still have the chicken and the egg problem regardless (hmm unless you use foreman for actual provisioning ;))

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