0
0
mirror of https://github.com/saltstack-formulas/salt-formula.git synced 2024-12-26 09:06:11 +01:00
salt-formula/salt/pkgrepo/debian/install.sls

31 lines
1.0 KiB
Plaintext
Raw Normal View History

# -*- coding: utf-8 -*-
# vim: ft=sls
{% from "salt/map.jinja" import salt_settings with context %}
salt-pkgrepo-install-saltstack-debian-keyring:
file.managed:
- name: /usr/share/keyrings/salt-archive-keyring.gpg
- source: {{ salt_settings.pkgrepo_keyring }}
- source_hash: {{ salt_settings.pkgrepo_keyring_hash }}
- require_in:
- pkgrepo: salt-pkgrepo-install-saltstack-debian
salt-pkgrepo-install-saltstack-debian-remove-old-repo-file:
file.absent:
- name: /etc/apt/sources.list.d/saltstack.list
- require_in:
- pkgrepo: salt-pkgrepo-install-saltstack-debian
salt-pkgrepo-install-saltstack-debian:
pkgrepo.managed:
- humanname: SaltStack Debian Repo
- name: {{ salt_settings.pkgrepo }}
- file: /etc/apt/sources.list.d/salt.list
{% if salt_settings.get('key_url') is not none %}
- key_url: {{ salt_settings.key_url }}
{% endif %}
- clean_file: True
# Order: 3 because we can't put a require_in on "pkg: salt-{master,minion}"
# because we don't know if they are used.
- order: 3