Questions tagged [erb]

Embedded Ruby (ERB) is a templating language based on Ruby.

ERB (Embedded RuBy) is a feature of Ruby that enables you to conveniently generate any kind of text, in any quantity, from templates. The templates themselves combine plain text with Ruby code for variable substitution and flow control, making them easy to write and maintain.

2 questions
1
vote
1 answer

Get array output in puppet ERB from hiera

I have a array defined in the following format in hiera. master_servers: - "stage-01.com" - "stage-02.com" I am trying to populate the config file with ERB in the following format discovery.zen.ping.unicast.hosts: ["stage-01.com",…
nitins
  • 2,579
  • 15
  • 44
  • 68
0
votes
1 answer

Puppet - can I selectively notify a Service?

I have a Puppet script that handles things differently in different environments based on an if/else block. But I have a bunch of common file resource blocks at the bottom that apply to all environments. Currently, those blocks notify =>…
bdetweiler
  • 137
  • 5