Add fingermap for Ubuntu-18.04
[arvados-formula.git] / arvados / map.jinja
index 7ef4b339ad87ae159650e070f58bdc0c40d3c2d8..3b583f81c7912cd597449f1df1fe7e530a046fbd 100644 (file)
@@ -1,11 +1,15 @@
 # -*- coding: utf-8 -*-
 # vim: ft=jinja
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: Apache-2.0
 
 {#- Get the `tplroot` from `tpldir` #}
 {%- set tplroot = tpldir.split('/')[0] %}
 {#- Start imports as #}
 {%- import_yaml tplroot ~ "/defaults.yaml" as default_settings %}
 {%- import_yaml tplroot ~ "/osfamilymap.yaml" as osfamilymap %}
+{%- import_yaml tplroot ~ "/osfingermap.yaml" as osfingermap %}
 
 {#- Retrieve the config dict only once #}
 {%- set _config = salt['config.get'](tplroot, default={}) %}
         osfamilymap,
         grain='os_family',
         merge=salt['grains.filter_by'](
-          _config,
-          default='lookup'
+          osfingermap,
+          grain='osfinger',
+          merge=salt['grains.filter_by'](
+            _config,
+            default='lookup'
+          )
         )
       )
     )