Skip to content

Instantly share code, notes, and snippets.

@dcarley
Created March 24, 2011 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcarley/885098 to your computer and use it in GitHub Desktop.
Save dcarley/885098 to your computer and use it in GitHub Desktop.
Puppet dynamic environments with extlookup
# Expect extlookup data to be parallel to manifest directory.
$extlookup_datadir = inline_template("<%= File.join(File.dirname(scope.lookupvar('settings::manifest')), '..', 'extdata') -%>")
$extlookup_precedence = ["%{fqdn}", "domain_%{domain}", "base"]
[puppetmasterd]
# Dynamic environments.
manifest = $confdir/environments/$environment/manifests/site.pp
modulepath = $confdir/environments/$environment/modules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment