Skip to content

Commit

Permalink
Use version number instead of default
Browse files Browse the repository at this point in the history
As requested in the pull request.
  • Loading branch information
chloesoe committed May 27, 2019
1 parent ed10b41 commit 0544190
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion manifests/revoke.pp
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,16 @@
provider => 'shell',
}
}
default: {
'2.0': {
exec { "revoke certificate for ${name} in context of ${server}":
command => ". ./vars && ./revoke-full ${name}; echo \"exit $?\" | grep -qE '(error 23|exit (0|2))' && touch revoked/${name}",
cwd => "${etc_directory}/openvpn/${server}/easy-rsa",
creates => "${etc_directory}/openvpn/${server}/easy-rsa/revoked/${name}",
provider => 'shell',
}
}
default: {
fail("unexepected value for EasyRSA version, got '${openvpn::easyrsa_version}', expect 2.0 or 3.0.")
}
}
}

0 comments on commit 0544190

Please sign in to comment.