Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow iterative generation #53

Open
alem0lars opened this issue Sep 8, 2017 · 0 comments
Open

Allow iterative generation #53

alem0lars opened this issue Sep 8, 2017 · 0 comments

Comments

@alem0lars
Copy link
Owner

alem0lars commented Sep 8, 2017

We should be able to map a single source into multiple targets during incarnation.

Usage example in meta.yml:

  <% var!(:peers).each do |peer| %>
    <%# here declare specific stuff that should be available in the template for current iteration %>
  - src:  ^peer$
    dst:  /etc/ppp/peers/<%= peer[:name] %>
    only: f?ppp
  <% end %>

Every incarnation should have specific variables set for the current iteration.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

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

No branches or pull requests

1 participant