git ssb

1+

dinoworm ๐Ÿ› / butt-as-a-service



Tree: 5dd0de9aec2519516e453b46919af8a1c764f3ef

Files: 5dd0de9aec2519516e453b46919af8a1c764f3ef / salt / state / cloud.sls

556 bytesRaw
1{% set hubs = salt['pillar.get']('hub.list', []) %}
2{% for hub in hubs %}
3
4{$ set provider = hub.provider %}
5{% set size = hub.size || 'small' %}
6{% set profile = salt['pillar.get']('cloud.' + provider + '_' + size, []) %}
7
8{{hub.name}}:
9 cloud.present:
10 - script: bootstrap-salt
11 - script_args: -P git v2017.7.2
12 {% for key, value in profile.items() %}
13 - {{ key }}: {{ value }}
14 {% endfor %}
15 - minion:
16 grains:
17 env: production
18 roles:
19 - minion
20 - hub
21 - pub
22
23{% endif %}
24
25{% endfor %}
26

Built with git-ssb-web