Skip to content

Commit

Permalink
feat(tumbleweed): update version via. new oscodenamemap
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Jan 16, 2022
1 parent e5f9399 commit 3ce9ef2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
5 changes: 4 additions & 1 deletion node/map.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
{%- import_yaml tplroot ~ "/osfamilymap.yaml" as osfamilymap with context %}
{%- import_yaml tplroot ~ "/osmap.yaml" as osmap with context %}
{%- import_yaml tplroot ~ "/osfingermap.yaml" as osfingermap with context %}
{%- import_yaml tplroot ~ "/oscodenamemap.yaml" as oscodenamemap with context %}

{%- set _config = salt['config.get'](tplroot, default={}) %}
{%- set defaults = salt['grains.filter_by'](
Expand All @@ -16,7 +17,9 @@
merge=salt['grains.filter_by']( osfamilymap, grain='os_family',
merge=salt['grains.filter_by']( osmap, grain='os',
merge=salt['grains.filter_by']( osfingermap, grain='osfinger',
merge=salt['grains.filter_by']( _config, default='lookup'
merge=salt['grains.filter_by']( oscodenamemap, grain='oscodename',
merge=salt['grains.filter_by']( _config, default='lookup'
)
)
)
)
Expand Down
6 changes: 6 additions & 0 deletions node/oscodenamemap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
openSUSE Tumbleweed:
pkg:
name: nodejs16
7 changes: 6 additions & 1 deletion test/integration/default/controls/packages_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
package_name =
case platform[:family]
when 'suse'
'nodejs14'
case system.platform[:finger]
when 'opensuse-tumbleweed'
'nodejs16'
else
'nodejs14'
end
else
'nodejs'
end
Expand Down

0 comments on commit 3ce9ef2

Please sign in to comment.