aboutsummaryrefslogtreecommitdiff
path: root/manifests/authenticator
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-01-10 12:56:33 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2023-01-12 15:07:57 +0100
commit0a07215d422f8f606a41d822436e6c6dd93d001f (patch)
tree3e335e7fb5e3b03b90fdef953bf7be8afef73ff8 /manifests/authenticator
parentConvert to pdk module. (diff)
downloadhugonikanor-letsencrypt-0a07215d422f8f606a41d822436e6c6dd93d001f.tar.gz
hugonikanor-letsencrypt-0a07215d422f8f606a41d822436e6c6dd93d001f.tar.xz
Working product.
Diffstat (limited to 'manifests/authenticator')
-rw-r--r--manifests/authenticator/nginx.pp22
1 files changed, 22 insertions, 0 deletions
diff --git a/manifests/authenticator/nginx.pp b/manifests/authenticator/nginx.pp
new file mode 100644
index 0000000..971c4ed
--- /dev/null
+++ b/manifests/authenticator/nginx.pp
@@ -0,0 +1,22 @@
+# Sets up nginx specific configuration, and provides access to
+# variables for enterpolating into nginx configurations
+#
+# These use the default cert name
+# @example
+# nginx::resource::server { 'servername':
+# * => $letsescrypt::nginx::server_ssl
+# }
+# $letsencrypt::nginx::location_ssl
+# @param certbot_plugin_package
+# Name of the system package providing this plugin.
+# Populated through hiera.
+# @param manage_package
+# If this class should manage the package.
+class letsencrypt::authenticator::nginx (
+ String $certbot_plugin_package,
+ Boolean $manage_package = true,
+) {
+ if $manage_package {
+ ensure_packages([$certbot_plugin_package])
+ }
+}