From 821f90b55e6c0e53e5965cafd9baa4034a7c9dbf Mon Sep 17 00:00:00 2001 From: Simon Pasquier Date: Wed, 21 Oct 2015 17:01:05 +0200 Subject: [PATCH] Generate Hiera data as soon as possible The Hiera data from the LMA collector plugin is used by other plugins such as the LMA Infrastructure Alerting plugin so it needs to be available right after checking that the configuration is valid. Change-Id: Id2902c5091a715f05ab936820991ec96d8b59962 --- tasks.yaml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/tasks.yaml b/tasks.yaml index fe0712cb4..912822f0f 100644 --- a/tasks.yaml +++ b/tasks.yaml @@ -7,6 +7,16 @@ puppet_modules: puppet/modules timeout: 300 +# The Hiera data needs to be populated first so that other plugins (eg LMA +# Infrastructure Alerting) can use it +- role: '*' + stage: post_deployment/8000 + type: puppet + parameters: + puppet_manifest: puppet/manifests/hiera_override.pp + puppet_modules: puppet/modules + timeout: 600 + # The following tasks are executed in the order they are declared # We need to control what is deployed when we install a new package. So @@ -20,14 +30,6 @@ puppet_modules: puppet/modules timeout: 600 -- role: '*' - stage: post_deployment/8200 - type: puppet - parameters: - puppet_manifest: puppet/manifests/hiera_override.pp - puppet_modules: puppet/modules - timeout: 600 - - role: '*' stage: post_deployment/8200 type: puppet