|
3 | 3 |
|
4 | 4 | {%- set tplroot = tpldir.split('/')[0] %}
|
5 | 5 | {%- import_yaml tplroot ~ "/defaults.yaml" as default_settings with context %}
|
| 6 | +{%- import_yaml tplroot ~ "/osarchmap.yaml" as osarchmap with context %} |
6 | 7 | {%- import_yaml tplroot ~ "/osfamilymap.yaml" as osfamilymap with context %}
|
7 | 8 | {%- import_yaml tplroot ~ "/osmap.yaml" as osmap with context %}
|
8 |
| -{%- import_yaml tplroot ~ "/osarchmap.yaml" as osarchmap with context %} |
| 9 | +{%- import_yaml tplroot ~ "/osfingermap.yaml" as osfingermap with context %} |
9 | 10 |
|
10 | 11 | {%- set _config = salt['config.get'](tplroot, default={}) %}
|
11 | 12 | {%- set defaults = salt['grains.filter_by'](
|
12 | 13 | default_settings,
|
13 | 14 | default=tplroot,
|
14 |
| - merge=salt['grains.filter_by']( osfamilymap, grain='os_family', |
15 |
| - merge=salt['grains.filter_by']( osmap, grain='os', |
16 |
| - merge=salt['grains.filter_by']( osarchmap, grain='osarch', |
17 |
| - merge=salt['grains.filter_by']( _config, default='lookup' |
| 15 | + merge=salt['grains.filter_by']( osarchmap, grain='osarch', |
| 16 | + merge=salt['grains.filter_by']( osfamilymap, grain='os_family', |
| 17 | + merge=salt['grains.filter_by']( osmap, grain='os', |
| 18 | + merge=salt['grains.filter_by']( osfingermap, grain='osfinger', |
| 19 | + merge=salt['grains.filter_by']( _config, default='lookup' |
| 20 | + ) |
18 | 21 | )
|
19 | 22 | )
|
20 | 23 | )
|
|
0 commit comments