From 97016e1d4ae1a46fe1e21c8d437f208fa364b332 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sun, 23 Jan 2022 21:42:26 +0100 Subject: profiles::puppetagent add extra_args param. --- manifests/puppetagent.pp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'manifests/puppetagent.pp') 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, } } -- cgit v1.2.3