Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% set student = opts['names'][0] %}
- {% set syndic_stack = 'masterstack_' + student %}
- base_ec2:
- {% set master = 'saltclass-master-'+ student %}
- - {{master}}:
- make_master: True
- minion:
- master: saltmaster.example.com
- local_master: True
- grains:
- student: {{student}}
- role: classmaster
- {% for num in range(1,4) %}
- - saltclass-minion{{num}}-{{student}}:
- minion:
- grains:
- student: {{student}}
- role: classminion
- {% endfor %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement