summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-04-24 18:58:59 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-04-24 18:58:59 +0200
commit202e569d11af2c70d2765d9917d9a1575c2ade52 (patch)
tree6e540b614aeb1b86dbf4c778021b7d68b110406f
parentAdd mu4web. (diff)
downloadprofiles-202e569d11af2c70d2765d9917d9a1575c2ade52.tar.gz
profiles-202e569d11af2c70d2765d9917d9a1575c2ade52.tar.xz
mu4web: made package name configurable.
-rw-r--r--manifests/mu4web.pp5
1 files changed, 4 insertions, 1 deletions
diff --git a/manifests/mu4web.pp b/manifests/mu4web.pp
index 8ffa2fb..8c60a2a 100644
--- a/manifests/mu4web.pp
+++ b/manifests/mu4web.pp
@@ -2,6 +2,8 @@
#
# Instanciates an nginx server, and a gunicorn instance.
#
+# @param package_name
+# Name of system package for mu4web
# @param server_name
# Where mu4web should be made available
# TODO Will currently CNAME that domain to gandalf.adrift.space
@@ -15,6 +17,7 @@
# @param secret_key
# Secret key for flask instance.
class profiles::mu4web (
+ String $package_name = 'mu4web',
String $server_name = 'mail.adrift.space',
String $wsgi_server = 'localhost',
Stdlib::Port $wsgi_port = 8095,
@@ -28,7 +31,7 @@ class profiles::mu4web (
cert_name => $profiles::certificate::cert_name,
}
- ensure_packages(['mu4web'])
+ ensure_packages([$package_name])
gunicorn::instance { 'mu4web':
app => 'mu4web.main:app',