Configuring Lucee for cloud instance

263 views
Skip to first unread message

Asher Densmore-Lynn

unread,
Feb 16, 2015, 5:54:22 PM2/16/15
to lu...@googlegroups.com
Hello,

I'm trying to work out what the best way to configure Lucee is from a configuration-managment point of view. I've got suitable recipes for installing and configuration Apache, and I can install Lucee and then put in my own server.xml and web.xml files and configure the connector myself, that's not the problem.

But I'd like to configure Lucee itself before I try to boot my application on it -- set passwords, configure mappings and datasources. So far the "best" way I have to do this is to create an unserved directory, put a CFADMIN-employing template in it, boot Lucee, call that template, then delete that template because I don't especially want plaintext credentials anywhere they might get served.

It works most of the time, but it seems a little rickety and certainly it's not my preference. I have reasons for not wanting to load the app configuration into Application.cfc. Is there another way to do this I'm not seeing?

Michael van Leest

unread,
Feb 16, 2015, 6:15:35 PM2/16/15
to lu...@googlegroups.com
I'm working on the same issue as well. Besides the points you mentioned, I'm also looking to install extensions at launch. 

Isn't there some way to do admin actions through command line? 
--
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/74a62a28-654a-4e78-bda6-e14f71b556f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Sent from Gmail Mobile

Adam Chapman

unread,
Feb 16, 2015, 10:50:27 PM2/16/15
to lu...@googlegroups.com
I was just about to ask about something very similar..

I'd like to know how to set "Inspect Templates = never" during an automated cloud instance installation.

@Asher, I use the "Expor settingst to Application.cfc" feature and configure datasources, mappings etc in there.

Regards,
Adam 


On Tuesday, February 17, 2015 at 10:15:35 AM UTC+11, Michael van Leest wrote:
I'm working on the same issue as well. Besides the points you mentioned, I'm also looking to install extensions at launch. 

Isn't there some way to do admin actions through command line? 

On Monday, February 16, 2015, Asher Densmore-Lynn <jes...@gmail.com> wrote:
Hello,

I'm trying to work out what the best way to configure Lucee is from a configuration-managment point of view. I've got suitable recipes for installing and configuration Apache, and I can install Lucee and then put in my own server.xml and web.xml files and configure the connector myself, that's not the problem.

But I'd like to configure Lucee itself before I try to boot my application on it -- set passwords, configure mappings and datasources. So far the "best" way I have to do this is to create an unserved directory, put a CFADMIN-employing template in it, boot Lucee, call that template, then delete that template because I don't especially want plaintext credentials anywhere they might get served.

It works most of the time, but it seems a little rickety and certainly it's not my preference. I have reasons for not wanting to load the app configuration into Application.cfc. Is there another way to do this I'm not seeing?

--
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.com.

To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/74a62a28-654a-4e78-bda6-e14f71b556f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Asher Densmore-Lynn

unread,
Feb 16, 2015, 11:03:14 PM2/16/15
to lu...@googlegroups.com
I know about that, Adam, but it's not what I want to do. I want the application to be entirely separate from the credentials it runs under; I don't want my cookbooks reaching into and trying to manage an app.cfc template, or having some really weird branching structure that has /every/ set of credentials in the app repo.

Adam Chapman

unread,
Feb 17, 2015, 12:51:49 AM2/17/15
to lu...@googlegroups.com

@asher Gotcha.. Sounds interesting, please post if you get this working..

Adam


--
You received this message because you are subscribed to a topic in the Google Groups "Lucee" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lucee/eIvK7YbHjGk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lucee+un...@googlegroups.com.

To post to this group, send email to lu...@googlegroups.com.

Chris Blackwell

unread,
Feb 17, 2015, 12:47:17 PM2/17/15
to lu...@googlegroups.com

What do you need to configure that's not in the web or server xml config? just push those up from source control when you deploy.

fwiw, we bundle our apps as standalone packages (app inside railo/lucee war & tomcat in a jar), mappings are predefined in lucee - web.xml and data sources are loaded on app init from an external config file (specified as a system property or loaded from a default location ).  The only bit I'm missing is updating the inspect template setting in lucee-web.xml automatically when bamboo does a build.

Chris

--
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.

To post to this group, send email to lu...@googlegroups.com.

Simon Hooker

unread,
Feb 18, 2015, 5:01:19 AM2/18/15
to lu...@googlegroups.com
I've deployed Lucee to AWS at present through use of a Custom AMI / Opsworks which seems to work well.  To manage deployments I have the instances automatically pulling in changes from the Mercurial repo.

Originally like you I had a config.cfm as part of my Chef recipes that was used to configure the individual context datasources etc however it was certainly not reliable, quite likely due to my inexperience with Chef.

It rather depends just how configurable the instance needs to be, but ultimately I expect that a combination of Custom AMI / Opsworks / Chef recipes may well be of use to you (if using AWS - if not then afraid I have no experience there)

David Sedeño

unread,
Feb 18, 2015, 6:34:55 AM2/18/15
to lu...@googlegroups.com
I use Ansible for provisioning and the only point I can't do is install extentions (I need memcached and mongodb).



I'd like to know how to set "Inspect Templates = never" during an automated cloud instance installation.

You can do this with:

  <cfadmin action="updatePerformanceSettings" type="server" password="mypass"  inspectTemplate="never">

See:

https://bitbucket.org/lucee/lucee/src/5b469e1d52c260ecc8d211871ff52e14f4e84621/lucee-cfml/lucee-admin/admin/server.cache.cfm?at=master

Regards,
David Sedeño

denstar

unread,
Feb 18, 2015, 12:32:22 PM2/18/15
to lu...@googlegroups.com
The installer uses scripts to set tomcat/nginx ports and whatnot, and
there's stuff in there for configuring mappings, DSNs, mail servers,
"inspect-template" settings, adding caches, etc. (very little of that is
exposed in the installer itself tho).

The nice thing is that it's mostly xpath-based, so as elements are added
to the "upstream" configs, they get pulled in automatically.

If you keep the configs themselves in the VCS, you have to keep them in
sync manually. Plus, having the settings abstracted is useful for other
tooling. :)

-den
> --
> You received this message because you are subscribed to the Google
> Groups "Lucee" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to lucee+un...@googlegroups.com
> <mailto:lucee+un...@googlegroups.com>.
> To post to this group, send email to lu...@googlegroups.com
> <mailto:lu...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/lucee/74a62a28-654a-4e78-bda6-e14f71b556f0%40googlegroups.com
> <https://groups.google.com/d/msgid/lucee/74a62a28-654a-4e78-bda6-e14f71b556f0%40googlegroups.com?utm_medium=email&utm_source=footer>.
Reply all
Reply to author
Forward
0 new messages