Skip to content

Commit

Permalink
fix: allow client_specific_config with extca_enabled in OpenVPN
Browse files Browse the repository at this point in the history
Removed the dependency on openvpn::client when extca_enabled is set to true, enabling the use of client_specific_config without errors. This change improves compatibility with external CA configurations.
  • Loading branch information
rsguera committed Feb 5, 2025
1 parent 8cbff15 commit 1d97a19
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion manifests/client_specific_config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
) {
if $manage_client_configs {
Openvpn::Server[$server]
-> Openvpn::Client[$name]
-> Openvpn::Client_specific_config[$name]
} else {
Openvpn::Server[$server]
Expand Down
5 changes: 0 additions & 5 deletions spec/defines/openvpn_client_specific_config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,13 @@
on_supported_os.each do |os, facts|
context "on #{os}" do
let(:pre_condition) do
[
'openvpn::server { "test_server":

Check failure on line 9 in spec/defines/openvpn_client_specific_config_spec.rb

View workflow job for this annotation

GitHub Actions / Setup Test Matrix

Layout/IndentationWidth: Use 2 (not 4) spaces for indentation. (https://rubystyle.guide#spaces-indentation)

Check failure on line 9 in spec/defines/openvpn_client_specific_config_spec.rb

View workflow job for this annotation

GitHub Actions / Setup Test Matrix

Layout/IndentationWidth: Use 2 (not 4) spaces for indentation. (https://rubystyle.guide#spaces-indentation)
country => "CO",
province => "ST",
city => "Some City",
organization => "example.org",
email => "[email protected]"
}',
'openvpn::client { "test_client":
server => "test_server"
}'
].join
end
let(:facts) do
facts
Expand Down

0 comments on commit 1d97a19

Please sign in to comment.