-
-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into chloesoe/VSHNOPS-1537
* master: Add tls_crypt Adjust clients $compression type to match servers
- Loading branch information
Showing
7 changed files
with
89 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -241,7 +241,7 @@ | |
'city' => 'Some City', | ||
'organization' => 'example.org', | ||
'email' => '[email protected]', | ||
'compression' => 'fake_compression', | ||
'compression' => 'compress lz4', | ||
'port' => '123', | ||
'proto' => 'udp', | ||
'group' => 'someone', | ||
|
@@ -293,7 +293,7 @@ | |
it { is_expected.to contain_file('/etc/openvpn/test_server.conf').with_content(%r{^proto\s+udp$}) } | ||
it { is_expected.not_to contain_file('/etc/openvpn/test_server.conf').with_content(%r{^proto\s+tls-server$}) } | ||
it { is_expected.to contain_file('/etc/openvpn/test_server.conf').with_content(%r{^port\s+123$}) } | ||
it { is_expected.to contain_file('/etc/openvpn/test_server.conf').with_content(%r{^fake_compression$}) } | ||
it { is_expected.to contain_file('/etc/openvpn/test_server.conf').with_content(%r{^compress lz4$}) } | ||
it { is_expected.to contain_file('/etc/openvpn/test_server.conf').with_content(%r{^group\s+someone$}) } | ||
it { is_expected.to contain_file('/etc/openvpn/test_server.conf').with_content(%r{^user\s+someone$}) } | ||
it { is_expected.to contain_file('/etc/openvpn/test_server.conf').with_content(%r{^log\-append\s+/var/log/openvpn/test_server\.log$}) } | ||
|
@@ -356,10 +356,29 @@ | |
key_cn: 'yolo', | ||
key_name: 'burp', | ||
key_ou: 'NSA', | ||
tls_auth: true) | ||
tls_static_key: true) | ||
} | ||
end | ||
|
||
context 'creating a server setting all parameters including tls_crypt' do | ||
let(:params) do | ||
{ | ||
'country' => 'CO', | ||
'province' => 'ST', | ||
'city' => 'Some City', | ||
'organization' => 'example.org', | ||
'email' => '[email protected]', | ||
'proto' => 'tcp6', | ||
'tls_crypt' => true | ||
} | ||
end | ||
|
||
it { is_expected.to contain_file('/etc/openvpn/test_server.conf').with_content(%r{^tls-crypt\s+/etc/openvpn/test_server/keys/ta.key$}) } | ||
|
||
# OpenVPN easy-rsa CA | ||
it { is_expected.to contain_openvpn__ca('test_server').with(tls_static_key: true) } | ||
end | ||
|
||
# tests dedicated to easyrsa version 2 | ||
context 'with easyrsa 2.0' do | ||
let(:facts) do | ||
|
@@ -377,7 +396,7 @@ | |
'city' => 'Some City', | ||
'organization' => 'example.org', | ||
'email' => '[email protected]', | ||
'compression' => 'fake_compression', | ||
'compression' => 'compress lz4', | ||
'port' => '123', | ||
'proto' => 'udp', | ||
'group' => 'someone', | ||
|
@@ -683,7 +702,7 @@ | |
'city' => 'Some City', | ||
'organization' => 'example.org', | ||
'email' => '[email protected]', | ||
'compression' => 'fake_compression', | ||
'compression' => 'compress lz4', | ||
'port' => '123', | ||
'proto' => 'udp', | ||
'group' => 'someone', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters