Skip to content

Instantly share code, notes, and snippets.

@lindenle
Last active December 12, 2015 09:59
Show Gist options
  • Save lindenle/4756005 to your computer and use it in GitHub Desktop.
Save lindenle/4756005 to your computer and use it in GitHub Desktop.
puppet range inline
in command line:
puppet apply -e '$a=inline_template("<%= (1..10).step(2).to_a -%>") notify { "$a" : }'
in node:
$odd_ch=inline_template("<%= (1..71).step(2).to_a -%>")
@lindenle
Copy link
Author

Failed to parse inline template: no block given at /vagrant/ril_nodes/manifests/sites.d/mum1.r4g.com.d/stval01p1.pp:77 on node

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment