From 63449610011b53f10a3e75d15ee24c7a81f28c84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Ara=C3=B1a=20Cruz?= Date: Sat, 19 Feb 2022 10:55:10 +0100 Subject: [PATCH] Hooks (draft) --- manifests/instance.pp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/manifests/instance.pp b/manifests/instance.pp index 85f820d..12229e2 100644 --- a/manifests/instance.pp +++ b/manifests/instance.pp @@ -214,6 +214,8 @@ $solr_initialize = false, $tags = [$::fqdn], + + $hooks = [], ) { # Allow for list of lists of tags, for hiera facility. @@ -417,4 +419,10 @@ tag => $_tags, } } + +############################ + $hooks.each |$hook| { + call($hook, $servername_real) + } } +