diff --git a/type/__uacme_account/man.rst b/type/__uacme_account/man.rst index a2539ff..be5efc6 100644 --- a/type/__uacme_account/man.rst +++ b/type/__uacme_account/man.rst @@ -8,8 +8,10 @@ cdist-type__uacme_account - Install uacme and register Let's Encrypt account. DESCRIPTION ----------- + 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 diff --git a/type/__uacme_account/manifest b/type/__uacme_account/manifest index 3f17d5e..0515853 100644 --- a/type/__uacme_account/manifest +++ b/type/__uacme_account/manifest @@ -1,3 +1,14 @@ #!/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