sous-chefs / openvpn

Development repository for the openvpn cookbook
https://supermarket.chef.io/cookbooks/openvpn
Apache License 2.0
98 stars 160 forks source link

Subnet not applied #196

Closed EugenMayer closed 8 months ago

EugenMayer commented 2 years ago

:ghost: Brief Description

Subnet settings are not applied

:pancakes: Cookbook version

current stable

:woman_cook: Chef-Infra Version

17

:tophat: Platform details

debian 11 / dokken

Steps To Reproduce

Steps to reproduce the behavior:

Wrapper cookbook with

default['openvpn']['subnet'] = '172.30.0.0'
default['openvpn']['netmask'] = '255.255.255.0'

:police_car: Expected behavior

server 172.30.0.0 255.255.255.0

in the server.conf

Instead the default server 10.8.0.0 255.255.0.0 is in there

Using this workaround works

default['openvpn']['config']['server'] = '172.30.0.0 255.255.255.0'