From 1d97a193ad7a9c14e773c5ce08e53a5488b679c1 Mon Sep 17 00:00:00 2001 From: rsguera Date: Wed, 5 Feb 2025 12:00:26 +0100 Subject: [PATCH] fix: allow client_specific_config with extca_enabled in OpenVPN 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. --- manifests/client_specific_config.pp | 1 - spec/defines/openvpn_client_specific_config_spec.rb | 5 ----- 2 files changed, 6 deletions(-) diff --git a/manifests/client_specific_config.pp b/manifests/client_specific_config.pp index 17b785e1..241387a9 100644 --- a/manifests/client_specific_config.pp +++ b/manifests/client_specific_config.pp @@ -38,7 +38,6 @@ ) { if $manage_client_configs { Openvpn::Server[$server] - -> Openvpn::Client[$name] -> Openvpn::Client_specific_config[$name] } else { Openvpn::Server[$server] diff --git a/spec/defines/openvpn_client_specific_config_spec.rb b/spec/defines/openvpn_client_specific_config_spec.rb index 93ea09e1..d4cccf6b 100644 --- a/spec/defines/openvpn_client_specific_config_spec.rb +++ b/spec/defines/openvpn_client_specific_config_spec.rb @@ -6,18 +6,13 @@ on_supported_os.each do |os, facts| context "on #{os}" do let(:pre_condition) do - [ 'openvpn::server { "test_server": country => "CO", province => "ST", city => "Some City", organization => "example.org", email => "testemail@example.org" - }', - 'openvpn::client { "test_client": - server => "test_server" }' - ].join end let(:facts) do facts