mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2024-11-28 11:37:44 +01:00
339adddfcc
This state enables the official saltstack package repository in order to always benefit from the latest version. This state currently only works on Debian and Ubuntu, and aims to implement the installation recommendations of the official documentation: http://docs.saltstack.com/en/latest/topics/installation/index.html
22 lines
592 B
Plaintext
22 lines
592 B
Plaintext
saltstack-apt-key:
|
|
file.managed:
|
|
- name: /etc/apt/trusted.gpg.d/saltstack.gpg
|
|
- source: salt://salt/pkgrepo/debian/saltstack.gpg
|
|
- user: root
|
|
- group: root
|
|
- mode: 644
|
|
|
|
saltstack-pkgrepo:
|
|
file.managed:
|
|
- name: /etc/apt/sources.list.d/saltstack.list
|
|
- source: salt://salt/pkgrepo/debian/sources.list
|
|
- user: root
|
|
- group: root
|
|
- mode: 644
|
|
- template: jinja
|
|
- require:
|
|
- file: saltstack-apt-key
|
|
# Order: 1 because we can't put a require_in on "pkg: salt-{master,minion}"
|
|
# because we don't know if they are used.
|
|
- order: 1
|