View difference between Paste ID: JpWndSsd and prUPq8qe
SHOW: | | - or go back to the newest paste.
1
#top.sls:
2-
base
2+
3
base:
4
  '*':
5
    - saltminion01_pillar
6-
    - minions.office-saltminion01.xxx.com.pillar     <====  ????
6+
  'minion01':
7
    - pillarfile01     
8
  'minion02':
9
    - pillarfile02
10
11-
├── pillar
11+
12-
│   ├── minions
12+
=============     OR      =====================
13-
│   │   └── office-saltminion01.xxx.com.pillar
13+
14-
│   └── top.sls
14+
15
  '*':
16
    - pillarFileForAllMinions
17
18
19
# pillarFileForAllMinions.sls:
20
21
{% if grains['id'] == 'minion01' %}
22
k1: value2
23
{% endif %}
24
{% if grains['id'] == 'minion02' %}
25
k1: value2
26
{% endif %}