[Hawkular-dev] how to avoid required sysprops

John Mazzitelli mazz at redhat.com
Thu Jan 28 08:31:34 EST 2016


I was hoping to avoid writing a custom "hawkular.sh" - we went down that road in rhq and while it was nice, it was just yet another customized piece that was annoying to have to test, maintain, and document (people couldn't just run "standalone.sh" like they are used to - they had to know to run this separate "thing"). Then we introduced rhqctl (both the installer and the script used to run), and all hell broke loose :) This is why I say we should try to go as long as possible not having a separate installer or run script. I'm not saying we won't end up having to do something like that, but it would be nice if we didn't have to. It could be we just can't do without them, but I am hoping that isn't the case though.

----- Original Message -----
> In the standalone.xml we can define system properties with default values.
> 
> But not sure what you mean by hook, a primitive way could be to create a
> bin/hawkular.sh or similar to call into standalone.sh or simply customize
> standalone.conf as well.
> 
> Not sure if you are refering to this.
> 
> But it is interesting topic as it is linked with the installer thread which I
> think we should continue talking about it and reach some agreement.
> 
> 
> 
> ----- Original Message -----
> > From: "John Mazzitelli" <mazz at redhat.com>
> > To: "Discussions around Hawkular development"
> > <hawkular-dev at lists.jboss.org>
> > Sent: Thursday, January 28, 2016 2:12:17 PM
> > Subject: [Hawkular-dev] how to avoid required sysprops
> > 
> > I saw Juca posted this in a github comment:
> > 
> > > That happens because the `keycloak.server.url` property is not set, so,
> > > it
> > > defaults to localhost:8080 . You can start the server with
> > > `-Dkeycloak.server.url=http://localhost:8180/auth`
> > > 
> > > ---
> > > Reply to this email directly or view it on GitHub:
> > > https://github.com/hawkular/hawkular-btm/pull/281#issuecomment-176169067
> > 
> > I think this is the problem I saw yesterday with my inventory going screwy
> > (not sure, but I was using port offset, and didn't set that sysprop).
> > 
> > I bring this up to ask - is there anything we can do to not require that
> > sysprop to be set? For example, is there some startup hook we can have that
> > sets this automatically? I don't know if it's possible, but, it is pretty
> > clear this is going to be a common problem that people will forget to set
> > this anytime they bind to a different address (using -b) or using a
> > different port offset.
> > 
> > Is there a JIRA on this so we can try to address it in the future?
> > 
> > I suppose if we do have some kind of installer, one solution would be the
> > installer would add this sysprop to the startup .conf file.
> > _______________________________________________
> > hawkular-dev mailing list
> > hawkular-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/hawkular-dev
> > 
> 


More information about the hawkular-dev mailing list