From cc78681014930758dc63f90a18b0c1e46b8c483e Mon Sep 17 00:00:00 2001
From: drebs <drebs@riseup.net>
Date: Sun, 17 Apr 2022 11:30:06 -0300
Subject: [PATCH] Avoid catalog compilation error because of augeas

When augeas-tools is not installed, catalog compilation fails with the
following error:

    Error: Could not call 'find' on 'catalog': Error 500 on SERVER:
    Server Error: Evaluation Error: Error while evaluating a Resource
    Statement, Evaluation Error: Error while evaluating a Function Call,
    'versioncmp' parameter 'a' expects a String value, got Undef (file:
    /etc/puppet/code/environments/production/modules/augeas/manifests/lens.pp,
    line: 61, column: 24)
---
 Dockerfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile
index da3f4ef..cef1ecf 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,7 +2,7 @@ FROM debian:bullseye
 
 HEALTHCHECK --interval=10s --timeout=15s --retries=12 --start-period=3m CMD ["/usr/bin/curl", "-k", "-I", "https://127.0.0.1:8140"]
 
-RUN apt-get update -qq && apt install -y git puppet-master curl
+RUN apt-get update -qq && apt install -y git puppet-master curl augeas-tools
 RUN puppet config set autosign "true" --section master
 
 COPY entrypoint.sh /
-- 
GitLab