From 5d9bebbdb5fdbb836e2072c5a50a92e4b6ab8cd1 Mon Sep 17 00:00:00 2001 From: Joachim Desroches Date: Tue, 16 Mar 2021 13:02:51 +0100 Subject: [PATCH] Fix remarks on __uacme_account. --- type/__uacme_account/man.rst | 4 +++- type/__uacme_account/manifest | 13 ++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) 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