Skip to content

Instantly share code, notes, and snippets.

@frozenfoxx
Last active April 22, 2016 20:46
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 frozenfoxx/88eaf82f04591ce61c2451656a007bf2 to your computer and use it in GitHub Desktop.
Save frozenfoxx/88eaf82f04591ce61c2451656a007bf2 to your computer and use it in GitHub Desktop.
Interpolating variables within a Puppet YAML Hiera file
somemodule::rubyver: "2.1.1"
somemodule::shellpath: "/Users/buildbot/.rvm/gems/ruby-%{hiera('somemodule::rubyver')}/bin:/Users/buildbot/.rvm/gems/ruby-%{hiera('somemodule::rubyver')}@global/bin:/Users/buildbot/.rvm/rubies/ruby-%{hiera('somemodule::rubyver')}/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/buildbot/.rvm/bin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment