Comments (7)
@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.
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.
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.
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.
- https://github.com/geerlingguy/ansible-role-apache/blob/b280d7af54103270fda16f06f24dfa43b74c291d/vars/Debian.yml#L8-L10
- 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.
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.
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.
We already have this in place.
from stouts.openvpn.
Related Issues (20)
- Conditional check fails HOT 4
- comp-lzo option deprecated HOT 1
- Task 'Setup bridge' not executed when 'openvpn_bridge' is populated
- Upload inline scripts fails HOT 1
- openvpn_tls_key not included in client zip files
- Fail when no openssl.cfn file in easy-rsa HOT 2
- [Bug] ip_forward not configured
- No more client revocation feature HOT 2
- [Feature] Send credentials by mail
- [Bug] openvpn_tls_key file is read before creation HOT 5
- Failed to initialise openvpn-auth-ldap.so plugin
- 'auth-client.sh HOT 1
- I have error in log with execve HOT 3
- Restart network HOT 2
- Client/Server question for client.zip and error client HOT 1
- [bug] - if true where are user and password in the client?
- CLR
- Prevent creation of network bridge
- Revoking users
- on readme support debian 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stouts.openvpn.