Skip to content

Instantly share code, notes, and snippets.

@jedi4ever
Created June 23, 2012 21:12
Show Gist options
  • Save jedi4ever/2980013 to your computer and use it in GitHub Desktop.
Save jedi4ever/2980013 to your computer and use it in GitHub Desktop.
# Relocating hiera directory within a pp file
# 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") -%>')
@jedi4ever
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment