mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2026-10-24 12:13:38 +02:00
Add new “salt.pkgrepo” state
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
This commit is contained in:
1 parent
c8c0781e8f
commit
339adddfcc
9 files changed
+54
No files matched your search
@@ -0,0 +1,2 @@
|
||||
include:
|
||||
- .{{ grains['os']|lower }}.absent
|
||||
@@ -0,0 +1,7 @@
|
||||
drop-saltstack-pkgrepo:
|
||||
file.absent:
|
||||
- name: /etc/apt/sources.list.d/saltstack.list
|
||||
|
||||
drop-saltstack-apt-key:
|
||||
file.absent:
|
||||
- name: /etc/apt/trusted.gpg.d/saltstack.gpg
|
||||
@@ -0,0 +1,21 @@
|
||||
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
|
||||
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
# saltstack
|
||||
deb http://debian.saltstack.com/debian {{ grains['oscodename'] }}-saltstack main
|
||||
@@ -0,0 +1,2 @@
|
||||
include:
|
||||
- .{{ grains['os']|lower }}
|
||||
@@ -0,0 +1,3 @@
|
||||
drop-saltstack-pkgrepo:
|
||||
pkgrepo.absent:
|
||||
- ppa: saltstack/salt
|
||||
@@ -0,0 +1,3 @@
|
||||
saltstack-pkgrepo:
|
||||
pkgrepo.managed:
|
||||
- ppa: saltstack/salt
|
||||
Reference in new issue
Block a user