Kaynağa Gözat

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
tags/v0.57.0
Raphaël Hertzog 10 yıl önce
ebeveyn
işleme
339adddfcc
9 değiştirilmiş dosya ile 54 ekleme ve 0 silme
  1. +14
    -0
      README.rst
  2. +2
    -0
      salt/pkgrepo/absent.sls
  3. +7
    -0
      salt/pkgrepo/debian/absent.sls
  4. +21
    -0
      salt/pkgrepo/debian/init.sls
  5. BIN
      salt/pkgrepo/debian/saltstack.gpg
  6. +2
    -0
      salt/pkgrepo/debian/sources.list
  7. +2
    -0
      salt/pkgrepo/init.sls
  8. +3
    -0
      salt/pkgrepo/ubuntu/absent.sls
  9. +3
    -0
      salt/pkgrepo/ubuntu/init.sls

+ 14
- 0
README.rst Dosyayı Görüntüle

Install a minion and configure it in `standalone mode Install a minion and configure it in `standalone mode
<docs.saltstack.com/en/latest/topics/tutorials/standalone_minion.html>`_. <docs.saltstack.com/en/latest/topics/tutorials/standalone_minion.html>`_.


``salt.pkgrepo``
----------------

Enable 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#platform-specific-installation-instructions>`_.

``salt.pkgrepo.absent``
-----------------------

Undo the effects of ``salt.pkgrepo``.

``Configuration`` ``Configuration``
================= =================
Every option available in the templates can be set in pillar. Settings under 'salt' will be overridden by more specific settings under ``salt['master']``, ``salt['minion']`` or ``salt['cloud']`` Every option available in the templates can be set in pillar. Settings under 'salt' will be overridden by more specific settings under ``salt['master']``, ``salt['minion']`` or ``salt['cloud']``

+ 2
- 0
salt/pkgrepo/absent.sls Dosyayı Görüntüle

include:
- .{{ grains['os']|lower }}.absent

+ 7
- 0
salt/pkgrepo/debian/absent.sls Dosyayı Görüntüle

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

+ 21
- 0
salt/pkgrepo/debian/init.sls Dosyayı Görüntüle

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

BIN
salt/pkgrepo/debian/saltstack.gpg Dosyayı Görüntüle


+ 2
- 0
salt/pkgrepo/debian/sources.list Dosyayı Görüntüle

# saltstack
deb http://debian.saltstack.com/debian {{ grains['oscodename'] }}-saltstack main

+ 2
- 0
salt/pkgrepo/init.sls Dosyayı Görüntüle

include:
- .{{ grains['os']|lower }}

+ 3
- 0
salt/pkgrepo/ubuntu/absent.sls Dosyayı Görüntüle

drop-saltstack-pkgrepo:
pkgrepo.absent:
- ppa: saltstack/salt

+ 3
- 0
salt/pkgrepo/ubuntu/init.sls Dosyayı Görüntüle

saltstack-pkgrepo:
pkgrepo.managed:
- ppa: saltstack/salt

Yükleniyor…
İptal
Kaydet