From ba3d4e36a9888910c5adfaf1fb4234f0ad18a750 Mon Sep 17 00:00:00 2001 From: lmayorga Date: Mon, 27 Aug 2018 10:02:39 -0400 Subject: [PATCH] add hiera_configuration --- lib/beaker-puppet/helpers/puppet_helpers.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/beaker-puppet/helpers/puppet_helpers.rb b/lib/beaker-puppet/helpers/puppet_helpers.rb index f7703bec..63ff2d04 100644 --- a/lib/beaker-puppet/helpers/puppet_helpers.rb +++ b/lib/beaker-puppet/helpers/puppet_helpers.rb @@ -434,6 +434,8 @@ def bounce_service host, service, curl_retries = nil, port = nil # path separator character. (The POSIX path separator # is ‘:’, and the Windows path separator is ‘;’.) # + # @option opts [String] :hiera_config The path of the hiera.yaml configuration. + # # @option opts [String] :debug (false) If this option exists, # the "--debug" command line parameter # will be passed to the 'puppet apply' command. @@ -461,6 +463,7 @@ def apply_manifest_on(host, manifest, opts = {}, &block) puppet_apply_opts[:trace] = nil if opts[:trace] puppet_apply_opts[:parser] = 'future' if opts[:future_parser] puppet_apply_opts[:modulepath] = opts[:modulepath] if opts[:modulepath] + puppet_apply_opts[:hiera_config] = opts[:hiera_config] if opts[:hiera_config] puppet_apply_opts[:noop] = nil if opts[:noop] # From puppet help: