Skip to content

Commit d6d7360

Browse files
committed
Use version number instead of default
As requested in the pull request.
1 parent 92cf6cd commit d6d7360

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

manifests/revoke.pp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,16 @@
4242
provider => 'shell',
4343
}
4444
}
45-
default: {
45+
'2.0': {
4646
exec { "revoke certificate for ${name} in context of ${server}":
4747
command => ". ./vars && ./revoke-full ${name}; echo \"exit $?\" | grep -qE '(error 23|exit (0|2))' && touch revoked/${name}",
4848
cwd => "${etc_directory}/openvpn/${server}/easy-rsa",
4949
creates => "${etc_directory}/openvpn/${server}/easy-rsa/revoked/${name}",
5050
provider => 'shell',
5151
}
5252
}
53+
default: {
54+
fail("unexepected value for EasyRSA version, got '${openvpn::easyrsa_version}', expect 2.0 or 3.0.")
55+
}
5356
}
5457
}

0 commit comments

Comments
 (0)