2
0

Merge pull request #473 from sticky-note/fix/at-freebsd

fix(freebsd): command `at` is already present in base system
This commit is contained in:
Imran Iqbal 2020-07-01 05:47:41 +01:00 committed by GitHub
commit daaa04a102
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 %}