Skip to content

Commit

Permalink
feat(kitchen): reinstall udev since removed from pre-salted images
Browse files Browse the repository at this point in the history
* `packages-formula`:
  - saltstack-formulas/packages-formula@a81f2dd
* `systemd-formula`:
  - Automated
  • Loading branch information
myii committed Mar 30, 2020
1 parent 771777f commit 344fef2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ssf/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ ssf_node_anchors:
# An alternative method could be to use:
# `git describe --abbrev=0 --tags`
# yamllint disable rule:line-length rule:quoted-strings
title: "ci(kitchen): ensure '`'cron'`' installed on '`'Debian'`'"
body: '* Checked using https://github.com/myii/ssf-formula/pull/140'
title: "ci(kitchen): reinstall '`'udev'`' since removed from pre-salted images"
body: '* Automated using https://github.com/myii/ssf-formula/pull/141'
# yamllint enable rule:line-length rule:quoted-strings
github:
owner: 'saltstack-formulas'
Expand Down
7 changes: 7 additions & 0 deletions ssf/files/default/kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,15 @@ image: netmanagers/salt-{{ salt_ver }}-py{{ py_ver }}:{{ os | replace('/', '-')
{%- endif %}
{%- elif semrel_formula == 'packages' %}
{%- if [os, os_ver] in [['debian', 10], ['debian', 9]] %}
{%- do prov_cmds.append('- apt-get install --reinstall -y udev') %}
{%- do prov_cmds.append('- apt-get install -y snapd') %}
{%- endif %}
{%- elif semrel_formula == 'systemd' %}
{%- if os in ['fedora'] %}
{%- do prov_cmds.append('- dnf -y reinstall udev') %}
{%- elif os in ['arch-base'] %}
{%- do prov_cmds.append('- pacman --noconfirm -Syu systemd') %}
{%- endif %}
{%- endif %}
{#- Prepare the commands if available#}
{%- if prov_cmds %}
Expand Down

0 comments on commit 344fef2

Please sign in to comment.