[jira] [Commented] (TS-1136) Expose Configuration API such that config files can be written (or scripted) in a glue-language such as Lua

2012-03-15 Thread Leif Hedstrom (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/TS-1136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13230241#comment-13230241
 ] 

Leif Hedstrom commented on TS-1136:
---

Well, the existing admin API (which I'm shockingly familiar with ...) only 
works on a running system. What we need is a system that can hook up a DSL 
config system at startup. I've been thinking a lot about this, what I've been 
meaning to do is to make a Lua system that generates records.config, 
remap.config, parent.config, cache.config etc. That would be step one towards 
profit I think. E.g. Lua code like
{code}

domain{
 name = { ogre.com, www.ogre.com},
 path = { /, function
local rec = rec
rec.url_remap.pristine_host_hdr = 0

{code}

or some such, I need to think some more about how this actually works in Lua 
:). But it's syntax of passing tables are function parameters without requiring 
() makes for neat DSL syntax I think.


This could easily include support for different plugins (regex_remap, 
header_filter, remap_conf etc.), and generate those plugin config files as well.

 Expose Configuration API such that config files can be written (or scripted) 
 in a glue-language such as Lua
 ---

 Key: TS-1136
 URL: https://issues.apache.org/jira/browse/TS-1136
 Project: Traffic Server
  Issue Type: New Feature
  Components: Configuration
Reporter: Igor Galić

 To unify and simplify our configuration it would be great to have them in a 
 script language.
 Lua is an ideal candidate as it is easy to embed and it would make for a 
 wonderful - and powerful DSL.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (TS-1136) Expose Configuration API such that config files can be written (or scripted) in a glue-language such as Lua

2012-03-14 Thread James Peach (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/TS-1136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13229856#comment-13229856
 ] 

James Peach commented on TS-1136:
-

Since we already have Perl bindings for this, we could implement a Perl-ish 
configuration DSL :)

 Expose Configuration API such that config files can be written (or scripted) 
 in a glue-language such as Lua
 ---

 Key: TS-1136
 URL: https://issues.apache.org/jira/browse/TS-1136
 Project: Traffic Server
  Issue Type: New Feature
  Components: Configuration
Reporter: Igor Galić

 To unify and simplify our configuration it would be great to have them in a 
 script language.
 Lua is an ideal candidate as it is easy to embed and it would make for a 
 wonderful - and powerful DSL.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira