Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- define if {
- file { "/var/$name": ensure => present }
- $ifarr += $name
- }
- class foo {
- $ifarr = []
- if {
- "a": ...;
- "b": ...;
- }
- file { "/etc/if": content => inline_template("<% ifarr.each do |val| %> <%= val %>; <% end %>") }
- }
Add Comment
Please, Sign In to add comment