summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-01-23 21:42:26 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-02-09 18:05:08 +0100
commit97016e1d4ae1a46fe1e21c8d437f208fa364b332 (patch)
tree4d05abc1b0074230f7b983debd0b47a79ae2472b
parentChange linux environment configuration. (diff)
downloadprofiles-97016e1d4ae1a46fe1e21c8d437f208fa364b332.tar.gz
profiles-97016e1d4ae1a46fe1e21c8d437f208fa364b332.tar.xz
profiles::puppetagent add extra_args param.
-rw-r--r--manifests/puppetagent.pp5
1 files changed, 4 insertions, 1 deletions
diff --git a/manifests/puppetagent.pp b/manifests/puppetagent.pp
index 3e65c8b..56e76c9 100644
--- a/manifests/puppetagent.pp
+++ b/manifests/puppetagent.pp
@@ -1,4 +1,6 @@
-class profiles::puppetagent {
+class profiles::puppetagent (
+ Hash $extra_args = {},
+) {
if defined(Class['profiles::puppetserver']) {
fail('Can only either be puppetagent or puppetserver (which is also a puppetagent), not both')
}
@@ -8,6 +10,7 @@ class profiles::puppetagent {
agent => true,
show_diff => true,
puppetmaster => $facts['extlib__puppet_config']['main']['server'],
+ * => $extra_args,
}
}