View difference between Paste ID: 7NFV2YM6 and G8LcSLzj
SHOW: | | - or go back to the newest paste.
1
# pillar #
2
##########
3
namenode_boxes:
4
  box-001:
5
    name:
6
    ip:
7
  box-002:
8
    name:
9
    ip:
10
  box-003:
11
    name:
12
    ip:
13
14
# state file #
15
##############
16
{% for host, args in salt['pillar.get'](namenode_boxes).iteritems() %}
17
some-state-id-{{host}}:
18-
  name: {{args['name']}}
18+
  module.function:
19-
  ip: {{args['ip']}}
19+
    - name: {{args['name']}}
20
    - ip: {{args['ip']}}
21
{% endfor %}