Skip to content

Conversation

@damacus
Copy link
Member

@damacus damacus commented Nov 13, 2025

As described in issue #189, make settings in the client configs (E.G. `auth`, `cipher`, `compress`, etc) match their server counterparts. This eliminates warnings in the OpenVPN log about inconsistent option usage.

In addition, document how the `openvpn_user` resource works, including showing how additional configuration options can be added to client conf files (using `additional_vars` and `cookbook_user_conf`)

Signed-off-by: Josh Gitlin <[email protected]>
Parenthesize lazy blocks to make block association explicit and resolve
Lint/AmbiguousBlockAssociation warning.

Signed-off-by: Josh Gitlin <[email protected]>
Remove incorrect parentheses that caused Ruby syntax errors.
The original lazy { } syntax is correct for Chef resources.

Signed-off-by: Josh Gitlin <[email protected]>
Bring the bundled client templates into parity with the inline variant by passing through the computed compression flag, and ensure the client config writes a full compress directive so OpenVPN accepts the setting.

Co-authored-by: Josh Gitlin <jgitlin
pinnacle21.com>
Signed-off-by: Dan Webb <[email protected]>
@damacus damacus requested a review from a team as a code owner November 13, 2025 11:06
@damacus damacus enabled auto-merge (squash) November 13, 2025 11:06
@damacus damacus changed the title settings fix: align client configs with server settings Nov 13, 2025
Signed-off-by: Dan Webb <[email protected]>
Signed-off-by: Dan Webb <[email protected]>
Signed-off-by: Dan Webb <[email protected]>
@github-actions
Copy link

Slowest examples

Top 5 slowest examples (1.08 seconds, 100% of total time)
Example Description Time in seconds
spec/unit/recipes/server_spec.rb:39 openvpn::server When push_options & push_routes are set, on Ubuntu executes gencrl with correction parameters 1.07084
spec/unit/recipes/server_spec.rb:25 openvpn::server When push_options & push_routes are set, on Ubuntu makes a server.conf from template with dhcp options 0.00556
spec/unit/recipes/server_spec.rb:32 openvpn::server When push_options & push_routes are set, on Ubuntu makes a server.conf from template with multiple push routes 0.00355
spec/unit/recipes/server_spec.rb:62 openvpn::server When push_options & push_routes are set, on Ubuntu creates a world readable CRL file 0.00067
spec/unit/recipes/server_spec.rb:21 openvpn::server When push_options & push_routes are set, on Ubuntu converges successfully 0.00051

@damacus damacus merged commit e303518 into main Nov 13, 2025
16 checks passed
@damacus damacus deleted the settings branch November 13, 2025 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants