Skip to content

Commit 46f9dd4

Browse files
authored
Merge pull request #63 from LM3CORP/master
pass hiera_config argument to puppet_apply
2 parents 6f79b8e + ba3d4e3 commit 46f9dd4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/beaker-puppet/helpers/puppet_helpers.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,8 @@ def bounce_service host, service, curl_retries = nil, port = nil
434434
# path separator character. (The POSIX path separator
435435
# is ‘:’, and the Windows path separator is ‘;’.)
436436
#
437+
# @option opts [String] :hiera_config The path of the hiera.yaml configuration.
438+
#
437439
# @option opts [String] :debug (false) If this option exists,
438440
# the "--debug" command line parameter
439441
# will be passed to the 'puppet apply' command.
@@ -461,6 +463,7 @@ def apply_manifest_on(host, manifest, opts = {}, &block)
461463
puppet_apply_opts[:trace] = nil if opts[:trace]
462464
puppet_apply_opts[:parser] = 'future' if opts[:future_parser]
463465
puppet_apply_opts[:modulepath] = opts[:modulepath] if opts[:modulepath]
466+
puppet_apply_opts[:hiera_config] = opts[:hiera_config] if opts[:hiera_config]
464467
puppet_apply_opts[:noop] = nil if opts[:noop]
465468

466469
# From puppet help:

0 commit comments

Comments
 (0)