-
-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow 4 and 6 suffix inside proto to limit ip4 or ip6 connection only. #327
Conversation
Let me add some tests before merge. |
Tests added, Travis failure should not related here. |
@@ -110,6 +110,66 @@ | |||
it { is_expected.to contain_file('/etc/openvpn/test_server.conf').with_content(%r{^rcvbuf\s+393215$}) } | |||
end | |||
|
|||
context 'when using udp4' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be a context that shows that an error is thrown if an invalid entry for proto
is given.
Travis failure looks like a timeout. Restarted the job. |
Implement changes as requested. |
spec/defines/openvpn_server_spec.rb
Outdated
context 'when using tcp6' do | ||
let(:params) do | ||
{ | ||
'country' => 'CO', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this section has four spaces instead of two and is throwing style errors at https://travis-ci.org/voxpupuli/puppet-openvpn/jobs/488140662
spec/defines/openvpn_server_spec.rb
Outdated
context 'when using invalid value for proto' do | ||
let(:params) do | ||
{ | ||
'country' => 'CO', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same style issue here
Another question. Should I know that the module append From man page, only |
I don't follow you as the |
I miss the consistency between openvpn and module parameters. |
We should probably not append |
I would prefer to implement |
beaker still timeouts inside travis. |
Thanks @jkroepke ! |
Released in v8.1.0 |
Pull Request (PR) description
Since 8.0.0 it's not possible to choose
tcp4
ortcp6
asproto
for an openvpn server.This Pull Request (PR) fixes the following issues
N/A