Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update code to set status parameter optional #385

Merged
merged 1 commit into from
Oct 18, 2020

Conversation

smutel
Copy link

@smutel smutel commented Oct 15, 2020

Pull Request (PR) description

Currently the openvpn option called status is mandatory and set with /var/log/openvpn/${name}-status.log as default.
However this parameter is not mandatory in the openvpn config. If this parameter is omitted, every log will be append to openvpn.log.

@kenyon
Copy link
Member

kenyon commented Oct 15, 2020

Would be nice to also have a test for this.

@smutel
Copy link
Author

smutel commented Oct 16, 2020

I am not an expect with puppet and/or ruby but I can try ...
Could you please guide me ?

@kenyon
Copy link
Member

kenyon commented Oct 18, 2020

I am not an expect with puppet and/or ruby but I can try ...
Could you please guide me ?

In this file https://github.com/voxpupuli/puppet-openvpn/blob/master/spec/defines/openvpn_server_spec.rb you want to have a test that verifies that the status option does not appear in the config file when status_log is set to an empty string.

@smutel smutel force-pushed the SetStatusOptional branch from 70789be to ae1ecd5 Compare October 18, 2020 08:57
@smutel
Copy link
Author

smutel commented Oct 18, 2020

I added one test. Tell me if it's ok.

@kenyon kenyon force-pushed the SetStatusOptional branch from ae1ecd5 to 5dce685 Compare October 18, 2020 10:43
@bastelfreak bastelfreak merged commit c63389e into voxpupuli:master Oct 18, 2020
@bastelfreak bastelfreak added the enhancement New feature or request label Oct 18, 2020
@smutel smutel deleted the SetStatusOptional branch October 19, 2020 06:19
@smutel
Copy link
Author

smutel commented Oct 19, 2020

Do you plan to create a new tag soon ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants