Coder Social home page Coder Social logo

EL 7 support about ansible-tomcat HOT 13 CLOSED

silpion avatar silpion commented on July 19, 2024
EL 7 support

from ansible-tomcat.

Comments (13)

 avatar commented on July 19, 2024

Hi,

systemd support right now is bad. This one tries to install a SysV script which is bad on EL7. Running tomcat with systemd requires jsvc, ... A lot of stuff which is currently not implemented, but we are working on it. Stay tuned.

from ansible-tomcat.

kakawait avatar kakawait commented on July 19, 2024

I have started EL7 support on my side. But first time playing with Ansible, if you have time to check modification I have committed on https://github.com/kakawait/ansible-tomcat/tree/el7-support (https://github.com/kakawait/ansible-tomcat/commit/1fd785abaed9e77107940143472d2a23179526cb).

If it is not so bad I can create a PR.

from ansible-tomcat.

 avatar commented on July 19, 2024

I'd greatly appreciate PR on systemd support, especially for jsvc with ansible_os_family == RedHat.

from ansible-tomcat.

kakawait avatar kakawait commented on July 19, 2024

Ok I will run integration tests before PR (just tested manually atm)... Coming soon :)

from ansible-tomcat.

kakawait avatar kakawait commented on July 19, 2024

Any reason to use JSVC over systemd directly to manage tomcat lifecycle?

from ansible-tomcat.

 avatar commented on July 19, 2024

Not an expert on that matter. From my understanding it's best to hand control over the processes to systemd completely, which is fine with jsvc. Wrapper like tanuki which in turn is managed with a shell script is not an option for systemd as systemd does not support running services without binaries. So either way it would be required to "wrap" tanuki binary or use jsvc.
Archlinux community suggests jsvc for java applications with systemd. Mostly these guys know what they are talking about. Long story short: I need to dive deeper into this.
Priority for now is

  • several fixes with local download and upload of redistributables
  • support for tomcat 8
  • fix systemd support.

from ansible-tomcat.

kakawait avatar kakawait commented on July 19, 2024

Ok no probs. I'm neither ops or devops, I'm just a developer so I used to take the shortest way (avoiding security or other aspect hihi).

Actually my fork works goods with jsvc on Centos7 but I will take much time to improve logging:

  • Jsvc is dumping tomcat log in -errfile instead of -outfile even there is no error (o.O).
  • I didn't find a way to create a catalina.out per CATALINA_BASE with correct owner (tomcat user)

from ansible-tomcat.

 avatar commented on July 19, 2024

Thanks for all the hints. I'll take all of them into account when I start on systemd/jsvc/wrapper stuff. I'll keep you updated.

from ansible-tomcat.

kakawait avatar kakawait commented on July 19, 2024

Some information about systemd vs jsvc (in case): http://stackoverflow.com/questions/28894008/what-benefit-do-i-get-from-jsvc-over-just-using-systemd

Otherwise thanks for quick support (and your ansible playbooks are really great, I have to change my old java playbook to yours ^^)

from ansible-tomcat.

 avatar commented on July 19, 2024

Todos marked earlier are all implemented now. I'll have to wait for internal PR before releasing to general public. Stay tuned.

from ansible-tomcat.

 avatar commented on July 19, 2024

Hi, have a look at feature/fix-systemd-instance-management branch. This will be the next release with fixes for all issues

from ansible-tomcat.

kakawait avatar kakawait commented on July 19, 2024

Nice I will check that at the end of week.

from ansible-tomcat.

 avatar commented on July 19, 2024

Implemented/fixed with current release.

from ansible-tomcat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.