summaryrefslogtreecommitdiff
path: root/manifests/puppetagent.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/puppetagent.pp')
-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,
}
}