-
-
Notifications
You must be signed in to change notification settings - Fork 198
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
Fix path for crl_auto_renew with easy_rsa 3.0 #437
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Consider to add an test case for this. :) |
@cible in fact you have to test if the puppet exec with command correct exists.
With exec resource itself is already including. The command parameter needs to be added, like (just an example): it { is_expected.to contain_exec('renew crl.pem on test_server').with('command' => './easyrsa gen-crl && cp ./keys/crl.pem /etc/openvpn/server/crl.pem') } } In worse, an additional condition for easy-rsa 2.0 and 3.0 is needed |
Sorry, I'm pretty bad with those kind of tests. Does it look good for you, now? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Looks good! Can you please combine your 7 commits in a single one? From your working directory:
This will bring your editor listing all your commits. Keep the first line unchanged, and replace Then push your updated branch:
|
Add test for for crl.pem with easyrsa 2.0 & 3.0
Pull Request (PR) description
Small patch to fix the path of crl.pem introduced by #432 by @jkroepke
The cp fail with :
Certainly a cut and paste problem. In manifests/revoke.pp, $server is the correct variable but not in server.pp