salt-syndic: 'salt-syndic' | salt-syndic: 'salt-syndic' | ||||
salt-cloud: 'salt-cloud' | salt-cloud: 'salt-cloud' | ||||
salt-ssh: 'salt-ssh' | salt-ssh: 'salt-ssh' | ||||
pyinotify: 'python-pyinotify' the package to be installed for pyinotify | |||||
# Set which release of SaltStack to use, default to 'latest' | # Set which release of SaltStack to use, default to 'latest' | ||||
# To get the available releases: | # To get the available releases: |
salt['grains.get']('os')|lower + '/' + salt['grains.get']('osmajorrelease', osrelease)|string + '/amd64/' + salt_release + ' ' + salt['grains.get']('oscodename') + ' main', | salt['grains.get']('os')|lower + '/' + salt['grains.get']('osmajorrelease', osrelease)|string + '/amd64/' + salt_release + ' ' + salt['grains.get']('oscodename') + ' main', | ||||
'key_url': 'https://repo.saltstack.com/apt/' + salt['grains.get']('os')|lower + '/' + salt['grains.get']('osmajorrelease', osrelease)|string + '/amd64/' + salt_release + '/SALTSTACK-GPG-KEY.pub', | 'key_url': 'https://repo.saltstack.com/apt/' + salt['grains.get']('os')|lower + '/' + salt['grains.get']('osmajorrelease', osrelease)|string + '/amd64/' + salt_release + '/SALTSTACK-GPG-KEY.pub', | ||||
'libgit2': 'libgit2-22', | 'libgit2': 'libgit2-22', | ||||
'pyinotify': 'python-pyinotify', | |||||
'gitfs': { | 'gitfs': { | ||||
'pygit2': { | 'pygit2': { | ||||
'install_from_source': True, | 'install_from_source': True, |
- file: remove-old-minion-conf-file | - file: remove-old-minion-conf-file | ||||
{%- endif %} | {%- endif %} | ||||
{% if 'inotify' in salt_settings.get('minion', {}).get('beacons', {}) and salt_settings.get('pyinotify', False) %} | |||||
salt-minion-beacon-inotify: | |||||
pkg.installed: | |||||
- name: {{ salt_settings.pyinotify }} | |||||
- require_in: | |||||
- service: salt-minion | |||||
- watch_in: | |||||
- service: salt-minion | |||||
{% endif %} | |||||
{% if salt_settings.minion_remove_config %} | {% if salt_settings.minion_remove_config %} | ||||
remove-default-minion-conf-file: | remove-default-minion-conf-file: | ||||
file.absent: | file.absent: |