Friday, 2010-01-29

[2010/01/29 00:03:05] @ Log started by gepetto
[2010/01/29 00:03:05] <jcape> tessier, tessier_: puppetca --clean
[2010/01/29 00:03:37] <bda> er.
[2010/01/29 00:03:54] <bda> The Puppet cron provider on Solaris seems to have added an extra * to every job.
[2010/01/29 00:03:58] <bda> (0.25.3)
[2010/01/29 00:04:19] <tessier_> jcape: Thanks!
[2010/01/29 00:04:35] @ jaredrhine joined channel #puppet
[2010/01/29 00:05:15] @ WALoeIII joined channel #puppet
[2010/01/29 00:07:07] @ Quit: jfreeman: Read error: 54 (Connection reset by peer)
[2010/01/29 00:07:23] <bda> > CMD: * /icg/wrapper/cronjob -E -c "/usr/sbin/logadm"
[2010/01/29 00:07:25] <bda> Yeah, uhhh.
[2010/01/29 00:07:26] <bda> That's great.
[2010/01/29 00:08:08] <WALoeIII> I'm trying to get puppet running behind nginx, what headers does it use to determine which node has connected
[2010/01/29 00:08:12] <WALoeIII> REMOTE_ADDR?
[2010/01/29 00:08:18] <WALoeIII> or better which file in the source is this
[2010/01/29 00:09:30] @ pheezy joined channel #puppet
[2010/01/29 00:19:13] <whack> WALoeIII: there's docs on the wiki for how to do it
[2010/01/29 00:19:20] <whack> tells you what headers to set, etc
[2010/01/29 00:19:24] <WALoeIII> no thats for passenger w/ apache
[2010/01/29 00:19:35] <whack> also for nginx
[2010/01/29 00:19:37] <WALoeIII> nginx by default doesn't have the ability to set incoming headers like mod_headers
[2010/01/29 00:19:45] <WALoeIII> the nginx sample it proxying to mongrel
[2010/01/29 00:20:01] <WALoeIII> I'm using a module that will allow me to set the incoming headers, and I believe I've got them set correctly
[2010/01/29 00:20:01] <whack> yeah
[2010/01/29 00:20:04] <WALoeIII> I looked in the source
[2010/01/29 00:20:06] <WALoeIII> its REMOTE_ADDR
[2010/01/29 00:20:16] <WALoeIII> that gets looked up by IP to find the appropriate node
[2010/01/29 00:20:28] <WALoeIII> actually its X_FORWARDED_FOR then remote addr
[2010/01/29 00:20:33] <WALoeIII> in a ternary operator
[2010/01/29 00:20:55] <whack> http://reductivelabs.com/trac/puppet/wiki/UsingMongrelNginx.
[2010/01/29 00:21:01] <WALoeIII> I wrote a rack app for passenger that dumps the headers just importing a client cert into firefox to test that what I get is what I expect
[2010/01/29 00:21:14] <WALoeIII> yea those directions are not at all helpful
[2010/01/29 00:21:22] <whack> I have apache in front of mongrel
[2010/01/29 00:21:50] <whack> you want X-Client-DN and X-Client-Verify
[2010/01/29 00:22:04] <WALoeIII> thats the other thing thats confusing
[2010/01/29 00:22:09] @ Quit: pheezy: Remote closed the connection
[2010/01/29 00:22:13] <WALoeIII> In apache it will correct those for you
[2010/01/29 00:22:16] <WALoeIII> nginx is more literal
[2010/01/29 00:22:18] <WALoeIII> you really want
[2010/01/29 00:22:21] <WALoeIII> X_CLIENT_DN
[2010/01/29 00:22:24] <WALoeIII> and X_CLIENT_VERIFY
[2010/01/29 00:22:37] <whack> for http headers?
[2010/01/29 00:22:39] <WALoeIII> yes
[2010/01/29 00:22:40] <whack> I don't think so.
[2010/01/29 00:22:50] <WALoeIII> result[:ip] = params["HTTP_X_FORWARDED_FOR"] ? params["HTTP_X_FORWARDED_FOR"].split(',').last.strip : params["REMOTE_ADDR"]
[2010/01/29 00:22:57] <WALoeIII> if dn = params[Puppet[:ssl_client_header]] and dn_matchdata = dn.match(/^.*?CN\s*=\s*(.*)/)
[2010/01/29 00:23:09] <WALoeIII> default value for :ssl_client_header (from defaults.rb)
[2010/01/29 00:23:24] <WALoeIII> "HTTP_X_CLIENT_DN"
[2010/01/29 00:23:38] <whack> which might be something in puppet or mongrel that normalizes the headers
[2010/01/29 00:24:00] <WALoeIII> the mongrel HTTP parser may
[2010/01/29 00:24:33] <WALoeIII> chrome doesn't support client certs :|
[2010/01/29 00:24:44] <whack> so
[2010/01/29 00:24:44] <WALoeIII> which cert do I import into firefox theres like 10 created
[2010/01/29 00:24:47] <WALoeIII> SSL is terrible :(
[2010/01/29 00:24:53] <WALoeIII> rather
[2010/01/29 00:24:54] <whack> sniffing traffic from apache to puppet/mongrel, I see
[2010/01/29 00:24:55] <WALoeIII> terrible to setup
[2010/01/29 00:25:10] <whack> "X-Client-DN: CN/...."
[2010/01/29 00:25:20] <WALoeIII> must be the mongrel HTTP parser then
[2010/01/29 00:25:32] <whack> either way it doesn't seem like capitalization matters
[2010/01/29 00:25:58] <whack> given other expierience with http (and probably the RFC says this) that capitalization doesn't matters
[2010/01/29 00:26:14] <WALoeIII> no
[2010/01/29 00:26:19] <WALoeIII> but the hash keys in ruby are case sensitive
[2010/01/29 00:26:28] <whack> yes
[2010/01/29 00:26:32] <whack> I'm just saying
[2010/01/29 00:26:38] <WALoeIII> so when you have code checking headers['HTTP_X_CLIENT_VERIFY'] == foo it very much matters
[2010/01/29 00:26:43] <whack> the http header itself doesn't matter much case wise
[2010/01/29 00:26:47] <WALoeIII> fortunately header normalizes it
[2010/01/29 00:26:51] <WALoeIII> err parser
[2010/01/29 00:27:05] <whack> most http parsers do
[2010/01/29 00:27:18] <whack> I think Jetty does, too (java)
[2010/01/29 00:27:24] <whack> at any rate
[2010/01/29 00:27:28] <WALoeIII> whee ok I'm going to test this on the development cluser
[2010/01/29 00:27:42] <WALoeIII> running under passenger also runs my puppet master under REE
[2010/01/29 00:27:44] <WALoeIII> so much better
[2010/01/29 00:28:58] <WALoeIII> though now I realize there is no way its going to find the puppet in the system paths REE is looking in /usr/local
[2010/01/29 00:29:05] <WALoeIII> this is the biggest rathole
[2010/01/29 00:30:53] <WALoeIII> once it works though it will be so much faster, especially with nginx serving static files
[2010/01/29 00:45:34] @ Quit: cwebber: Client Quit
[2010/01/29 00:53:06] <bda> http://projects.reductivelabs.com/issues/3102 # sigh
[2010/01/29 01:00:00] <WALoeIII> wow so excited I just read that there is a Ruby DSL coming
[2010/01/29 01:02:23] @ Quit: HeyYall: Read error: 104 (Connection reset by peer)
[2010/01/29 01:07:17] @ nigelk joined channel #puppet
[2010/01/29 01:08:57] @ Quit: taihen_: Read error: 113 (No route to host)
[2010/01/29 01:11:19] <WALoeIII> preferred_serialization_format is this just not respected in the puppetd stanza?
[2010/01/29 01:13:25] @ HeyYall joined channel #puppet
[2010/01/29 01:20:08] @ ppickfor joined channel #puppet
[2010/01/29 01:29:34] @ mqr joined channel #puppet
[2010/01/29 01:35:45] @ Quit: nigelk:
[2010/01/29 01:37:01] @ Quit: ppickfor2: Read error: 110 (Connection timed out)
[2010/01/29 01:42:02] @ Quit: notbrien: Client Quit
[2010/01/29 01:53:02] @ m1nish joined channel #puppet
[2010/01/29 01:53:03] @ Quit: jaredrhine: Read error: 110 (Connection timed out)
[2010/01/29 01:55:21] @ Quit: bitmonk: Read error: 104 (Connection reset by peer)
[2010/01/29 01:57:06] @ dim0 joined channel #puppet
[2010/01/29 01:57:51] @ bitmonk joined channel #puppet
[2010/01/29 01:58:11] @ Quit: Bass10: Read error: 110 (Connection timed out)
[2010/01/29 01:58:25] @ Quit: dim0: Remote closed the connection
[2010/01/29 01:59:47] @ jaredrhine joined channel #puppet
[2010/01/29 02:03:49] @ taihen joined channel #puppet
[2010/01/29 02:08:46] @ Quit: kolla: Read error: 113 (No route to host)
[2010/01/29 02:09:28] @ yarihm joined channel #puppet
[2010/01/29 02:10:29] @ bkohler joined channel #puppet
[2010/01/29 02:10:33] @ jfreeman joined channel #puppet
[2010/01/29 02:14:43] <gepetto> ::trac:: Downloading Puppet edited @ http://reductivelabs.com/trac/puppet/wiki/DownloadingPuppet?version=108
[2010/01/29 02:23:22] @ yarihm_ joined channel #puppet
[2010/01/29 02:24:36] @ PsychoSid joined channel #puppet
[2010/01/29 02:29:31] @ Quit: m1nish: "Leaving"
[2010/01/29 02:30:27] @ Quit: taihen: Read error: 110 (Connection timed out)
[2010/01/29 02:31:57] @ Quit: yarihm: Read error: 110 (Connection timed out)
[2010/01/29 02:36:07] @ Quit: tim|imac:
[2010/01/29 02:42:37] @ pacalm joined channel #puppet
[2010/01/29 02:48:52] @ kolla joined channel #puppet
[2010/01/29 02:59:31] @ dim0 joined channel #puppet
[2010/01/29 03:02:42] @ mvn071 joined channel #puppet
[2010/01/29 03:03:10] @ Ramonster joined channel #puppet
[2010/01/29 03:04:52] @ Quit: jfreeman: Read error: 110 (Connection timed out)
[2010/01/29 03:06:49] @ Quit: brothers:
[2010/01/29 03:06:52] @ suchu joined channel #puppet
[2010/01/29 03:26:08] @ taihen joined channel #puppet
[2010/01/29 03:29:36] @ flohack joined channel #puppet
[2010/01/29 03:31:32] <flohack> Hi! I'd like to use variables in node names. puppet with '--parseonly' tells me: Could not parse for environment development: Invalid node name $cluster_node_1_fqdn at /etc/puppet/manifests/nodes.pp:76
[2010/01/29 03:34:22] <flohack> Am I doing something wrong?
[2010/01/29 03:35:30] <Cuchulain> last i checked
[2010/01/29 03:35:32] <Cuchulain> and this was a while ago
[2010/01/29 03:35:36] <Cuchulain> you couldn't do that :)
[2010/01/29 03:35:36] <ptman> try putting it in quotes?
[2010/01/29 03:35:52] @ ryan8403 joined channel #puppet
[2010/01/29 03:36:38] @ Quit: yarihm_: "Leaving"
[2010/01/29 03:37:24] <flohack> ptman: I also tried node "${cluster_node_1_fqdn}" and node "$cluster_node_1_fqdn", neither worked
[2010/01/29 03:37:54] <ptman> ok, then Cuchulain is probably correct
[2010/01/29 03:39:32] <flohack> :-(
[2010/01/29 03:40:03] @ danielbln joined channel #puppet
[2010/01/29 03:43:23] <flohack> thanks for your help!
[2010/01/29 03:43:58] @ giskard joined channel #puppet
[2010/01/29 03:50:37] <nico> masterzen: very interesting blog post
[2010/01/29 03:59:37] <masterzen> nico: thanks
[2010/01/29 03:59:45] @ Robbie_ joined channel #puppet
[2010/01/29 04:03:53] @ poison joined channel #puppet
[2010/01/29 04:04:00] <masterzen> nico: I have some plans to try to make puppet stream file content request instead of reading the whole request in memory...
[2010/01/29 04:04:15] <masterzen> nico: not sure I'll be able to fix this... but we'll see.
[2010/01/29 04:08:38] <nico> :)
[2010/01/29 04:08:52] * nico only distributes small files
[2010/01/29 04:09:05] <nico> 22421 puppet 15 0 67600 53m 2880 S 2.7 5.2 4:26.71 puppetmasterd
[2010/01/29 04:09:58] @ Quit: mvn071: Remote closed the connection
[2010/01/29 04:10:12] @ mvn071 joined channel #puppet
[2010/01/29 04:11:06] <nico> masterzen: each machine being a puppetmaster has 1Gb RAM here, large enough
[2010/01/29 04:11:47] <Volcane> masterzen: guess the file serving offloading works well for the case where environment has all its files, but if yhou have modulepath like path1:path2:path3 it would be hard :( nice solution though
[2010/01/29 04:13:48] @ tim|macbook joined channel #puppet
[2010/01/29 04:19:14] @ benlovell joined channel #puppet
[2010/01/29 04:19:15] @ MattyM joined channel #puppet
[2010/01/29 04:20:12] <masterzen> Volcane: you can automate the nginx/apache configuration based on fileserver.conf and puppet.conf. I initially planed to do this, but I don't really have a need for this so ended up with the simpler solution...
[2010/01/29 04:20:25] @ Quit: dim0: Connection reset by peer
[2010/01/29 04:20:37] <Volcane> well with a multi path modulepath the one file can be in multiple locations
[2010/01/29 04:20:54] <Volcane> dont think apache/nginx supports try-till-you-find-it for many dirs?
[2010/01/29 04:22:07] @ verwilst joined channel #puppet
[2010/01/29 04:22:41] <masterzen> Volcane: you can use nginx try_files with multiple paths, then if it ulitmately fails use the puppetmaster to serve the file.
[2010/01/29 04:22:53] <Volcane> oh thats kewl (dont know nginx at all)
[2010/01/29 04:22:55] <masterzen> Volcane: granted this is more complex
[2010/01/29 04:23:04] <masterzen> not sure appache supports something like this
[2010/01/29 04:23:12] @ fluxdude joined channel #puppet
[2010/01/29 04:23:32] <masterzen> Volcane: do you happen to have a large modulepath?
[2010/01/29 04:23:48] <Volcane> just production/modules:common/modules
[2010/01/29 04:23:54] <Volcane> so a file can be in either one
[2010/01/29 04:24:54] <masterzen> so I think a try_file $production/$uri $common/$uri @puppet; would do it fine, (provided the $production and $common variables contains the good path).
[2010/01/29 04:25:05] <masterzen> I'll definitely try this this week-end :-)
[2010/01/29 04:25:07] <Volcane> yeah thats pretty nice
[2010/01/29 04:25:48] <nico> looks like nginx owns apache again
[2010/01/29 04:25:53] <masterzen> as usual
[2010/01/29 04:26:32] <ohadlevy> masterzen: that would be cool, In some cases I have a long search path
[2010/01/29 04:27:23] <masterzen> nico: regarding your own master. offloading has an advantage if you have lots of clients requesting files, it frees your masters that can do other (more useful) things.
[2010/01/29 04:27:48] <masterzen> of course, it all depends on the number of changes on those files...
[2010/01/29 04:28:10] <masterzen> if your clients barely download files, offloading becomes just an exercise of style :-)
[2010/01/29 04:28:24] <ohadlevy> masterzen: then you could implement that each client requests all of the files in parallel :)
[2010/01/29 04:28:30] <nico> they just download files, most of the time
[2010/01/29 04:28:57] <ohadlevy> masterzen: but most of the time you just calculate md5sum (unless its a new install or a changed file)
[2010/01/29 04:29:09] @ Quit: danielbln: "Leaving."
[2010/01/29 04:29:10] <masterzen> ohadlevy: correct.
[2010/01/29 04:29:13] <nico> masterzen: my masters are pretty lazy, they just act as puppetmasters (dedicated VMs)
[2010/01/29 04:29:27] <masterzen> ohadlevy: I see an interest in you need to provision new hosts at the same time
[2010/01/29 04:29:32] <masterzen> *if
[2010/01/29 04:29:58] <ohadlevy> masterzen: I provision about 200 clients in 30 minutes without major problems... they spend most of the time in downloading packages, not config files :)
[2010/01/29 04:30:10] <masterzen> sure
[2010/01/29 04:31:16] <masterzen> and you have a fast network maybe. But if your clients are on a slow net to the master, and they have to download many small files, offloading is an advantage because you don't have tie a master to a given client
[2010/01/29 04:31:58] @ dim0 joined channel #puppet
[2010/01/29 04:34:03] <ohadlevy> masterzen: true :)
[2010/01/29 04:34:42] <masterzen> which gives more "puppetmaster time" to catalog generation
[2010/01/29 04:35:25] <ohadlevy> I wonder what is the load distribution of the master, e.g. how much % of the time is used for files vs compliations
[2010/01/29 04:35:32] @ Quit: bkohler: Read error: 113 (No route to host)
[2010/01/29 04:36:25] <masterzen> ohadlevy: if apache logs the time it took to "execute" a given request, you might be able to know from the access log
[2010/01/29 04:36:31] @ danielbln joined channel #puppet
[2010/01/29 04:36:45] <whack> it doesn't, but other webservers might
[2010/01/29 04:36:55] <whack> or, ther emight be a customlog format you can use that has it
[2010/01/29 04:37:17] <whack> http://httpd.apache.org/docs/2.0/mod/mod_log_config.html
[2010/01/29 04:38:54] <nico> ohadlevy: do you use puppet defined vars in the ruby you embed in your templates ?
[2010/01/29 04:41:51] @ devdas joined channel #puppet
[2010/01/29 04:43:23] @ cedric_b joined channel #puppet
[2010/01/29 04:56:20] @ thinkcad joined channel #puppet
[2010/01/29 04:58:21] <flohack> I just tried to use a variable in the definition of another variable like this:
[2010/01/29 04:58:22] <flohack> $domain = "test.com"
[2010/01/29 04:58:22] <flohack> $cluster_fqdn = "asterix.${domain}"
[2010/01/29 04:58:44] <flohack> and it failed with: Cannot reassign variable domain at /etc/puppet/manifests/nodes.pp:9
[2010/01/29 04:59:17] <flohack> I read the language tutorial and have not found anything regarding string concatenation. Can someone please explain?
[2010/01/29 04:59:35] <fluxdude> flohack: that happened to me yesterday... you can't reassign a variable
[2010/01/29 04:59:42] <fluxdude> I ended up using different variables
[2010/01/29 05:00:06] <fluxdude> why do you need to set the $domain ?
[2010/01/29 05:00:07] <flohack> I'm not trying to re-assign
[2010/01/29 05:00:29] <flohack> I just want the fqdn names of hosts to be composed of their hostname and the domain appended
[2010/01/29 05:00:38] <fluxdude> ok fair enough
[2010/01/29 05:00:50] <fluxdude> maybe you should remove the braces?
[2010/01/29 05:01:13] <fluxdude> I never use them in string concat so I don't know if that is valid.... although I guess it might be
[2010/01/29 05:01:13] <flohack> but how would puppet know where the variable name ends and the plain string (if any) starts?
[2010/01/29 05:01:35] <fluxdude> well you've got nothing after it so you could try it in this case...
[2010/01/29 05:01:41] <fluxdude> just to test
[2010/01/29 05:02:02] <fluxdude> are you sure you don't have two $domain = lines somewhere in your manifests, perhaps do a grep?
[2010/01/29 05:02:20] <fluxdude> i'd grep -R domain just to make sure...
[2010/01/29 05:02:47] @ gebi joined channel #puppet
[2010/01/29 05:03:29] @ maxagaz joined channel #puppet
[2010/01/29 05:03:45] <flohack> fluxdude: I tried without the braces
[2010/01/29 05:03:51] <flohack> didn't work
[2010/01/29 05:04:27] <flohack> no other #domain =, anywhere...
[2010/01/29 05:10:46] <Volcane> you cant re-assign variables
[2010/01/29 05:11:19] <flohack> Volcane: I found a ML reference, but the link does not work anymore: http://markmail.org/message/sn2w4kdt6jixp2j4#query:puppet string concatenation+page:1+mid:wcimp6rcgph2asm5+state:results
[2010/01/29 05:11:45] <flohack> I don't want to re-assign anything, I just want to compose a new variable from a string and another variable
[2010/01/29 05:11:58] <Volcane> pastie your code+error pls
[2010/01/29 05:12:01] <masterzen> flohack: $domain comes from a fact. It is already assigned a value
[2010/01/29 05:12:09] <masterzen> flohack: you can't reassign it
[2010/01/29 05:12:24] <Volcane> yes, if domain then what masterzen says
[2010/01/29 05:14:54] <flohack> masterzen: Ok, the error message is confusing, because it points to the line where I use $domain, not where I assign it.
[2010/01/29 05:17:07] <flohack> Works now! Thanks to all of you!
[2010/01/29 05:23:19] @ tyll joined channel #puppet
[2010/01/29 05:23:51] @ Quit: WALoeIII: Excess Flood
[2010/01/29 05:24:27] @ Uranellus joined channel #puppet
[2010/01/29 05:25:47] @ bkohler joined channel #puppet
[2010/01/29 05:42:19] @ omry_ joined channel #puppet
[2010/01/29 06:20:59] <jhp> hi everyone. What is the file format of the ca.pass file ?
[2010/01/29 06:21:10] <jhp> I need to create one for a selfmade certificate.
[2010/01/29 06:21:35] @ Quit: jcape: Connection timed out
[2010/01/29 06:21:46] <Volcane> just the password, no new line
[2010/01/29 06:22:34] @ eSpud joined channel #puppet
[2010/01/29 06:37:52] @ Quit: benlovell:
[2010/01/29 06:39:23] @ benlovell joined channel #puppet
[2010/01/29 06:41:02] @ Quit: maxagaz: "Ex-Chat"
[2010/01/29 06:54:41] <jhp> Volcane: Thanks.
[2010/01/29 06:54:49] <jhp> That works now.
[2010/01/29 06:55:04] <jhp> Now I have one little problem left. I get the following errors on the client:
[2010/01/29 06:55:05] <jhp> Jan 29 12:54:11 localhost puppetd[17228]: Certificate validation failed; consider using the certname configuration option
[2010/01/29 06:55:08] <jhp> Jan 29 12:54:11 localhost puppetd[17228]: Could not retrieve catalog: Certificates were not trusted: certificate verify failed
[2010/01/29 06:55:20] <jhp> It gets a signed cert from the puppetmaster
[2010/01/29 06:55:43] <jhp> I have the puppetmaster running behind a apache proxy.
[2010/01/29 07:00:13] <jhp> I have set it up using the following document: http://reductivelabs.com/trac/puppet/wiki/MultipleCertificateAuthorities
[2010/01/29 07:00:49] <monachus> jhp: i had this issue last week. make sure that the server puppet clients are configured to talk to is the fqdn for both initial connection and filebuckets
[2010/01/29 07:00:52] <jhp> And the test in the bottom of this files succeeds, except that I get an error 19 telling me that there are selfsigned certs in the chain.
[2010/01/29 07:01:28] <monachus> like if they connect to puppet.domain.com don't have source => puppet://puppet/some/file
[2010/01/29 07:01:48] <monachus> when i switched to fqdn for everything it went away
[2010/01/29 07:06:25] <jhp> Where do I configure this source ?
[2010/01/29 07:07:50] <jhp> I have hardly anything setup in the manifests at the moment.
[2010/01/29 07:08:03] <jhp> Don't even know for sure that the manifests are seen.
[2010/01/29 07:09:37] @ Quit: thinkcad: Client Quit
[2010/01/29 07:15:06] <jhp> Hmmm debug loggin indeed suggests that this is the place where it fails.
[2010/01/29 07:15:19] <jhp> But ... I have the following setup:
[2010/01/29 07:15:45] @ Quit: benlovell:
[2010/01/29 07:16:05] <jhp> The apache server is listening on the name puppet and puppet.domain. this is the same on both puppetmaster servers.
[2010/01/29 07:16:38] <monachus> it's what the clients connect to
[2010/01/29 07:16:47] <monachus> you can put server = puppet.domain.com in puppet.conf
[2010/01/29 07:16:50] <jhp> Both puppetmasters have their own CA and both these CA's are signed by the root CA but they don't have this same name
[2010/01/29 07:16:56] <monachus> and then anywhere you have puppet://puppet/ just use puppet:///
[2010/01/29 07:17:43] <jhp> Both these CA's have a different name. They have the name of the node they belong to.
[2010/01/29 07:18:04] <monachus> both CAs?
[2010/01/29 07:18:09] <monachus> what's the 2nd CA?
[2010/01/29 07:18:18] <monachus> oh - you're doing multiple CAs
[2010/01/29 07:18:22] <jhp> monachus: But I don't have puppet://puppet/ anywhere yet.
[2010/01/29 07:18:29] <jhp> Yes.
[2010/01/29 07:18:35] <monachus> fek - k. i can't help you - i don't run that structure
[2010/01/29 07:19:04] <monachus> do you need multiple CAs?
[2010/01/29 07:19:08] <jhp> I want a config where I can loose any of the 2 CA's without any problem.
[2010/01/29 07:19:23] <monachus> why not load balance multiple puppetmasters with the same configuration?
[2010/01/29 07:19:32] <monachus> that's what i do
[2010/01/29 07:20:04] <monachus> i have two hosts each running apache and balancing 2 puppetmasters on the backend, with the actual data on NFS share so it's the same no matter which puppetmaster you end up on
[2010/01/29 07:20:10] <Volcane> if u have diff CA's and they're not chained clients can only talk to the one that signed them
[2010/01/29 07:20:13] <jhp> That is an option too, but then I can't move one to a different location and drop it's CA when a problem arrises.
[2010/01/29 07:20:35] <jhp> The CA's are chained.
[2010/01/29 07:20:41] <monachus> true, if you need multiple locations then you'll need multiple puppetmasters and multiple CAs
[2010/01/29 07:20:45] <jhp> They are both beneed the same root ca
[2010/01/29 07:21:45] <jhp> It's not that I really need it at this moment, but I want to have it working so in case that I need it in the future, it's ready and I don't have to do difficult migration steps.
[2010/01/29 07:21:49] <Volcane> not sure then, never did the multi ca/chained ca thing, ohadlevy migth be your safest bet to ask
[2010/01/29 07:22:35] <jhp> I get this error at the moment:
[2010/01/29 07:22:37] <jhp> Jan 29 13:13:02 localhost puppetd[18066]: Calling puppetmaster.getconfig
[2010/01/29 07:22:37] <jhp> Jan 29 13:13:02 localhost puppetd[18066]: Certificate validation failed; consider using the certname configuration option
[2010/01/29 07:22:40] <jhp> Jan 29 13:13:02 localhost puppetd[18066]: Could not retrieve catalog: Certificates were not trusted: certificate verify failed
[2010/01/29 07:23:09] <jhp> And this is strange because everything is going to one server at the moment, the second isn't even life yet.
[2010/01/29 07:23:46] <Volcane> how do you access the server? with just 'puppet' or ome other name?
[2010/01/29 07:34:45] <jhp> Well, that might be one of my problems. My idea was to use puppet there, and then put the right A records in DNS.
[2010/01/29 07:35:08] <jhp> But it would be better if puppet would be able to take any out of an array of servers.
[2010/01/29 07:35:09] <Volcane> that should be ok, as long as the certs on the master are puppet or has a certdnsname of puppet
[2010/01/29 07:35:29] <Volcane> well, an array of servers would be a round robin dns? :P
[2010/01/29 07:36:14] <jhp> Could be, but not really. Round robbin DNS is not HA. A array of servers in the configfile could be HA because in that case the client could try any one of the array.
[2010/01/29 07:36:37] <Volcane> nods
[2010/01/29 07:37:12] <jhp> But is that possible, to create an array of puppet masters in the config file?
[2010/01/29 07:37:21] <Volcane> not afaik
[2010/01/29 07:37:25] <jhp> :-(
[2010/01/29 07:37:45] @ Mode +o jamesturnbull by ChanServ
[2010/01/29 07:37:54] @ jamesturnbull set topic "Puppet 0.25.4 released - http://bit.ly/9c5HMv | Log bugs and feature requests at http://tinyurl.com/46ryk7"
[2010/01/29 07:38:02] @ Mode -o jamesturnbull by ChanServ
[2010/01/29 07:39:13] <jhp> So you can basicly only use one entry in the config and you either have to use something like failover with keepalived or multiple A records but then you might run into the problem that the server is down and the clients get an address of a down server.
[2010/01/29 07:40:38] <jhp> In that case I have to make sure that all the CA certs of the different puppet masters have the same name inside.
[2010/01/29 07:40:44] <Volcane> yeah
[2010/01/29 07:40:53] <Volcane> or at least the same list of certdnsnames
[2010/01/29 07:41:18] <jhp> Indeed.
[2010/01/29 07:45:41] @ londo__ joined channel #puppet
[2010/01/29 07:46:18] @ Quit: londo_: Read error: 104 (Connection reset by peer)
[2010/01/29 07:56:30] @ Quit: poison: Remote closed the connection
[2010/01/29 07:56:48] @ poison joined channel #puppet
[2010/01/29 07:58:56] @ Quit: poison: Remote closed the connection
[2010/01/29 07:59:00] @ poison joined channel #puppet
[2010/01/29 08:05:10] @ Quit: gebi: Read error: 113 (No route to host)
[2010/01/29 08:06:57] @ Quit: eSpud: "Ex-Chat"
[2010/01/29 08:12:16] <ohadlevy> nico: what do you mean?
[2010/01/29 08:19:13] <jhp> monachus: In the configuration you describe, I would think that you get a problem when both puppetmasters are active and use the same tree. They could both write the serial file at the same time etc.
[2010/01/29 08:19:32] <jhp> Or are they active on the same physical host ?
[2010/01/29 08:19:56] <monachus> could both write what serial file?
[2010/01/29 08:20:03] <monachus> the CA?
[2010/01/29 08:20:08] <jhp> The serial file that is in the CA tree
[2010/01/29 08:20:14] <monachus> we don't autosign
[2010/01/29 08:20:26] <jhp> Ah, so you only sign using one CA ?
[2010/01/29 08:20:44] <jhp> That makes sence.
[2010/01/29 08:20:47] <monachus> it's still all the same tree, but puppetca --sign is issued manually
[2010/01/29 08:20:55] <monachus> so there's only one action in the CA at a time
[2010/01/29 08:21:11] <jhp> ok
[2010/01/29 08:21:13] <jhp> clear.
[2010/01/29 08:22:08] <jhp> In that case my chained CA's would work as long as all the Puppetmasters that are in one location use the same CA.
[2010/01/29 08:22:29] <ohadlevy> jhp: i have chained ca, and each sub ca signs the clients themselfs
[2010/01/29 08:23:04] <jhp> ohadlevy: Ok, that sounds great. I run into some problems though
[2010/01/29 08:23:05] @ goodieboy joined channel #puppet
[2010/01/29 08:23:31] <ohadlevy> it works quite well for us in the last two years
[2010/01/29 08:23:33] <goodieboy> could anyone give me a tip on installing ruby 1.8.7 for fedora core 12 via puppet?
[2010/01/29 08:23:59] <ohadlevy> goodieboy: that might be hard as ruby is required by puppet in order to work
[2010/01/29 08:24:20] <jhp> What is the certname in the cert of the CA's you use? Is it everywhere the name of that server, or is it everywhere one and the same name?
[2010/01/29 08:24:40] <goodieboy> ohadlevy: oh i see. so it's dependent on what puppet requires?
[2010/01/29 08:25:05] <ohadlevy> jhp: its always fqdn and puppet
[2010/01/29 08:25:47] <jhp> goodieboy: It's kind of a chicken and egg problem. You need ruby installed to have puppet running. So when you want to install ruby using puppet, you might have a problem
[2010/01/29 08:25:50] <ohadlevy> goodieboy: usually puppet just install packages, so if you have one, it should work, but in ruby case, i am not sure, as puppet is written in ruby (so you kinda need ruby in order to run puppet..)
[2010/01/29 08:26:37] @ jcape joined channel #puppet
[2010/01/29 08:26:55] <goodieboy> ahh is see the problem ok. have any of you installed enterprise ruby using puppet? that's another possibility i guess.
[2010/01/29 08:27:05] <jhp> ohadlevy: That sounds good, but how do I create a CA with 2 names in it?
[2010/01/29 08:27:07] <tmz> You would think that the fedora-12 box already has ruby (1.8.6) so updating it via package _should_ work.
[2010/01/29 08:27:31] @ Quit: poison: Remote closed the connection
[2010/01/29 08:28:35] <jhp> ohadlevy: Do I need subjectAltName ?
[2010/01/29 08:29:24] @ poison joined channel #puppet
[2010/01/29 08:33:31] <ohadlevy> jhp: ah.. I"ll have to look it up, :)
[2010/01/29 08:33:34] <ohadlevy> Its been a whikel
[2010/01/29 08:33:35] <ohadlevy> while
[2010/01/29 08:33:42] <ohadlevy> I did write a wiki page about it
[2010/01/29 08:34:09] <ohadlevy> and the setup should be quite straight forward, I reused the puppet ca generation, and then just applied some openssl magic on top of it
[2010/01/29 08:35:39] @ Quit: suchu: Remote closed the connection
[2010/01/29 08:37:36] @ Quit: PsychoSid: Read error: 104 (Connection reset by peer)
[2010/01/29 08:37:47] @ PsychoSid joined channel #puppet
[2010/01/29 08:39:09] @ Quit: flohack: Read error: 113 (No route to host)
[2010/01/29 08:39:30] @ flohack joined channel #puppet
[2010/01/29 08:40:10] @ PsychoSid1 joined channel #puppet
[2010/01/29 08:40:49] <robinbowes> Afternoon all
[2010/01/29 08:41:20] <robinbowes> Anyone got a pattern they use so they can remove stuff as well as install it with puppet?
[2010/01/29 08:42:02] <robinbowes> I've built up a nice set of classes, but am realising that I'll sometimes/often need to remove things as well as install them
[2010/01/29 08:42:24] <robinbowes> How do folk generally go about doing that?
[2010/01/29 08:42:26] <ohadlevy> robinbowes: you can create anti (or disable) classes
[2010/01/29 08:42:35] <robinbowes> Yes, I know that
[2010/01/29 08:42:43] <robinbowes> I know how to do that
[2010/01/29 08:43:22] @ zombied_ joined channel #puppet
[2010/01/29 08:43:52] <robinbowes> I'm wondering if it would generally be better to create something as defines and instantiate them with something like: app::queue_processor::cron::flush_queue{ensure => present}
[2010/01/29 08:44:00] <robinbowes> *some things
[2010/01/29 08:44:07] <ohadlevy> yeah sure
[2010/01/29 08:44:14] <ohadlevy> it depends on the usage scenario
[2010/01/29 08:44:17] <nico> ohadlevy: you told me yesterday that you did something similar to my last blog post. Did you use some puppet vars in the "ruby" part of your templates .
[2010/01/29 08:44:22] <nico> s/./?
[2010/01/29 08:44:36] <ohadlevy> nico: ah :) long latency
[2010/01/29 08:44:52] <robinbowes> ohadlevy: which is why I asked if there was a common pattern that might be used?
[2010/01/29 08:44:52] <ohadlevy> you mean something like <%= scope.something? %>?
[2010/01/29 08:45:11] <nico> ohadlevy: I'm over the ocean :)
[2010/01/29 08:45:50] <nico> ohadlevy: yes, I defined a var in my common module, but want to use it in a template of another module
[2010/01/29 08:46:02] <ohadlevy> nico: I meant that I wrote a custom puppet function, which queries foreman db, allowing you do to all kind of data collection
[2010/01/29 08:46:09] <nico> hoo
[2010/01/29 08:46:18] <nico> back to search then :)
[2010/01/29 08:47:04] <ohadlevy> you can access vars of other classes in a template
[2010/01/29 08:47:14] <ohadlevy> there is a small bug about it.. let me look up the ticket
[2010/01/29 08:48:25] <nico> thx
[2010/01/29 08:49:03] <ohadlevy> nico: ah no, i take it back, it was refering to templates vars and defines - #2309
[2010/01/29 08:49:04] <gepetto> ohadlevy: nico: #2309 is http://projects.reductivelabs.com/issues/show/2309 "Puppet - Bug #2309: Defined resources are not evaluated immediately which can cause ordering problems - ReductiveLabs.com"
[2010/01/29 08:50:37] <nico> looks like I hit it... I have a var defined in the common module => my test class does not see it, but the dns class sees it fine..
[2010/01/29 08:52:11] <nico> adding a require => Class["common"] does not help
[2010/01/29 08:52:46] <ohadlevy> nico: if its the same bug, than it wont help, as its the internal order of the parser rather then the manifest delivered to the client
[2010/01/29 08:52:59] <nico> hmpf
[2010/01/29 08:54:21] @ Quit: mvn071: "Leaving"
[2010/01/29 08:57:00] @ Quit: PsychoSid: Read error: 110 (Connection timed out)
[2010/01/29 08:59:09] <nico> haaaaaaaaaaa
[2010/01/29 08:59:27] <nico> is "mysqldb" a reserved variable in puppet ?
[2010/01/29 08:59:59] <nico> because renamming the var to "mysqldatabase" make it work fine
[2010/01/29 09:00:06] <nico> makes*
[2010/01/29 09:05:24] @ Bass10 joined channel #puppet
[2010/01/29 09:08:39] @ GGD joined channel #puppet
[2010/01/29 09:14:39] @ themurph joined channel #puppet
[2010/01/29 09:15:14] @ notbrien joined channel #puppet
[2010/01/29 09:16:29] @ lucky__ joined channel #puppet
[2010/01/29 09:21:23] <ohadlevy> nico: what are you trying to do?
[2010/01/29 09:22:12] <nico> connect to a database inside a template :)
[2010/01/29 09:22:38] <ohadlevy> and pull which kind of data?
[2010/01/29 09:22:49] <ohadlevy> from storeconfigs?
[2010/01/29 09:23:05] <nico> nope, from my cmdb
[2010/01/29 09:23:38] @ malraid joined channel #puppet
[2010/01/29 09:23:40] <ohadlevy> ah ok, what do you use for cmdb?
[2010/01/29 09:23:46] @ Quit: adorephyte: Client Quit
[2010/01/29 09:23:58] <nico> mysql, home made database schema
[2010/01/29 09:24:02] @ Quit: PsychoSid1: Read error: 104 (Connection reset by peer)
[2010/01/29 09:24:14] @ PsychoSid joined channel #puppet
[2010/01/29 09:24:55] <nico> ohadlevy: same thing that in http://www.rottenbytes.info/?p=243, but with vars for connection information insted of "fixed" data
[2010/01/29 09:25:29] @ xcrracer joined channel #puppet
[2010/01/29 09:25:38] @ xcrracer left channel #puppet ()
[2010/01/29 09:28:01] @ xcrracer joined channel #puppet
[2010/01/29 09:28:59] <ohadlevy> nico: and what do you store extra in your cmdb? (I'm asking because I'm looking to know I can make foreman contain any additional useful data)
[2010/01/29 09:29:27] @ gilesw joined channel #puppet
[2010/01/29 09:29:29] <gilesw> heya puppetiers
[2010/01/29 09:29:44] <gilesw> if I set a $var = false in a puppet manifest
[2010/01/29 09:30:00] <gilesw> then use <% if var -%> in a erb template
[2010/01/29 09:30:08] <gilesw> will var evaluate true?
[2010/01/29 09:30:34] <monachus> gilesw: depends
[2010/01/29 09:30:46] <monachus> if it's 'undef' in puppet it will still evaluate to true
[2010/01/29 09:30:58] <monachus> and if it doesn't exist, you'll get an error in erb
[2010/01/29 09:31:04] <monachus> we do one of two things:
[2010/01/29 09:31:19] <monachus> <% if defined(var) or var != '' -%>
[2010/01/29 09:31:20] <monachus> or
[2010/01/29 09:31:24] <monachus> <% if @var -%>
[2010/01/29 09:31:41] <monachus> the latter seems to be easier and is what i'm doing these days
[2010/01/29 09:31:56] <monachus> sorry - the first should be and not or
[2010/01/29 09:32:01] <nico> ohadlevy: dns (all dns infos is stored there), nagios configs, munin informations, IP phones config. Many of these datas interact together (if a host becomes unavailable in nagios, munin config is updated to not waste time polling this one)
[2010/01/29 09:32:20] <gilesw> k so in the example I gave
[2010/01/29 09:32:49] <ohadlevy> nico: ah, interesting, i do similar things based on puppet reports (e.g. active vs out_of_sync etc)
[2010/01/29 09:33:16] <gilesw> <% if @var -%> when $var is defined and = false the if statement won't be performed
[2010/01/29 09:33:46] <monachus> yeah
[2010/01/29 09:34:13] @ incommon_ike joined channel #puppet
[2010/01/29 09:34:32] @ Quit: scooby2: Read error: 104 (Connection reset by peer)
[2010/01/29 09:35:15] @ pheezy joined channel #puppet
[2010/01/29 09:35:17] @ scooby2 joined channel #puppet
[2010/01/29 09:35:32] <gilesw> tx
[2010/01/29 09:37:45] @ ricdanger joined channel #puppet
[2010/01/29 09:37:47] <ricdanger> hi there
[2010/01/29 09:38:03] <ricdanger> can anyone explain me the "onetime" parameter?
[2010/01/29 09:40:56] <Whoopalicious> It'll run once?
[2010/01/29 09:41:01] <Whoopalicious> Won't background/run as a daemon
[2010/01/29 09:41:05] <Whoopalicious> it'll just run then quit
[2010/01/29 09:41:43] <Whoopalicious> useful for test runs or running cron
[2010/01/29 09:42:17] @ Quit: xcrracer: Remote closed the connection
[2010/01/29 09:42:36] @ xcrracer joined channel #puppet
[2010/01/29 09:43:20] @ Quit: xcrracer: Client Quit
[2010/01/29 09:43:32] @ xcrracer joined channel #puppet
[2010/01/29 09:43:59] @ Quit: rmiller4pi8: "Leaving."
[2010/01/29 09:44:18] <gilesw> monachus: are there any docs on what @ does in a erb template?
[2010/01/29 09:44:24] @ Quit: xcrracer: Remote closed the connection
[2010/01/29 09:44:42] @ xcrracer joined channel #puppet
[2010/01/29 09:44:48] <monachus> gilesw: hmm...it's a ruby thing. i came across it in a trac ticket for puppet. let me see if i can find it.
[2010/01/29 09:45:21] @ Quit: xcrracer: Remote closed the connection
[2010/01/29 09:45:24] <Volcane> its kind of a global variable thing, you shouldnt need to use it mostly
[2010/01/29 09:45:35] @ xcrracer joined channel #puppet
[2010/01/29 09:46:08] @ Quit: xcrracer: Client Quit
[2010/01/29 09:46:17] @ xcrracer joined channel #puppet
[2010/01/29 09:47:16] @ Quit: astinus: "splat"
[2010/01/29 09:47:42] @ astinus joined channel #puppet
[2010/01/29 09:48:07] <nico> damn, I have to set my extlookup statements in my particular class and not in the common class... I don't like this
[2010/01/29 09:48:45] <Volcane> why do you have to? cant you access vars in the other classes?
[2010/01/29 09:49:21] <nico> nope, just discussed about it with ohadlevy. looks like #2309
[2010/01/29 09:49:21] <gepetto> nico: nope: #2309 is http://projects.reductivelabs.com/issues/show/2309 "Puppet - Bug #2309: Defined resources are not evaluated immediately which can cause ordering problems - ReductiveLabs.com"
[2010/01/29 09:49:28] @ Quit: SyTonnerre: Remote closed the connection
[2010/01/29 09:50:06] <Volcane> ah
[2010/01/29 09:50:26] <Volcane> i quite like doing them in the classes where they are needed, you know exactly what vars affect a class when you look at it etc
[2010/01/29 09:50:27] <monachus> gilesw: i picked it up from #2826
[2010/01/29 09:50:28] <gepetto> monachus: gilesw: #2826 is http://projects.reductivelabs.com/issues/show/2826 "Puppet - Bug #2826: undef variables should not be set as instance variables in templates - ReductiveLabs.com"
[2010/01/29 09:50:40] <nico> Volcane: makes sense
[2010/01/29 09:50:55] <nico> and it does here indeed
[2010/01/29 09:51:01] <nico> I won't worry anymore
[2010/01/29 09:51:04] <Volcane> like extlookup is in effect one massive global variable that u can just reference anywhere as many times as you need it
[2010/01/29 09:51:11] <Volcane> dont think you win much by trying to do it in one palce only
[2010/01/29 09:51:31] <nico> a kind of habit I think :)
[2010/01/29 09:51:43] <Volcane> the difference is you could affect how extlookup behaves in a class
[2010/01/29 09:51:54] <Volcane> by setting variables that is used in the search order
[2010/01/29 09:52:22] <ohadlevy> volcane: the search order in extlookup is dynamic per query or fixed globally?
[2010/01/29 09:52:47] <Volcane> the order is set in site.pp but each time you run extlookup it grabs the vars from local scope
[2010/01/29 09:53:00] <Volcane> and you can prepend to the search order too for individual calls to extlookup
[2010/01/29 09:53:37] <Volcane> anyway, as usually just cos you can do weird funky stuff doesnt mean you should, I dont tend to fiddle with it in that way
[2010/01/29 09:53:43] <Volcane> i do sometime prepend to the search list though
[2010/01/29 09:53:46] <ohadlevy> which means, if my default order is fqdn,domain, default, for one query you can do time_of_day,fqdn,domain,default?
[2010/01/29 09:53:54] <Volcane> yes
[2010/01/29 09:54:19] <ohadlevy> thanks, should I write an extlookup for foreman? :)
[2010/01/29 09:54:41] <ohadlevy> its sitting there in the edge branch waiting lonely :)
[2010/01/29 09:54:45] <Volcane> :) things seems to be going a bit slow with that on my side, i think julian is still writing tests
[2010/01/29 09:54:51] <gilesw> monachus: my variable is false
[2010/01/29 09:55:02] <gilesw> is that the same as undef?
[2010/01/29 09:55:04] <Volcane> i am about ready to just code it and let him write tests for my new code in the next few months :P
[2010/01/29 09:55:05] <monachus> no
[2010/01/29 09:55:18] <gilesw> I want false to evaluate to boolean false
[2010/01/29 09:55:21] <goodieboy> ok so, i've got a class that installs some stuff via execs. i have another exec that can't run until after the other execs. how do i sync those execs?
[2010/01/29 09:55:22] <monachus> it will
[2010/01/29 09:55:39] <gilesw> doesn't seem to have worked
[2010/01/29 09:55:45] <monachus> if your variable is false, then just do "<% if !var -%>
[2010/01/29 09:55:45] <gilesw> i'm adding some more debug
[2010/01/29 09:55:47] <ohadlevy> I guess i can just add it to the foreman lib, as it would be another query method like the regular query interface.
[2010/01/29 09:55:55] @ SyTonnerre joined channel #puppet
[2010/01/29 09:56:10] <ohadlevy> i wish to use the same lib for scripts and puppet funtctions
[2010/01/29 09:56:11] <gilesw> it's either false or true
[2010/01/29 09:56:23] <gilesw> I don't want to add backwards logic
[2010/01/29 09:56:33] <monachus> i thought your question was only about the conditions under which var evaluates to true in ruby (which is more "defined and has a value")
[2010/01/29 09:56:36] <Volcane> ohadlevy: I'd still need to use your query interface - i might just write this up myself i am getting pretty keen to want it too
[2010/01/29 09:56:49] <gilesw> I just want setting to false to actually mean that the if statement in the erb doesn't run
[2010/01/29 09:57:05] <ohadlevy> volcane: by query you mean extlookup query or hosts query?
[2010/01/29 09:57:16] <Volcane> ohadlevy: extlookup talking to your new query interface
[2010/01/29 09:57:47] <ohadlevy> volcane: ok, so I guess I can add it to my new foreman release.. did you play with it already?
[2010/01/29 09:58:20] <Volcane> i had a very quick look but not thorougly, i really was hoping this writing tests excersize would be done by now but alas it seems to need sentiance
[2010/01/29 09:58:56] <Volcane> let me see how my time looks this weekend
[2010/01/29 09:59:11] @ benlovell joined channel #puppet
[2010/01/29 09:59:12] <ohadlevy> it would be great if you had a look, if you confirm its ok, I'll merge it to the stable tree
[2010/01/29 09:59:15] <monachus> gilesw: if you're running something based on a variable being false, you either have to 'if var == false' or 'if !var' - the former will check if var actually equals false, and the latter will check if var is something other than false or nil
[2010/01/29 09:59:18] <Volcane> ok
[2010/01/29 09:59:24] @ bobbyz joined channel #puppet
[2010/01/29 09:59:26] <monachus> gilesw: which may not be true
[2010/01/29 09:59:32] <Volcane> ohadlevy: will try this weekend
[2010/01/29 09:59:47] <ohadlevy> volcane: ok - remember its the edge branch
[2010/01/29 10:00:02] <gilesw> the var is always defined
[2010/01/29 10:00:15] <ohadlevy> and the url to query is in the commit message
[2010/01/29 10:00:27] <monachus> then test for its value <% if var == false -%>
[2010/01/29 10:00:39] <Volcane> yeah saw that, u mailed me too
[2010/01/29 10:00:47] <Volcane> ohadlevy: does the mac address have to be mandatory? :P
[2010/01/29 10:00:47] <monachus> (or if var != true ) :)
[2010/01/29 10:01:02] <gilesw> var == 'true'
[2010/01/29 10:01:15] <ohadlevy> volcane: no - http://theforeman.org/wiki/foreman/FAQ#I-dont-want-to-use-Foreman-for-unattended-installations-can-I-disable-it
[2010/01/29 10:01:31] <gilesw> so all vars passed down to the erb are just ruby string objects
[2010/01/29 10:01:48] <Volcane> oh nice, though i recall someone here moaning he couldnt get that to work :)
[2010/01/29 10:02:15] <monachus> no, true and false get converted to ruby true and false
[2010/01/29 10:02:23] <monachus> you're not testing for "false" the string but false the boolean
[2010/01/29 10:02:32] <monachus> everything else is a string (including numbers)
[2010/01/29 10:03:02] @ Quit: Ramonster: Client Quit
[2010/01/29 10:03:38] <ohadlevy> volcane: while you are at it, have a look on the hosts graph - let me know if they are useful :)
[2010/01/29 10:03:51] <Volcane> i think i saw screenshots, did look nice
[2010/01/29 10:04:13] <ohadlevy> no, i didnt upload the screenshots yet - its aim to replace the rrdgraphs
[2010/01/29 10:04:40] * ohadlevy have a problem with screenshots :)
[2010/01/29 10:04:50] @ dim0_ joined channel #puppet
[2010/01/29 10:05:38] <ezekiel> emotionally? or technologically?
[2010/01/29 10:06:07] <ohadlevy> I'm challenged by screenshots, much easier to write the code somehoe ;)
[2010/01/29 10:07:16] @ Quit: zombied_: Client Quit
[2010/01/29 10:09:12] <Disconnect> anyone ever get puppet to create a swap entry?
[2010/01/29 10:09:18] @ Quit: benlovell:
[2010/01/29 10:09:56] @ bug joined channel #puppet
[2010/01/29 10:11:05] @ rmiller4pi8 joined channel #puppet
[2010/01/29 10:11:30] @ Quit: rmiller4pi8: Client Quit
[2010/01/29 10:12:03] <ohadlevy> disconnect: you mean file based swap? or repartition?
[2010/01/29 10:12:13] <Disconnect> just the fstab entry.
[2010/01/29 10:12:34] <Disconnect> tried hacking up a mount entry but it got very upset.
[2010/01/29 10:12:45] <Disconnect> its not critical, i can do it in capistrano as part of the deploy. but it'd be nice if i didn't have to :)
[2010/01/29 10:12:52] @ Quit: lucky__: Client Quit
[2010/01/29 10:13:04] <ohadlevy> did you try using ralsh to get the right values?
[2010/01/29 10:13:06] @ Quit: tecto:
[2010/01/29 10:14:22] <ohadlevy> disconnect: try ralsh mount
[2010/01/29 10:17:14] @ rmiller4pi8 joined channel #puppet
[2010/01/29 10:21:41] @ Quit: dim0: Read error: 113 (No route to host)
[2010/01/29 10:22:36] @ xcrracer_ joined channel #puppet
[2010/01/29 10:23:35] <gilesw> monachus, yes you're quite right, in the end it turned out to be a typo someone had made
[2010/01/29 10:23:41] <gilesw> enviroment
[2010/01/29 10:23:56] <gilesw> so the @ symbol just covers you if someone hasn't set the variable
[2010/01/29 10:25:27] <monachus> gilesw: nice
[2010/01/29 10:25:59] @ Quit: smooge: "-ENOBRAIN"
[2010/01/29 10:29:08] @ Quit: xcrracer_:
[2010/01/29 10:30:20] @ xcrracer_ joined channel #puppet
[2010/01/29 10:30:47] @ dim0 joined channel #puppet
[2010/01/29 10:31:15] @ nigelk joined channel #puppet
[2010/01/29 10:33:36] <gilesw> our manifests are littered with tests to see if a variable has been set
[2010/01/29 10:33:45] <gilesw> then using another one for the actual erb
[2010/01/29 10:33:49] <gilesw> is pretty nasty
[2010/01/29 10:34:02] @ PsychoSid1 joined channel #puppet
[2010/01/29 10:34:32] <Volcane> yeah i dont like it much either :(
[2010/01/29 10:34:39] <gilesw> I suppose one solution is to use defines
[2010/01/29 10:34:40] <Volcane> that pattern
[2010/01/29 10:34:58] <Volcane> extlookup makes it a bit easier that u can set defaults if undefined - still not wicked
[2010/01/29 10:37:44] @ dim0__ joined channel #puppet
[2010/01/29 10:38:27] @ Quit: dim0_: Read error: 113 (No route to host)
[2010/01/29 10:40:54] @ erm_ joined channel #puppet
[2010/01/29 10:43:03] <ashp> So, these pre/post transaction things seem like a really specific feature, what are people here using them for?
[2010/01/29 10:43:27] * Volcane had hoped we were getting something to hook resources on not just for running scripts :(
[2010/01/29 10:44:13] <Volcane> its something to do with ubuntu's etckeeper
[2010/01/29 10:45:03] <Volcane> i guess puppet tells it when it should commit new etc stuff into its repository
[2010/01/29 10:45:51] @ Quit: omry_: Remote closed the connection
[2010/01/29 10:45:53] <robinbowes> Is there any way to access external node classifications from puppet manifests?
[2010/01/29 10:46:20] @ Quit: MattyM: Client Quit
[2010/01/29 10:46:35] @ MattyM joined channel #puppet
[2010/01/29 10:46:51] <Volcane> what info would you want to access?
[2010/01/29 10:47:03] <Volcane> external node tools set class lists and variables, u can already see the variables
[2010/01/29 10:47:17] <Volcane> and classes suffer from the nasty ordering horribleness
[2010/01/29 10:47:32] @ Quit: MattyM: Client Quit
[2010/01/29 10:47:49] <robinbowes> What variables do they set?
[2010/01/29 10:47:54] @ MattyM joined channel #puppet
[2010/01/29 10:48:00] <Volcane> any that u choose to set in your classifier
[2010/01/29 10:48:34] @ Quit: dim0: Read error: 60 (Operation timed out)
[2010/01/29 10:48:38] <robinbowes> Really?
[2010/01/29 10:48:46] @ sharms joined channel #puppet
[2010/01/29 10:48:57] <Volcane> http://www.reductivelabs.com/trac/puppet/wiki/ExternalNodes
[2010/01/29 10:49:02] <Volcane> look at parameters:
[2010/01/29 10:49:05] <Volcane> those are variables
[2010/01/29 10:49:13] <sharms> I am having trouble getting puppet to work with OpenSuSe / Sles 11 with Zypper. Does anyone have this working?
[2010/01/29 10:49:13] @ Quit: nigelk:
[2010/01/29 10:49:15] @ Quit: Uranellus: "Leaving."
[2010/01/29 10:50:47] <huggie> I didn't look yet but it sounded like you'd be able to do "Can I take this server out of the loadbalancer? Yes? Ok, I have done. Return ok other not" in a pre one and then have puppet run or not run based on that. (and vice-versa for putting it back in)
[2010/01/29 10:51:22] @ Quit: MattyM: Client Quit
[2010/01/29 10:51:30] <Volcane> yup that sounds possible, if you wanted to do it every 30 minutes or whatever
[2010/01/29 10:51:51] @ GGD_ joined channel #puppet
[2010/01/29 10:52:39] @ Quit: bobbyz: Read error: 110 (Connection timed out)
[2010/01/29 10:55:47] <robinbowes> I'm getting this sort of output from my classifier: http://www.pastie.org/800514
[2010/01/29 10:56:19] <robinbowes> That doesn't appear to be the same as the example on the ExternalNodes page you pointed me at
[2010/01/29 10:56:20] @ Quit: PsychoSid: Read error: 110 (Connection timed out)
[2010/01/29 10:56:32] <Volcane> yeah, i think there are many ways to skin the cat etc
[2010/01/29 10:56:40] <Volcane> but so do you have ksdevice set?
[2010/01/29 10:57:04] @ stevenjenkins joined channel #puppet
[2010/01/29 10:57:29] <robinbowes> No, that's why I suspect it may not be right
[2010/01/29 10:57:44] <Volcane> lame cobblerfail
[2010/01/29 10:57:52] * robinbowes nods
[2010/01/29 10:58:03] <Volcane> guess they're too hardcore for docs
[2010/01/29 10:58:11] <huggie> Volcane: Hmm, good point. Probably need something else to trigger it. At the moment we have a script that does the in/out of monitoring/LB, turns on that node in the PNC and then calls puppetrun against the server.
[2010/01/29 10:58:50] @ Quit: dim0__: Remote closed the connection
[2010/01/29 10:58:57] <Volcane> huggie: nods, i dont tend to deploy apps with puppet. but yeah the pre/post stuff brings a lot of options but what I really want to do it make any resources run first/last
[2010/01/29 10:59:12] @ dim0 joined channel #puppet
[2010/01/29 10:59:20] @ Quit: PsychoSid1: Client Quit
[2010/01/29 10:59:53] <ohadlevy> robinbowes: thats actually a valid yaml input
[2010/01/29 11:00:07] <robinbowes> I was hoping you'd pop up ;)
[2010/01/29 11:00:27] <ohadlevy> I'm on the way to pop up on my bed ;)
[2010/01/29 11:00:37] <robinbowes> Yes, I was rather surprised
[2010/01/29 11:00:57] @ tuf joined channel #puppet
[2010/01/29 11:01:37] <Volcane> yeah it should work
[2010/01/29 11:02:08] <ohadlevy> but cobbler is very limited in its external nodes support
[2010/01/29 11:02:18] <robinbowes> Hang on... what does "work" mean? In a manifest? Or with facter too?
[2010/01/29 11:02:30] <Volcane> facter wont see them
[2010/01/29 11:02:34] <robinbowes> Ah
[2010/01/29 11:02:37] <Volcane> but in your manifests you'll have vars
[2010/01/29 11:03:25] <robinbowes> Hmm, it was actually the classes I wanted to access
[2010/01/29 11:03:57] @ Quit: tim|macbook:
[2010/01/29 11:04:29] <gilesw> monachus: if your erb has something like <% if var == 'wibble' %> and you want it not to bork if var hasn't been set, what do you use?
[2010/01/29 11:04:49] <robinbowes> Nothing
[2010/01/29 11:04:50] <gilesw> if @var == 'wibble'
[2010/01/29 11:04:58] <robinbowes> Should just barf anyway, doesn't it?
[2010/01/29 11:05:11] <robinbowes> Ahhh....
[2010/01/29 11:05:16] * robinbowes notices the negation
[2010/01/29 11:05:18] <monachus> gilesw: has_variable
[2010/01/29 11:05:35] <monachus> <% if has_variable('var') and var == 'wibble' -%>
[2010/01/29 11:05:47] <gilesw> ah k
[2010/01/29 11:06:07] <gilesw> this is some puppet specific method?
[2010/01/29 11:06:10] <goodieboy> i am running an exec, but need to make sure it runs after i'm calling a function (define) inside of another class. How do i reference that function call with require?
[2010/01/29 11:06:17] <monachus> earlier i was saying use defined() and that was a mistake. i meant has_variable.
[2010/01/29 11:06:26] <monachus> my memory == busted
[2010/01/29 11:07:05] <robinbowes> goodieboy: Your::Define['name']
[2010/01/29 11:07:20] <goodieboy> robinbowes: excellent thanks!
[2010/01/29 11:07:22] <gilesw> heh no worries
[2010/01/29 11:07:33] <robinbowes> Anyway, given an extnode classification that returns:
[2010/01/29 11:07:33] <robinbowes> classes: ['profile::base', 'profile::partition', 'profile::partition::master']
[2010/01/29 11:07:59] <robinbowes> I wanted to check for those classes being present on the node
[2010/01/29 11:08:46] <robinbowes> Is that do-able somehow?
[2010/01/29 11:08:46] <Volcane> well you can do that iwth if defined(Class["foo"])
[2010/01/29 11:08:51] <Volcane> but its order dependant so mostly fail
[2010/01/29 11:08:58] @ Quit: GGD: Read error: 110 (Connection timed out)
[2010/01/29 11:09:05] <robinbowes> Yes, I know that.
[2010/01/29 11:09:57] <robinbowes> Bummer
[2010/01/29 11:10:50] @ alfism joined channel #puppet
[2010/01/29 11:11:07] <robinbowes> It would be nice if puppet set variables matching the classes defined in the extnode definition
[2010/01/29 11:11:11] <huggie> Volcane: Ah, yeah. We do that for yum repos I think by wrapping the classes in other thigns and (ab)using before.
[2010/01/29 11:11:37] <ohadlevy> robinbowes: I think you can use tags for that
[2010/01/29 11:11:39] <Volcane> huggie: yeah same
[2010/01/29 11:11:44] <ohadlevy> e.g. that every class is also a tag
[2010/01/29 11:11:52] <robinbowes> Ooooo
[2010/01/29 11:11:53] <ohadlevy> so you can do in a template:
[2010/01/29 11:12:00] * robinbowes goes looking for tags...
[2010/01/29 11:12:12] @ Quit: lutter: "Leaving."
[2010/01/29 11:12:27] <ohadlevy> <%= tags.join("\n") %>
[2010/01/29 11:12:42] <robinbowes> So, $tags is an array?
[2010/01/29 11:12:56] <ohadlevy> in a template yes
[2010/01/29 11:13:07] <ohadlevy> if i remember correctly
[2010/01/29 11:13:08] <robinbowes> How about in a manifest?
[2010/01/29 11:13:17] <ohadlevy> if tagged("xyz")
[2010/01/29 11:13:47] <ohadlevy> volcane: there should not be ordering issues with external nodes classes, as they are defined prior to any manifest processing, the ordering issue should come up with classes that include other classes
[2010/01/29 11:14:12] <robinbowes> "should"
[2010/01/29 11:14:47] <ohadlevy> robinbowes: did you try it?
[2010/01/29 11:14:47] <Volcane> assuming u only want to nkow about the ones listed in the ext classifier yes and not ones they also include
[2010/01/29 11:14:53] <robinbowes> No
[2010/01/29 11:14:54] <ohadlevy> yeah
[2010/01/29 11:15:20] <ohadlevy> ok - time to call it a day, gnight :)
[2010/01/29 11:15:22] @ Quit: fluxdude: Read error: 104 (Connection reset by peer)
[2010/01/29 11:15:40] <robinbowes> OK, so defined(Class['class::defined::by::extnode::classifier']) should work
[2010/01/29 11:16:33] @ benlovell joined channel #puppet
[2010/01/29 11:16:36] @ fluxdude joined channel #puppet
[2010/01/29 11:16:55] @ Quit: fluxdude: Remote closed the connection
[2010/01/29 11:17:09] @ fluxdude joined channel #puppet
[2010/01/29 11:17:26] @ Quit: kolla: Remote closed the connection
[2010/01/29 11:18:07] @ Quit: fluxdude: Client Quit
[2010/01/29 11:18:21] @ fluxdude joined channel #puppet
[2010/01/29 11:18:33] @ bobbyz joined channel #puppet
[2010/01/29 11:19:05] @ Quit: fluxdude: Client Quit
[2010/01/29 11:19:18] @ fluxdude joined channel #puppet
[2010/01/29 11:25:19] @ zombied_ joined channel #puppet
[2010/01/29 11:25:28] <robinbowes> Most excellent. That works nicely
[2010/01/29 11:26:02] <robinbowes> $replication = defined(Class['profile::partition::slave']) ? { false => 0, true => 1, }
[2010/01/29 11:27:03] <robinbowes> Volcane: did you see my question about a generic pattern for adding/removing resources?
[2010/01/29 11:29:39] <Volcane> nope
[2010/01/29 11:29:53] @ nigelk joined channel #puppet
[2010/01/29 11:30:09] <robinbowes> Well...
[2010/01/29 11:30:29] <robinbowes> I've been merrily creating classes to install stuff
[2010/01/29 11:30:43] <robinbowes> But, not made any provision to uninstall
[2010/01/29 11:31:16] <robinbowes> I wonder, is there a generic pattern I might use in a module to implement this
[2010/01/29 11:31:39] <Volcane> i dont think so, and dont think its a good idea cos mostly you cant uninstall 100%
[2010/01/29 11:31:43] <Volcane> say you install rpm foo
[2010/01/29 11:31:48] <Volcane> package{"foo": ..... }
[2010/01/29 11:31:56] <Volcane> fine, so uninstall is ensure => absent right?
[2010/01/29 11:32:04] <robinbowes> Nope
[2010/01/29 11:32:08] <robinbowes> I get that point
[2010/01/29 11:32:22] <robinbowes> I was thinking about things like cronjobs, files, etc.
[2010/01/29 11:32:41] <robinbowes> Take crons...
[2010/01/29 11:32:58] <ashp> sadly your best bet to 'uninstall' things is to format and run puppet again without the module :)
[2010/01/29 11:33:09] <ashp> otherwise just go through and set everything to ensure => absent for a day
[2010/01/29 11:33:26] <robinbowes> I had one cron job per class: app::wibble::cron::foo, app::wibble::cron::bar
[2010/01/29 11:33:51] <Volcane> robinbowes: well what I do with a few type of things is defines to build them and the define gets a state from extlookup
[2010/01/29 11:33:56] <goodieboy> robinbowes: my class is called "svn", my define is called "workdir". i'm using this with no success: require => svn::workdir["checkout"]
[2010/01/29 11:33:59] <Volcane> robinbowes: so my::pkg{"foo": }
[2010/01/29 11:34:14] <Volcane> robinbowes: that extlookups pkg_foo for the ensure status, it defaults to "present"
[2010/01/29 11:34:27] <robinbowes> What I've done is to have just one cron class: app::wibble::cron which contains a single define app::wibble::cron::job
[2010/01/29 11:34:51] <robinbowes> define app::wibble::cron::job ( ensure => present ) { ... }
[2010/01/29 11:35:01] @ Quit: nwp: Read error: 104 (Connection reset by peer)
[2010/01/29 11:35:02] <Volcane> robinbowes: so this morning for example when rolling out new puppet - i just extlookup controlled the package version and did it country by country
[2010/01/29 11:35:02] <robinbowes> And it contains a selector on $name
[2010/01/29 11:35:27] <robinbowes> Yes, I have a similar arrangement
[2010/01/29 11:35:40] <robinbowes> I was just contemplating rolling out 0.25.4
[2010/01/29 11:35:45] @ brothers joined channel #puppet
[2010/01/29 11:36:08] <robinbowes> Svn::Workdir["checkout"]
[2010/01/29 11:36:11] <robinbowes> goodieboy:
[2010/01/29 11:36:28] <robinbowes> Capitalise the initial letters
[2010/01/29 11:36:42] <robinbowes> OK, so it looks like I'm on the right track
[2010/01/29 11:36:52] <robinbowes> Must blog this
[2010/01/29 11:38:15] @ Quit: kaptk2: Excess Flood
[2010/01/29 11:39:14] @ kaptk2 joined channel #puppet
[2010/01/29 11:40:33] <goodieboy> robinbowes: thanks again!
[2010/01/29 11:42:48] @ Quit: danielbln: "Leaving."
[2010/01/29 11:44:50] @ allsystemsarego joined channel #puppet
[2010/01/29 11:45:21] @ Quit: benlovell:
[2010/01/29 11:53:15] @ Quit: flohack: Read error: 113 (No route to host)
[2010/01/29 11:53:38] @ Quit: incommon_ike: Excess Flood
[2010/01/29 11:53:39] @ Quit: Robbie_: Read error: 113 (No route to host)
[2010/01/29 11:53:50] @ Robbie joined channel #puppet
[2010/01/29 11:54:19] @ Robbie is now known as Guest14591
[2010/01/29 11:57:34] @ rgsteele joined channel #puppet
[2010/01/29 12:03:44] @ labrown joined channel #puppet
[2010/01/29 12:04:54] @ Quit: themurph:
[2010/01/29 12:05:58] @ toi joined channel #puppet
[2010/01/29 12:08:21] <robinbowes> http://yo61.com/writing-puppet-manifests-that-can-remove-resources-as-well-as-adding-them.html
[2010/01/29 12:08:33] @ cwebber joined channel #puppet
[2010/01/29 12:09:16] @ Quit: pheezy: Client Quit
[2010/01/29 12:10:38] @ Quit: verwilst: Client Quit
[2010/01/29 12:10:48] @ tecto joined channel #puppet
[2010/01/29 12:11:33] @ Quit: Guest14591: Remote closed the connection
[2010/01/29 12:15:57] @ lutter joined channel #puppet
[2010/01/29 12:17:13] @ Quit: pacalm: Client Quit
[2010/01/29 12:18:13] @ Quit: andrewh: "Quitting"
[2010/01/29 12:18:48] <masterzen> robinbowes: is it your own blog?
[2010/01/29 12:18:54] <robinbowes> Yup
[2010/01/29 12:19:33] <masterzen> want to be part of Planet Puppet?
[2010/01/29 12:20:09] @ mikerowehl joined channel #puppet
[2010/01/29 12:20:54] <robinbowes> Sure
[2010/01/29 12:22:09] <masterzen> robinbowes: I'll add your puppet feed later, I have to go back home.
[2010/01/29 12:22:34] <robinbowes> No worries
[2010/01/29 12:22:49] <robinbowes> It might even make me blog a bit more if I think someone might be listening :)
[2010/01/29 12:23:07] <Volcane> i added you to infra-talk's planet too
[2010/01/29 12:23:15] <robinbowes> Nice
[2010/01/29 12:23:24] <robinbowes> Thanks
[2010/01/29 12:25:46] @ danielbln joined channel #puppet
[2010/01/29 12:26:39] @ Quit: roede: Client Quit
[2010/01/29 12:28:28] @ tim|imac joined channel #puppet
[2010/01/29 12:32:14] <robinbowes> Where is that?
[2010/01/29 12:32:39] <Volcane> http://infra-talk.org/ though u need to give it some time to update still
[2010/01/29 12:32:48] <robinbowes> OK
[2010/01/29 12:33:35] @ Quit: nasrat: "stuff"
[2010/01/29 12:34:24] @ Quit: dim0: Read error: 60 (Operation timed out)
[2010/01/29 12:40:10] @ Quit: cedric_b: "Ex-Chat"
[2010/01/29 12:42:09] <silfreed> I'm trying to make puppet indifferent to a Package I have defined through a sub-class inheritance by setting ensure => undef
[2010/01/29 12:42:27] <silfreed> it still seems to want to include this Package, any way around that other than ensure => absent?
[2010/01/29 12:43:45] @ Quit: bug:
[2010/01/29 12:44:59] <goodieboy> if i want the client to pull from the puppetmaster, can i just run "service puppet reload"
[2010/01/29 12:44:59] <goodieboy> ?
[2010/01/29 12:45:31] <silfreed> goodieboy: I like just running puppetd --test
[2010/01/29 12:45:34] <Volcane> yes, or just puppetd --test if u want to see what it does
[2010/01/29 12:46:06] @ darko434 joined channel #puppet
[2010/01/29 12:46:07] @ p3rror joined channel #puppet
[2010/01/29 12:46:08] <goodieboy> Volcane: ok thanks. so "puppetd --test" will just show you what would happen, and not make the actually changes?
[2010/01/29 12:46:14] @ Quit: bgupta_: Client Quit
[2010/01/29 12:46:16] <Volcane> no, its a stupid option name
[2010/01/29 12:46:20] <Volcane> it does it
[2010/01/29 12:46:23] <Volcane> it just shows you what it does too
[2010/01/29 12:46:30] <Volcane> if you wanted a dryrun you can add --noop
[2010/01/29 12:46:44] <goodieboy> Volcane: great thanks
[2010/01/29 12:47:01] @ ezmobius joined channel #puppet
[2010/01/29 12:48:48] <Volcane> mc-find-hosts -C /secweb/
[2010/01/29 12:48:51] <Volcane> bah
[2010/01/29 12:48:53] <Volcane> wrong focus
[2010/01/29 12:49:04] @ flohack joined channel #puppet
[2010/01/29 12:54:02] @ Quit: toi: Read error: 113 (No route to host)
[2010/01/29 12:56:29] @ russell_h joined channel #puppet
[2010/01/29 12:59:41] @ themurph joined channel #puppet
[2010/01/29 13:00:15] <russell_h> is there a way to see (or place to look up) the possible values for a fact?
[2010/01/29 13:00:40] <russell_h> for example if I wanted to know what operatingsystem would be for a given OS?
[2010/01/29 13:01:22] <Volcane> not really, best is just to run facter on a host and see
[2010/01/29 13:01:28] @ Quit: farzer342: Ping timeout: 180 seconds
[2010/01/29 13:01:32] <Volcane> the OS supplies the information via LSB or some other means
[2010/01/29 13:01:46] <russell_h> ah, I sort of suspected as much
[2010/01/29 13:02:02] <goodieboy> is it safe to control-c when you're running pupptd --test" ?
[2010/01/29 13:02:13] <Volcane> goodieboy: yeah
[2010/01/29 13:02:20] <Volcane> generally yes
[2010/01/29 13:02:24] <goodieboy> Volcane: cool thanks.
[2010/01/29 13:02:31] <Volcane> i mean if its mid package install its the sae as ^cing yum or apt
[2010/01/29 13:03:40] <goodieboy> Volcane: OK good to know.
[2010/01/29 13:05:25] @ bug joined channel #puppet
[2010/01/29 13:08:42] @ Quit: poison: Remote closed the connection
[2010/01/29 13:08:58] @ qwebirc40950 joined channel #puppet
[2010/01/29 13:10:09] @ cwebber_ joined channel #puppet
[2010/01/29 13:10:17] @ Quit: qwebirc40950: Client Quit
[2010/01/29 13:13:01] @ unxfrek joined channel #puppet
[2010/01/29 13:13:49] <nigelk> what on earth does facter.conf do?
[2010/01/29 13:14:00] <nigelk> it's in the repo... but I can't find anything that actually uses it in the source
[2010/01/29 13:14:21] <Volcane> heh, might be an old left over?
[2010/01/29 13:14:23] <Volcane> never used it either
[2010/01/29 13:14:34] <nigelk> http://projects.reductivelabs.com/issues/1896 ?
[2010/01/29 13:15:04] <Volcane> but thats not what it does though is it?
[2010/01/29 13:15:16] <nigelk> I don't think it does anything :)
[2010/01/29 13:15:54] <nigelk> $ git log etc/facter.conf |grep Date
[2010/01/29 13:15:54] <nigelk> Date: Mon Aug 29 21:30:45 2005 +0000
[2010/01/29 13:15:55] <nigelk> hah
[2010/01/29 13:16:11] <Volcane> heh
[2010/01/29 13:16:22] <nigelk> so I guess that's a "no" to the question as to whether I should be including it in 1.5.7 debs :)
[2010/01/29 13:18:37] @ Quit: cwebber_: Read error: 104 (Connection reset by peer)
[2010/01/29 13:19:05] @ cwebber_ joined channel #puppet
[2010/01/29 13:24:43] @ Quit: giskard: Remote closed the connection
[2010/01/29 13:25:30] @ Quit: jaredrhine: Read error: 110 (Connection timed out)
[2010/01/29 13:27:21] @ Quit: cwebber: Read error: 110 (Connection timed out)
[2010/01/29 13:27:48] @ cwebber_ is now known as cwebber
[2010/01/29 13:37:32] @ lak joined channel #puppet
[2010/01/29 13:45:21] @ artista_frustrad joined channel #puppet
[2010/01/29 13:52:35] @ autowidget joined channel #puppet
[2010/01/29 13:53:20] @ pheezy joined channel #puppet
[2010/01/29 13:56:13] @ Quit: pheezy: Client Quit
[2010/01/29 13:56:38] @ pheezy joined channel #puppet
[2010/01/29 13:58:06] @ Quit: themurph:
[2010/01/29 13:58:43] @ Quit: lak: Read error: 110 (Connection timed out)
[2010/01/29 13:59:22] @ themurph joined channel #puppet
[2010/01/29 13:59:37] @ Quit: lilmatt: Client Quit
[2010/01/29 13:59:51] @ qwebirc14054 joined channel #puppet
[2010/01/29 14:00:10] @ benlovell joined channel #puppet
[2010/01/29 14:00:25] <sharms> I am having trouble getting puppet to work with OpenSuSe / Sles 11 with Zypper. Does anyone have this working?
[2010/01/29 14:02:43] <ashp> Volcane: you around? :)
[2010/01/29 14:03:08] <ashp> actually I'll just test this myself rather than asking a lazy question, i am just avoiding work while waiting for my doctors appointment
[2010/01/29 14:04:30] @ d2 joined channel #puppet
[2010/01/29 14:04:38] @ Quit: cwebber:
[2010/01/29 14:06:57] @ cwebber joined channel #puppet
[2010/01/29 14:09:02] @ jacobkm joined channel #puppet
[2010/01/29 14:11:52] @ Quit: artista_frustrad: Read error: 110 (Connection timed out)
[2010/01/29 14:14:45] <explody> hey, if anyone is using any of these editors: anjuta, geany, komodo, notepad++, notepad2, scite, blackadder, gedit, jedit, eric4 or anything else that uses scintilla, consider popping over here to pester the devs for puppet manifest support: https://sourceforge.net/tracker/?func=detail&aid=2941812&group_id=2439&atid=352439
[2010/01/29 14:16:45] <eric0> heh, i've never even heard of any of those programs
[2010/01/29 14:18:06] @ Quit: bkohler: Read error: 110 (Connection timed out)
[2010/01/29 14:18:10] <ashp> i use notepad++ but certainly not on my puppetmaster!
[2010/01/29 14:19:25] <KarlHungus> vim
[2010/01/29 14:19:28] @ paxos joined channel #puppet
[2010/01/29 14:21:03] <explody> geany, jedit, gedit?
[2010/01/29 14:21:31] <explody> gedit is gnome's default editor... it's grown up to be pretty nice actually, though I like geany better
[2010/01/29 14:22:20] @ Quit: zombied_: Client Quit
[2010/01/29 14:25:43] @ Quit: benlovell:
[2010/01/29 14:29:24] @ lilmatt joined channel #puppet
[2010/01/29 14:32:15] @ toi joined channel #puppet
[2010/01/29 14:32:17] @ WALoeIII joined channel #puppet
[2010/01/29 14:32:27] <d2> does puppet dashboard have an API? is there a way to export nodes from .pp files?
[2010/01/29 14:33:45] @ Quit: fluxdude: Read error: 110 (Connection timed out)
[2010/01/29 14:34:01] <WALoeIII> w/ puppet master as a rack app, how do I pass it extra switches like --confdir --moduldir
[2010/01/29 14:34:05] <WALoeIII> or at least a puppetconf file
[2010/01/29 14:34:18] <WALoeIII> it complains if I pass anything other than --debug with --rack
[2010/01/29 14:35:44] @ Quit: bobbyz: Read error: 113 (No route to host)
[2010/01/29 14:38:53] <thansen> is it possible to have the 'source' for files be on one of the client systems and automatically 'push' to the server at sync time?
[2010/01/29 14:39:39] <thansen> so that subsequently other clients get changes made on the initial client
[2010/01/29 14:39:41] <eric0> WALoeIII: you can append stuff in config.ru
[2010/01/29 14:39:57] <WALoeIII> eric0: I'm trying to shift it on to ARGV
[2010/01/29 14:40:02] <WALoeIII> do I need to quote it maybe
[2010/01/29 14:42:38] <WALoeIII> eric0: I think I realized its becaause ARGV is an array not a string and I was adding multiple options as one array
[2010/01/29 14:42:41] <WALoeIII> err as one string
[2010/01/29 14:45:33] <WALoeIII> no it still complains :(
[2010/01/29 14:50:25] @ brisho_ joined channel #puppet
[2010/01/29 14:53:08] @ Quit: lutter: "Leaving."
[2010/01/29 14:55:52] @ Quit: devdas: Remote closed the connection
[2010/01/29 15:00:38] @ bobbyz joined channel #puppet
[2010/01/29 15:06:21] @ Quit: goodieboy:
[2010/01/29 15:11:01] @ Quit: WALoeIII:
[2010/01/29 15:15:43] @ Quit: bug:
[2010/01/29 15:17:39] @ mw44118-work joined channel #puppet
[2010/01/29 15:18:36] @ Quit: pheezy: Read error: 104 (Connection reset by peer)
[2010/01/29 15:19:04] @ RageLink joined channel #puppet
[2010/01/29 15:23:16] @ pheezy joined channel #puppet
[2010/01/29 15:25:04] <Insyte> I just invented the perfect drink for a busy sysadmin on a Friday afternoon, around 2:00:
[2010/01/29 15:25:35] <Insyte> The Redrum: 1/3 can Monster, 1.5oz rum, 0.5oz grenadine, splash of bitters. Serve in highball glass over crushed ice. Garnish with a cherry.
[2010/01/29 15:26:00] <Insyte> Nothing like a little rum to lubricate a Puppet upgrade.
[2010/01/29 15:30:57] @ bug joined channel #puppet
[2010/01/29 15:31:31] @ jaredrhine joined channel #puppet
[2010/01/29 15:33:54] @ jacobkm left channel #puppet ()
[2010/01/29 15:34:38] * eric0 feels a little ill thinking about it
[2010/01/29 15:36:05] @ Quit: p3rror: Remote closed the connection
[2010/01/29 15:41:02] @ akhet joined channel #puppet
[2010/01/29 15:44:56] @ Quit: flakrat: "Leaving"
[2010/01/29 15:47:53] @ Quit: Demosthenes: "leaving"
[2010/01/29 15:51:19] <eric0> hmm, can i not wrap resource attributes in 'if / else' conditionals? thought that was OK but i'm getting parse errors.
[2010/01/29 15:54:29] <explody> you can do this
[2010/01/29 15:55:12] <explody> file { $kernel ? { Linux => /path/to, SunOS => /path/elsewhere }, other => thing }
[2010/01/29 15:55:35] <explody> http://reductivelabs.com/trac/puppet/wiki/LanguageTutorial#variables
[2010/01/29 15:56:13] <rgsteele> Is the wiki down?
[2010/01/29 15:56:35] <explody> rgsteele: hm, might be, it's not reloading for me
[2010/01/29 15:56:39] @ Quit: bug: Read error: 60 (Operation timed out)
[2010/01/29 15:56:46] <eric0> explody: yeah thats the selector
[2010/01/29 15:57:30] <explody> eric0: not what you're after?
[2010/01/29 15:58:05] <explody> eric0: paste your code, I might be able to show an alternative that would work
[2010/01/29 15:58:13] <eric0> no i want to use the if/else because unforutnately there's not one fact i can base the conditional on, it's both $operatingsystem and $operatingsystemrelease
[2010/01/29 15:58:21] <explody> ahh
[2010/01/29 15:58:26] <explody> you can nest them
[2010/01/29 15:59:05] <explody> thing => $kernel { $operatingsystem ? { one => two, three => four}, other => thing }
[2010/01/29 15:59:10] <explody> woops
[2010/01/29 15:59:15] <explody> thing => $kernel ? { $operatingsystem ? { one => two, three => four}, other => thing }
[2010/01/29 15:59:42] <rgsteele> in the absence of the wiki, can someone refresh my memory on setting variables with conditionals? Is it: $foo = defined(Class[bar]) ? { true => "yay", false => "nay" }
[2010/01/29 15:59:58] <explody> eric0: get's a little crazy looking though, you mgiht want to just split it up into a few nested classes
[2010/01/29 16:00:53] @ goodieboy joined channel #puppet
[2010/01/29 16:01:15] <goodieboy> i'm using exec, but only want it to run if a file doesn't exist
[2010/01/29 16:01:26] <goodieboy> so i'm using unles => "test -f /some/file"
[2010/01/29 16:01:49] @ nevyn_ joined channel #puppet
[2010/01/29 16:01:58] <goodieboy> but i get this error: failed: 'test -f /etc/httpd/conf.d/passenger.conf' is both unqualifed and specified no search path at
[2010/01/29 16:02:12] <goodieboy> my path in the is absolute, why wouldn't that work?
[2010/01/29 16:02:34] <Volcane> goodieboy: test is unualified, /usr/bin/test isnt
[2010/01/29 16:02:34] <explody> goodieboy: /usr/bin/test
[2010/01/29 16:02:48] <goodieboy> ahhh! thanks!
[2010/01/29 16:03:58] @ kolla joined channel #puppet
[2010/01/29 16:04:07] @ ten8nine joined channel #puppet
[2010/01/29 16:04:41] <explody> goodieboy: also, if you want "test" to return *true* if a file is not there, you can do: "/usr/bin/test ! -f /path/to/file"
[2010/01/29 16:05:11] <goodieboy> ok right. thanks for that.
[2010/01/29 16:07:43] @ Quit: ten8nine: Client Quit
[2010/01/29 16:07:58] @ ten8nine joined channel #puppet
[2010/01/29 16:08:13] @ akb joined channel #puppet
[2010/01/29 16:11:20] @ Quit: ten8nine: Client Quit
[2010/01/29 16:14:10] @ Quit: nevyn: Read error: 101 (Network is unreachable)
[2010/01/29 16:14:28] @ Quit: tecto:
[2010/01/29 16:18:18] @ bug joined channel #puppet
[2010/01/29 16:19:54] @ Quit: bug: Read error: 104 (Connection reset by peer)
[2010/01/29 16:19:57] @ bug_ joined channel #puppet
[2010/01/29 16:20:15] @ artista_frustrad joined channel #puppet
[2010/01/29 16:24:59] @ Quit: bug_: Read error: 104 (Connection reset by peer)
[2010/01/29 16:25:01] @ lutter joined channel #puppet
[2010/01/29 16:25:04] @ Quit: GGD_: Read error: 110 (Connection timed out)
[2010/01/29 16:25:08] @ bug joined channel #puppet
[2010/01/29 16:32:01] @ gebi joined channel #puppet
[2010/01/29 16:37:15] @ Quit: allsystemsarego: "Leaving"
[2010/01/29 16:40:10] @ artista-frustrad joined channel #puppet
[2010/01/29 16:40:32] @ Quit: notbrien: Read error: 110 (Connection timed out)
[2010/01/29 16:40:44] @ Quit: themurph: Remote closed the connection
[2010/01/29 16:40:56] @ Quit: tyll: Read error: 60 (Operation timed out)
[2010/01/29 16:41:00] @ themurph joined channel #puppet
[2010/01/29 16:41:05] @ fluxdude joined channel #puppet
[2010/01/29 16:41:19] @ Quit: artista_frustrad: Read error: 110 (Connection timed out)
[2010/01/29 16:51:49] @ brisho_ left channel #puppet ()
[2010/01/29 16:52:55] @ ten8nine joined channel #puppet
[2010/01/29 16:55:30] @ Quit: mw44118-work: "leaving"
[2010/01/29 16:57:31] @ Quit: rgsteele: Remote closed the connection
[2010/01/29 16:58:27] @ Quit: labrown: "Leaving"
[2010/01/29 16:58:57] @ artista_frustrad joined channel #puppet
[2010/01/29 17:01:31] @ Quit: artista-frustrad: Read error: 110 (Connection timed out)
[2010/01/29 17:02:45] @ Quit: gebi: Read error: 113 (No route to host)
[2010/01/29 17:11:49] @ Quit: toi: Read error: 110 (Connection timed out)
[2010/01/29 17:16:23] @ Quit: bug: Read error: 104 (Connection reset by peer)
[2010/01/29 17:16:31] @ bug_ joined channel #puppet
[2010/01/29 17:16:37] @ bug_ is now known as bug
[2010/01/29 17:18:41] @ Quit: artista_frustrad: Read error: 110 (Connection timed out)
[2010/01/29 17:20:47] @ Quit: ezmobius: Remote closed the connection
[2010/01/29 17:27:25] <goodieboy> is there a way to send over an entire directory, like file{"/opt": source => "puppet://a-directory"} ?
[2010/01/29 17:27:40] @ Quit: xcrracer_: Read error: 113 (No route to host)
[2010/01/29 17:28:17] <eric0> recurse... look at wiki:TypeReference for file type...
[2010/01/29 17:28:50] <Volcane> but its not a good idea unless they're just a few small files
[2010/01/29 17:29:00] <goodieboy> ahh that was my next question :)
[2010/01/29 17:29:02] <goodieboy> ok
[2010/01/29 17:29:17] <Volcane> packages work best
[2010/01/29 17:29:28] <goodieboy> i'm trying to install ruby enterprise edition. i have exec stuff that works, but it's timing out. any ideas as to why that would happen?
[2010/01/29 17:31:13] @ Quit: unxfrek: "Leaving"
[2010/01/29 17:32:01] <goodieboy> would it be ok to tar up an existing install, and send it over to a client like that?
[2010/01/29 17:33:30] <Volcane> it would use as much memory on the master as the size of the tarball
[2010/01/29 17:33:39] <Volcane> and probably on the client
[2010/01/29 17:34:02] <Volcane> best to just make a package, even if you just use alien or something and serve it up via yum/apt etc
[2010/01/29 17:34:30] <goodieboy> Volcane: problem is i've never done that before... and i'm on the most painful of deadlines :(
[2010/01/29 17:34:44] <Volcane> do you have an apt or yum repo?
[2010/01/29 17:35:07] <goodieboy> Volcane: no, just using stock repos
[2010/01/29 17:35:11] <Volcane> k
[2010/01/29 17:35:15] <ten8nine> sudo puppetmasterd --mkusers --verbose shows nothing at the command line and neither does puppetd --verbose on the client. I'm following James Turnbull's book. I also rolled back my virtual machine and tried following the guide at reductivelab's site http://reductivelabs.com/trac/puppet/wiki/SimplestPuppetInstallRecipe Is there something wrong in the latest release of puppet?
[2010/01/29 17:35:23] <Volcane> well then I'd say exec to wget the tar
[2010/01/29 17:35:33] <Volcane> and then that notifies an exec that untars it
[2010/01/29 17:35:57] <goodieboy> interesting ok. i'll have a look.
[2010/01/29 17:36:01] <Volcane> ten8nine: what distribution?
[2010/01/29 17:36:13] <ten8nine> ubuntu-9.10-server
[2010/01/29 17:36:33] <Volcane> best to use a package if possible, manual installs not really awesome
[2010/01/29 17:37:16] <ten8nine> Volcane: everything went smooth on install, I tried both install.rb and gem install, no hiccups, except for this last step in starting up daemons
[2010/01/29 17:37:41] <Volcane> install.rb is a terrible idea - upgrades are problematic
[2010/01/29 17:37:48] <Volcane> gems are terrible cos they dont put the binaries in the right place
[2010/01/29 17:37:53] <ten8nine> ah
[2010/01/29 17:37:57] <ten8nine> thanks for the advice
[2010/01/29 17:37:57] <Volcane> well i think they do now but hacky
[2010/01/29 17:38:30] <goodieboy> ok, i'll look into packaging it up if I can.
[2010/01/29 17:38:31] <ten8nine> I'll rollback and try using packages... though I haven't seen guides or where to get those yet. Thanks 'gin
[2010/01/29 17:39:04] <Volcane> ten8nine: not sure where u get them but there are def debs being built by nigelk and his team
[2010/01/29 17:39:44] <nigelk> ten8nine: so we just submitted everything upstream to debian git
[2010/01/29 17:39:53] <jamesturnbull> Volcane: they do now and any hackiness is hidden from end users - that's part of package build
[2010/01/29 17:39:57] <nigelk> give me a second to whip up some anonymous access instructions for building debs
[2010/01/29 17:40:14] <eric0> http://twitpic.com/10dm77
[2010/01/29 17:40:17] <Volcane> jamesturnbull: ah ok, still, gems should be last resort before install.rb :P
[2010/01/29 17:40:29] <nigelk> Just submitting the Portfile for the 0.25.4 MacPorts after doing the Mac pkgs and the Debian debs
[2010/01/29 17:40:32] <eric0> nice work ohloh.
[2010/01/29 17:40:35] <nigelk> we need more package maintainers :)
[2010/01/29 17:40:53] <jamesturnbull> Volcane: yeah agreed
[2010/01/29 17:41:09] <eric0> probably low hanging fruit but i'd do macports nigel
[2010/01/29 17:41:18] <jamesturnbull> ten8nine: can I suggest you've just backgroiunded puppetmasterd?
[2010/01/29 17:41:26] <jamesturnbull> ten8nine: try adding --no-daemonize
[2010/01/29 17:41:51] <goodieboy> if i run an install script and then puppet times out, is there a way around that?
[2010/01/29 17:41:54] <nigelk> eric0: that would be awesome, it's really trivial to do atm
[2010/01/29 17:41:59] <nigelk> essentially just bumping the version number
[2010/01/29 17:42:01] <jamesturnbull> ten8nine: that'll let you see what's happening (obviously kill the already running daemons)
[2010/01/29 17:42:26] <eric0> nigelk: yeh and the chksum, right?
[2010/01/29 17:42:32] <jamesturnbull> nigelk: amazed people don't want the glory of being package maintainers
[2010/01/29 17:42:34] <nigelk> yes :)
[2010/01/29 17:42:36] <ten8nine> jamesturnbull: thanks I'll give that a try before I roll-back the machine
[2010/01/29 17:42:41] <nigelk> jamesturnbull: I know. It gets all the chicks ;)
[2010/01/29 17:43:09] * jamesturnbull loves downstream people who maintain packages (well those ones who upstream bugs... not looking at any project in particular)
[2010/01/29 17:43:18] @ Quit: ten8nine:
[2010/01/29 17:43:45] <jamesturnbull> nigelk: I don't think debian makes enough of that "Become a Debian package maintainer to meet members of the opposite sex"
[2010/01/29 17:44:09] @ Quit: themurph: Read error: 110 (Connection timed out)
[2010/01/29 17:44:23] <jamesturnbull> because it's so true ... oh wait .. no it isn't ... well unless you're madduck
[2010/01/29 17:45:10] <goodieboy> anyone know if ruby 1.8.7 is available for fedora core 12?
[2010/01/29 17:46:10] <jamesturnbull> goodieboy: it's in fc13 I understand
[2010/01/29 17:46:27] <jamesturnbull> goodieboy: fc12 is still 1.8.6
[2010/01/29 17:46:28] <goodieboy> jamesturnbull: ok good to know thanks.
[2010/01/29 17:47:43] @ Quit: erm_: Read error: 110 (Connection timed out)
[2010/01/29 17:48:19] <nigelk> ok https://trac.macports.org/ticket/23480 in, doing the deb instructions now and will mail to the list
[2010/01/29 17:50:22] @ Quit: jbooth: "leaving"
[2010/01/29 17:54:58] <eric0> RL trac is taking its sweet time rendering pages this afternoon.
[2010/01/29 17:55:39] <russell_h> I was about to say, I just got some sort of error too
[2010/01/29 17:56:20] @ Quit: bug:
[2010/01/29 18:00:51] @ Quit: paxos: Client Quit
[2010/01/29 18:00:54] @ ten8nine joined channel #puppet
[2010/01/29 18:01:47] <nigelk> ten8nine: are you all set up yourself with your own keys etc for signing debs?
[2010/01/29 18:02:00] <nigelk> (internally, not for debian or whatever)
[2010/01/29 18:02:51] <ten8nine> nigelk: no. I've yet to learn how to do that.
[2010/01/29 18:03:30] <ten8nine> nigelk: hoping that's a few google clicks away
[2010/01/29 18:03:37] <nigelk> it should be :)
[2010/01/29 18:03:48] <nigelk> so basically your process would go
[2010/01/29 18:03:49] <nigelk> git clone git://git.debian.org/pkg-puppet/pkg-puppet.git
[2010/01/29 18:03:51] <nigelk> cd puppet
[2010/01/29 18:04:13] <nigelk> (edit debian/changelog to bump the build number to be ~ten8nine or something with your email address)
[2010/01/29 18:04:39] <nigelk> git add debian/changelog ; git commit -m "whatever"
[2010/01/29 18:04:42] <nigelk> git-buildpackage --git-upstream-branch=origin/upstream
[2010/01/29 18:04:56] <nigelk> then you'd get prompted to sign the packages with your key
[2010/01/29 18:05:21] <nigelk> If you want to create unsigned packages (which I am not a huge fan of...) then you can modify the debuild command git-buildpackage uses
[2010/01/29 18:05:50] <nigelk> mazy of twistiness... you tell git-buildpackage what debuild command to use, including the debuild command that passes the dpkg-buildpackage options to not sign the package
[2010/01/29 18:05:53] <nigelk> AAAAAAAAAAARRRRRRRRRRRRRRRRRRRRGHHHHHHHHHHHHH
[2010/01/29 18:06:06] <ten8nine> k
[2010/01/29 18:08:25] <explody> class names can be purely numeric, right?
[2010/01/29 18:14:17] @ Quit: malraid:
[2010/01/29 18:15:57] <explody> I seem to have no problem making classes named things like "10", but I'm getting a syntax error when I try to include them: Could not parse for environment development: Syntax error at ':'; expected '}'
[2010/01/29 18:16:08] <explody> that's for the line: include sol::network::10
[2010/01/29 18:16:34] @ Quit: flohack: Read error: 110 (Connection timed out)
[2010/01/29 18:16:39] <explody> if I quote the class name, it passes, is this expected?
[2010/01/29 18:17:16] @ mqr_ joined channel #puppet
[2010/01/29 18:17:45] @ gpled joined channel #puppet
[2010/01/29 18:18:12] <gpled> if i just want to chmod a file, do i use file { and just leave out source?
[2010/01/29 18:18:40] <explody> gpled: you could "ensure => present, mode => 644"
[2010/01/29 18:18:52] <explody> and specify no source/content
[2010/01/29 18:18:59] <gpled> explody: thanks
[2010/01/29 18:20:40] @ Quit: alban2: "Leaving."
[2010/01/29 18:21:39] @ gpled left channel #puppet ("Ex-Chat")
[2010/01/29 18:29:17] @ tecto joined channel #puppet
[2010/01/29 18:29:25] @ Quit: darko434: Ping timeout: 180 seconds
[2010/01/29 18:30:03] @ Quit: pheezy: Remote closed the connection
[2010/01/29 18:32:44] @ Quit: kaptk2: "Leaving."
[2010/01/29 18:34:14] @ Quit: mqr: Read error: 110 (Connection timed out)
[2010/01/29 18:36:34] @ Quit: akb: Client Quit
[2010/01/29 18:39:55] <goodieboy> why would one get "Failed to call refresh on Exec" ?
[2010/01/29 18:40:26] <goodieboy> I can't figure this out, keeps failing. I did modify the file I was subscribed to.
[2010/01/29 18:41:37] @ Quit: cwebber:
[2010/01/29 18:43:20] @ Quit: barn: "Lost terminal"
[2010/01/29 18:43:40] @ Quit: bobbyz: Read error: 110 (Connection timed out)
[2010/01/29 18:44:07] @ ezmobius joined channel #puppet
[2010/01/29 18:44:37] @ GGD joined channel #puppet
[2010/01/29 18:44:49] @ Djelibeybi joined channel #puppet
[2010/01/29 18:46:56] <nigelk> explody: that looks like a bug to me
[2010/01/29 18:46:58] @ Quit: tecto:
[2010/01/29 18:47:04] <nigelk> unless there's some constraint on class names I'm not aware of
[2010/01/29 18:47:19] <explody> according to the docs it should work
[2010/01/29 18:47:28] @ Quit: mboyd: Read error: 104 (Connection reset by peer)
[2010/01/29 18:47:44] @ mboyd joined channel #puppet
[2010/01/29 18:47:44] <explody> and naming the classes themselves works fine, I only get the syntax error when I 'include' one with a numeric name
[2010/01/29 18:47:55] <nigelk> yeah. sounds like a bug.
[2010/01/29 18:48:50] <Volcane> what version puppet?
[2010/01/29 18:49:39] <thansen> does 'default' node *only* get used if no other match is found?
[2010/01/29 18:50:16] <jamesturnbull> numeric class names were introduced in .... hmmm not sure - later
[2010/01/29 18:50:50] <jamesturnbull> explody: #1274
[2010/01/29 18:50:51] <gepetto> jamesturnbull: explody: #1274 is http://projects.reductivelabs.com/issues/show/1274 "Puppet - Bug #1274: class names cannot begin with a digit - ReductiveLabs.com"
[2010/01/29 18:51:07] <jamesturnbull> explody: so 0.24.6 and later
[2010/01/29 18:51:11] <Volcane> jamesturnbull: 0.24.6
[2010/01/29 18:51:53] <explody> jamesturnbull: I saw that, but is it not fixed?
[2010/01/29 18:51:59] <explody> i'm on 0.25.3...
[2010/01/29 18:52:10] @ Quit: grim_radical: "Leaving"
[2010/01/29 18:52:21] <jamesturnbull> explody: it's fixed
[2010/01/29 18:53:12] @ Quit: GGD: Remote closed the connection
[2010/01/29 18:53:27] @ eSpud joined channel #puppet
[2010/01/29 18:55:10] @ barn joined channel #puppet
[2010/01/29 18:55:58] <explody> jamesturnbull: do you think this is related or something else? http://pastie.org/801241
[2010/01/29 18:57:07] @ bgupta joined channel #puppet
[2010/01/29 19:03:39] @ Quit: qwebirc14054: Client Quit
[2010/01/29 19:05:15] @ Quit: brothers: Read error: 104 (Connection reset by peer)
[2010/01/29 19:14:06] @ Quit: autowidget: Client Quit
[2010/01/29 19:18:44] @ ambroff joined channel #puppet
[2010/01/29 19:20:11] <jamesturnbull> explody: can you show me the full module and its file layout?
[2010/01/29 19:23:42] @ Quit: ppickfor: "Leaving."
[2010/01/29 19:24:02] @ WALoeIII joined channel #puppet
[2010/01/29 19:25:13] <explody> sure, one sec
[2010/01/29 19:25:27] @ Quit: alfism: Client Quit
[2010/01/29 19:25:40] <thansen> why isn't the stuff in 'default' node being applied to my node?
[2010/01/29 19:26:17] <thansen> I have a more explicit definition for this particular box but I figured default would be applied to *everything* even if something more specific is found
[2010/01/29 19:27:38] @ akb joined channel #puppet
[2010/01/29 19:28:22] * thansen thought everything inherited default without saying
[2010/01/29 19:29:44] @ ppickfor joined channel #puppet
[2010/01/29 19:30:01] <Djelibeybi> thansen: nope. Default is only applied if nothing else matches
[2010/01/29 19:30:44] <thansen> hmm, ok
[2010/01/29 19:31:58] <explody> jamesturnbull: in this module, there is only a manifests/init.pp, no separate files. This is slightly abridged, but it's the entire class in question: http://pastie.org/801284 the error is line 77
[2010/01/29 19:32:11] <explody> amidoingitwrong?
[2010/01/29 19:32:27] @ Quit: myrradin: Read error: 60 (Operation timed out)
[2010/01/29 19:32:38] @ Quit: ten8nine:
[2010/01/29 19:33:15] @ myrradin joined channel #puppet
[2010/01/29 19:33:35] @ Quit: eshamow: Client Quit
[2010/01/29 19:33:45] * thansen crosses his fingers
[2010/01/29 19:40:57] @ Quit: fluxdude: Read error: 113 (No route to host)
[2010/01/29 19:45:04] @ bug joined channel #puppet
[2010/01/29 19:46:09] @ giskard joined channel #puppet
[2010/01/29 19:55:15] @ Quit: Djelibeybi: "Leaving"
[2010/01/29 19:58:57] @ ten8nine joined channel #puppet
[2010/01/29 19:59:51] <whack> hmm, no way to get the yum or rpm provider to ensure a particular 'provides' is available, vs ensuring a package by name?
[2010/01/29 20:00:24] <whack> I have a package that comes in various names (component-branchname). Any thoughts ensuring "componenet" package in puppet?
[2010/01/29 20:00:52] <joe-mac> whack: tag all the various packages witha common tag
[2010/01/29 20:00:55] <joe-mac> like the base package name
[2010/01/29 20:01:06] <joe-mac> o wait nm
[2010/01/29 20:01:11] <joe-mac> you're talking about internals/coding
[2010/01/29 20:01:14] <joe-mac> anyways, gotta go
[2010/01/29 20:01:14] <whack> yeah
[2010/01/29 20:01:39] @ Quit: joe-mac: Remote closed the connection
[2010/01/29 20:01:50] @ Quit: WALoeIII: "Bai."
[2010/01/29 20:03:50] @ brothers joined channel #puppet
[2010/01/29 20:04:51] <explody> jamesturnbull: fyi, if I quote the included class name, it works fine, e.g. import "sol::network::10"
[2010/01/29 20:05:01] <explody> s/import/include/
[2010/01/29 20:11:13] <jamesturnbull> explody: hmm you shouldn't have to quote
[2010/01/29 20:11:31] @ Quit: jcape: Read error: 110 (Connection timed out)
[2010/01/29 20:11:58] <explody> I didn't think so, but it gets me past the error for the moment
[2010/01/29 20:14:39] <jamesturnbull> explody: try class solaris::network::10 { } - I wonder if it is recognising the nested classes
[2010/01/29 20:17:14] @ Quit: giskard: Remote closed the connection
[2010/01/29 20:18:28] @ paxos joined channel #puppet
[2010/01/29 20:18:42] @ Quit: paxos: Client Quit
[2010/01/29 20:21:28] @ Quit: akhet: Read error: 60 (Operation timed out)
[2010/01/29 20:22:37] @ Quit: bug:
[2010/01/29 20:23:10] <explody> jamesturnbull: no, same syntax error. it looks to me like the lexer is balking at finding an integer
[2010/01/29 20:23:47] <explody> I know that sounds obvious, but given the placement in a case statement, it's acting like the "10" should be the next case switch
[2010/01/29 20:24:13] @ Quit: ten8nine:
[2010/01/29 20:24:20] @ ten8nine joined channel #puppet
[2010/01/29 20:24:26] <jamesturnbull> explody: bug then - can you please log a ticket?
[2010/01/29 20:24:32] <explody> sure
[2010/01/29 20:24:37] <jamesturnbull> explody: lot's of details and logs please
[2010/01/29 20:25:19] @ bug joined channel #puppet
[2010/01/29 20:25:43] @ jcape joined channel #puppet
[2010/01/29 20:27:18] @ Quit: goodieboy:
[2010/01/29 20:27:22] @ GGD joined channel #puppet
[2010/01/29 20:32:09] @ Quit: shadoi: Read error: 54 (Connection reset by peer)
[2010/01/29 20:32:43] @ themurph joined channel #puppet
[2010/01/29 20:32:45] @ Quit: nigelk:
[2010/01/29 20:33:30] @ shadoi joined channel #puppet
[2010/01/29 20:33:47] @ ten8nine left channel #puppet ()
[2010/01/29 20:35:34] @ ten8nine joined channel #puppet
[2010/01/29 20:47:44] <explody> jamesturnbull: http://projects.reductivelabs.com/issues/3129
[2010/01/29 20:48:39] <explody> is that enough data?
[2010/01/29 20:50:43] @ Quit: ten8nine:
[2010/01/29 20:51:14] <jamesturnbull> explody: thanks - yes
[2010/01/29 20:57:34] @ Quit: danielbln: "Leaving."
[2010/01/29 20:57:35] @ Quit: bug: Read error: 104 (Connection reset by peer)
[2010/01/29 20:58:22] @ bug joined channel #puppet
[2010/01/29 20:58:50] @ Quit: lilmatt: Read error: 110 (Connection timed out)
[2010/01/29 21:00:33] @ Demosthenes joined channel #puppet
[2010/01/29 21:00:50] <explody> hey, also, should you be able to do "require => Class[nested::class]" ? because I get a syntax error on the colons if I don't quote the class name there too
[2010/01/29 21:04:09] <whack> explody: put it in quotes but tis hould work
[2010/01/29 21:04:31] <explody> yeah, it works in quotes, just not sure if it is supposed to work without them as well
[2010/01/29 21:18:22] @ ten8nine joined channel #puppet
[2010/01/29 21:19:51] @ bgupta_ joined channel #puppet
[2010/01/29 21:20:07] @ Quit: thansen: "Ex-Chat"
[2010/01/29 21:20:39] @ Quit: bgupta: Read error: 104 (Connection reset by peer)
[2010/01/29 21:21:02] @ Quit: bug: Read error: 104 (Connection reset by peer)
[2010/01/29 21:21:51] @ bug joined channel #puppet
[2010/01/29 21:30:26] @ Quit: ezmobius: "Leaving..."
[2010/01/29 21:31:12] @ artista_frustrad joined channel #puppet
[2010/01/29 21:31:58] @ joe-mac joined channel #puppet
[2010/01/29 21:34:29] @ themurph_ joined channel #puppet
[2010/01/29 21:34:30] @ Quit: themurph: Read error: 104 (Connection reset by peer)
[2010/01/29 21:34:32] @ Quit: bug: Read error: 104 (Connection reset by peer)
[2010/01/29 21:34:36] @ themurph_ is now known as themurph
[2010/01/29 21:39:59] @ Quit: jaredrhine: Read error: 113 (No route to host)
[2010/01/29 21:40:17] @ bug joined channel #puppet
[2010/01/29 21:41:50] <eric0> i think this is a similar thing to what i ran into earlier -- i keep expecting case and if/else conditionals to work inside a resource and i guess they just dont...? http://pastie.org/801402
[2010/01/29 21:44:32] @ Quit: bug: Read error: 104 (Connection reset by peer)
[2010/01/29 21:47:58] @ bug joined channel #puppet
[2010/01/29 21:49:11] @ bug_ joined channel #puppet
[2010/01/29 21:50:34] @ Quit: RageLink: calvino.freenode.net irc.freenode.net
[2010/01/29 21:50:37] @ Quit: taihen: calvino.freenode.net irc.freenode.net
[2010/01/29 21:50:38] @ Quit: ashp: calvino.freenode.net irc.freenode.net
[2010/01/29 21:50:39] @ Quit: henk: calvino.freenode.net irc.freenode.net
[2010/01/29 21:50:39] @ Quit: dotNox: calvino.freenode.net irc.freenode.net
[2010/01/29 21:50:39] @ Quit: fsweetser: calvino.freenode.net irc.freenode.net
[2010/01/29 21:50:40] @ Quit: mikepea: calvino.freenode.net irc.freenode.net
[2010/01/29 21:50:40] @ Quit: _nalle: calvino.freenode.net irc.freenode.net
[2010/01/29 21:50:40] @ Quit: jY: calvino.freenode.net irc.freenode.net
[2010/01/29 21:50:41] @ Quit: ohlolohlol: calvino.freenode.net irc.freenode.net
[2010/01/29 21:50:43] @ Quit: bda: calvino.freenode.net irc.freenode.net
[2010/01/29 21:50:43] @ Quit: zerash: calvino.freenode.net irc.freenode.net
[2010/01/29 21:50:44] @ Quit: cafuego: calvino.freenode.net irc.freenode.net
[2010/01/29 21:50:44] @ Quit: choffee`: calvino.freenode.net irc.freenode.net
[2010/01/29 21:50:45] @ Quit: MrHeavy: calvino.freenode.net irc.freenode.net
[2010/01/29 21:50:45] @ Quit: bagpuss_thecat: calvino.freenode.net irc.freenode.net
[2010/01/29 21:50:45] @ _nalle_ joined channel #puppet
[2010/01/29 21:50:46] @ henk joined channel #puppet
[2010/01/29 21:50:46] @ taihen_ joined channel #puppet
[2010/01/29 21:50:46] @ choffee` joined channel #puppet
[2010/01/29 21:50:46] @ zerash_ joined channel #puppet
[2010/01/29 21:50:46] @ bagpuss_thecat joined channel #puppet
[2010/01/29 21:50:46] @ ashp_ joined channel #puppet
[2010/01/29 21:50:46] @ bda joined channel #puppet
[2010/01/29 21:50:46] @ cafuego joined channel #puppet
[2010/01/29 21:50:46] @ dotNox joined channel #puppet
[2010/01/29 21:50:46] @ MrHeavy joined channel #puppet
[2010/01/29 21:50:46] @ fsweetser joined channel #puppet
[2010/01/29 21:50:47] @ jY- joined channel #puppet
[2010/01/29 21:50:47] @ mikepea joined channel #puppet
[2010/01/29 21:50:49] @ RageLink joined channel #puppet
[2010/01/29 21:50:50] @ ohlolohlol joined channel #puppet
[2010/01/29 21:51:00] @ Quit: ryan8403: Excess Flood
[2010/01/29 21:51:10] @ ryan8403 joined channel #puppet
[2010/01/29 21:51:30] @ bug__ joined channel #puppet
[2010/01/29 21:51:32] @ Quit: ryan8403: Excess Flood
[2010/01/29 21:51:35] @ Quit: ten8nine:
[2010/01/29 21:51:38] @ ayanich joined channel #puppet
[2010/01/29 21:51:42] @ ryan8403 joined channel #puppet
[2010/01/29 21:52:16] <ohadlevy> eric0: no - I think the only way you could do inside a service def is something like - name => $var {...}
[2010/01/29 21:52:55] <eric0> reload, i think the bottom one will do the right thing but IMO its not as nice (repeats itself more)
[2010/01/29 21:53:08] @ Quit: bug__: Read error: 104 (Connection reset by peer)
[2010/01/29 21:54:03] <eric0> i do sometimes set class-specific variables before any resource definitions, and that works oK, but in this case, start/stop should not be defined for any except base provider services
[2010/01/29 21:55:51] @ Quit: bug: Read error: 104 (Connection reset by peer)
[2010/01/29 21:57:33] @ Quit: bug_: Read error: 104 (Connection reset by peer)
[2010/01/29 22:08:05] <ohadlevy> eric0: another option might be http://pastie.org/801417
[2010/01/29 22:08:08] <ohadlevy> not much diff
[2010/01/29 22:08:44] @ bug joined channel #puppet
[2010/01/29 22:11:58] @ Quit: bug: Read error: 104 (Connection reset by peer)
[2010/01/29 22:15:00] @ bug joined channel #puppet
[2010/01/29 22:16:36] @ Djelibeybi joined channel #puppet
[2010/01/29 22:17:41] @ Quit: Bass10: Connection timed out
[2010/01/29 22:18:31] @ bug_ joined channel #puppet
[2010/01/29 22:18:33] @ Quit: bug: Read error: 104 (Connection reset by peer)
[2010/01/29 22:18:54] @ bug_ is now known as bug
[2010/01/29 22:23:12] @ Quit: brothers:
[2010/01/29 22:25:09] @ Quit: mikerowehl:
[2010/01/29 22:25:24] @ mikerowehl joined channel #puppet
[2010/01/29 22:28:43] @ Quit: bug: Read error: 104 (Connection reset by peer)
[2010/01/29 22:29:48] @ bug joined channel #puppet
[2010/01/29 22:32:13] @ Quit: Djelibeybi: "Leaving"
[2010/01/29 22:36:02] @ Quit: artista_frustrad: Read error: 110 (Connection timed out)
[2010/01/29 22:37:36] @ Quit: eric0: Read error: 110 (Connection timed out)
[2010/01/29 22:44:34] @ themurph_ joined channel #puppet
[2010/01/29 22:44:34] @ Quit: themurph: Read error: 104 (Connection reset by peer)
[2010/01/29 22:44:41] @ themurph_ is now known as themurph
[2010/01/29 22:47:42] @ Quit: bug: Read error: 104 (Connection reset by peer)
[2010/01/29 22:49:44] @ Quit: akb: Client Quit
[2010/01/29 22:49:51] @ bug joined channel #puppet
[2010/01/29 22:54:51] @ Quit: jcape:
[2010/01/29 22:55:04] @ jcape joined channel #puppet
[2010/01/29 22:58:06] @ brothers joined channel #puppet
[2010/01/29 22:59:15] @ Quit: eSpud: Read error: 60 (Operation timed out)
[2010/01/29 22:59:45] @ eSpud joined channel #puppet
[2010/01/29 23:05:28] @ themurph_ joined channel #puppet
[2010/01/29 23:05:29] @ Quit: themurph: Read error: 104 (Connection reset by peer)
[2010/01/29 23:05:35] @ themurph_ is now known as themurph
[2010/01/29 23:06:21] @ Quit: mikerowehl:
[2010/01/29 23:06:27] @ artista-frustrad joined channel #puppet
[2010/01/29 23:11:27] @ Quit: bug: Read error: 104 (Connection reset by peer)
[2010/01/29 23:13:13] @ bug_ joined channel #puppet
[2010/01/29 23:13:18] @ bug_ is now known as bug
[2010/01/29 23:24:21] @ Quit: artista-frustrad: Connection timed out
[2010/01/29 23:44:25] @ Quit: GGD: "ChatZilla 0.9.86 [Firefox 3.5.7/20091221164558]"

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