From 643998d8272609bb0dc77e62ac22335186bb6185 Mon Sep 17 00:00:00 2001 From: Alexey Khivin Date: Mon, 27 Jun 2016 14:00:14 +0300 Subject: [PATCH] [Puppet] Sync parameter to putHieraData added Change-Id: Ib5210c608e66e2b4317a148f6b4b4a4f5993082f --- .../Puppet/package/Classes/PuppetInstance.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/murano-apps/Puppet/package/Classes/PuppetInstance.yaml b/murano-apps/Puppet/package/Classes/PuppetInstance.yaml index 9fa828a..3b5802b 100644 --- a/murano-apps/Puppet/package/Classes/PuppetInstance.yaml +++ b/murano-apps/Puppet/package/Classes/PuppetInstance.yaml @@ -118,15 +118,20 @@ Methods: # # This method just adds the data to the inner buffer. # The values related to the keys which are already exists will be updated - # method syncHieraData should be called to push all of the data to the - # instance # putHieraData: Arguments: - data: - Contract: {} + - data: + Contract: {} + - sync: + # if false then data is not to be sent to an instance immediately + Contract: $.bool().notNull() + Default: true Body: - - $.hiera.putData($data) + - $this.hiera.putData($data) + - If: $sync + Then: + - $this.hiera.syncronize($this) # # Apply puppet manifest to the particular instance