-
-
Notifications
You must be signed in to change notification settings - Fork 197
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
Mr #169
Mr #169
Changes from 6 commits
3ab62d9
ac61e09
8da1791
f999323
335e7c5
955d601
0f6f578
268de48
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,7 +58,7 @@ | |
Openvpn::Revoke[$name] | ||
|
||
exec { "revoke certificate for ${name} in context of ${server}": | ||
command => ". ./vars && ./revoke-full ${name} ; test $? -eq 2 && touch revoked/${name}", | ||
command => ". ./vars && ./revoke-full ${name}; echo \"exit $?\" | grep -qE '(error 23|exit (0|2))' && touch revoked/${name}", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What kind of problem does this solve? Doesn't your version of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This part you might want to skip because the problem arose only when working with OpenSSL 1.0.1-4 - available in Ubuntu Precise: This version doesn't exit with '2' but shows 'error 23' exactly as newer versions would do. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What do you mean is not correct? The last part of your comment about the "limited set"? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry for the confusion, it's working correctly for Ubuntu Precise and Ubuntu Trusty with this fix. |
||
cwd => "/etc/openvpn/${server}/easy-rsa", | ||
creates => "/etc/openvpn/${server}/easy-rsa/revoked/${name}", | ||
provider => 'shell', | ||
|
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.
Do I understand this line correctly as that the following replacements will be done?
.
=>\.
@
=>\@
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.
This is true.
It was required for us as we use full e-mail addresses in resource title. The former version works fine as long as simple user names are used (plain alphanumeric). In our case, Perl's regular expression handling would treat those characters special and in turns wont match properly.