Fix remarks on __uacme_account.

This commit is contained in:
sparrowhawk 2021-03-16 13:02:51 +01:00
parent 5e2a28d929
commit 5d9bebbdb5
No known key found for this signature in database
GPG key ID: 6778C9C29C02D691
2 changed files with 15 additions and 2 deletions
type/__uacme_account

View file

@ -8,8 +8,10 @@ cdist-type__uacme_account - Install uacme and register Let's Encrypt account.
DESCRIPTION DESCRIPTION
----------- -----------
This type is used to bootstrap acquiring certificates from the Let's Encrypt This type is used to bootstrap acquiring certificates from the Let's Encrypt
C.A. This type is expected to be used internally, by the `__uacme_obtain`. C.A by creating an account and accepting terms of use. The
`cdist-type__uacme_obtain(7)` type instances expect to depend on this type.
OPTIONAL PARAMETERS OPTIONAL PARAMETERS

View file

@ -1,3 +1,14 @@
#!/bin/sh #!/bin/sh
__package uacme os="$(cat "${__global:?}"/explorer/os)"
case "$os" in
"alpine"|"debian"|"ubuntu")
uacme_package=uacme
;;
*)
echo "__uacme_account is not yet implemented for os $os. Aborting." >&2;
exit 1;
esac
__package $uacme_package