Skip to content

Commit

Permalink
fix(freebsd): command at is already present in base system
Browse files Browse the repository at this point in the history
  • Loading branch information
sticky-note committed Jul 1, 2020
1 parent 34e5122 commit b6ab1b1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions salt/minion.sls
Original file line number Diff line number Diff line change
Expand Up @@ -122,18 +122,17 @@ salt-minion:
- file: remove-old-minion-conf-file
{%- else %}
{% if grains.os != 'MacOS' %}
{# MacOS has 'at' command; but there's no package to install #}
{% if grains.os_family not in ['MacOS', 'FreeBSD'] %}
{# MacOS and FreeBSD have the 'at' command; but there's no package to install #}
at:
pkg.installed: []
pkg.installed:
- require_in: restart-salt-minion
{% endif %}
restart-salt-minion:
cmd.run:
- name: echo salt-call --local service.restart {{ salt_settings.minion_service }} | at now + 1 minute
- order: last
- require:
- pkg: at
- onchanges:
{%- if salt_settings.install_packages %}
{%- if grains.os == 'MacOS' and salt_settings.salt_minion_pkg_source %}
Expand Down

0 comments on commit b6ab1b1

Please sign in to comment.