GithubHelp home page GithubHelp logo

Comments (7)

kidk avatar kidk commented on August 24, 2024

@davidlballenger Does this cause the openvpn service not to start?

I've seen an issue like that on my Debian machine, and was just wandering if this is related. If so, could you share your changes?

Thanks

from stouts.openvpn.

ceribik avatar ceribik commented on August 24, 2024

I can confirm this issue. the @server part has to reflect the config name in /etc/openvpn

The server will not start if only "openvpn" is enabled.

from stouts.openvpn.

mowgli avatar mowgli commented on August 24, 2024

This is a particular stopper at all to use Stouts.openvpn on jessie. The bla@foo style only works with systemd. Usually you don't want to have a full blown systemd on your server(s).

For all others (and as I can see also with systemd) there is the way to enable the server via /etc/defaults/openvpn as usual.

So please revert to that style or make it at least overwritable. vars are not overwritable. I suggest to use ansible_service_mgr fact.

from stouts.openvpn.

conorsch avatar conorsch commented on August 24, 2024

To be clear, the initial issue presented here was resolved by #39.

This is a particular stopper at all to use Stouts.openvpn on jessie. The bla@foo style only works with systemd. Usually you don't want to have a full blown systemd on your server(s).

The new format works well for me under Jessie—are you modifying your Jessie boxes to use less systemd?

So please revert to that style or make it at least overwritable. vars are not overwritable.

You have a point there; role vars are quite aggressive and difficult to override. The most effective pragma I've seen for dealing with distro-specific vars files while preserving override capability is a two-pass approach with wrapper vars. @geerlingguy uses this quite a bit, e.g.

  1. https://github.com/geerlingguy/ansible-role-apache/blob/b280d7af54103270fda16f06f24dfa43b74c291d/vars/Debian.yml#L8-L10
  2. https://github.com/geerlingguy/ansible-role-apache/blob/b280d7af54103270fda16f06f24dfa43b74c291d/tasks/main.yml#L6-L9

Would an approach like the above work for your use case, @mowgli?

from stouts.openvpn.

mowgli avatar mowgli commented on August 24, 2024

No, I didn't modify it. I simply refused to use systemd. I simply use the more stable initv init system.

I guess that this would help. But where is that different then to just move it to defaults/main.yaml?

However, for this specific case there is already a fact "ansible_service_mgr" available that can be the values "sysvinit", "systemd" or "upstart" (maybe more). Just using the distribution to decide that value is not stable.

from stouts.openvpn.

mowgli avatar mowgli commented on August 24, 2024

I add #60 to fix the problem (themprarily).

As I mention there, the fix should work with systemd too (just the same way as all other setup on debian will work) The systemd @blabla stuff is just some non-compatible shortcut.

from stouts.openvpn.

nkakouros avatar nkakouros commented on August 24, 2024

We already have this in place.

from stouts.openvpn.

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.