Created
June 23, 2012 21:12
-
-
Save jedi4ever/2980013 to your computer and use it in GitHub Desktop.
# Relocating hiera directory within a pp file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Relocating hiera directory within a pp file | |
$hiera_configdir = inline_template('<%= File.join(File.dirname(scope.lookupvar("settings::manifest")), "..", "hieradata") -%>') | |
$hiera_yaml_datadir = inline_template('<%= File.join(File.dirname(scope.lookupvar("settings::manifest")), "..", "hieradata") -%>') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
require 'rspec-puppet'
RSpec.configure do |c|
c.module_path = File.expand_path(File.join(File.dirname(FILE), '..','puppet','modules'))
c.manifest_dir = File.expand_path(File.join(File.dirname(FILE), '..','puppet','manifests'))
end