Skip to content

Instantly share code, notes, and snippets.

View aamerik's full-sized avatar

Alexey Amerik aamerik

View GitHub Profile
common.pp:
class profile::haproxy::common (
Hash $global_options,
) {
Class {'Haproxy:'
global_options => $global_options,
}
@aamerik
aamerik / README.md
Created December 5, 2018 17:20 — forked from bastman/README.md
parse erb templates from command line (standalone, cli, json)

Goal

  • provide cli command to render erb template
  • template params (bindings) to be provided using json format
  • use inputs from file (template.erb, params.json)
  • use inputs from cli options / parameters
  • render output to stdout OR to file

Why ?