Procházet zdrojové kódy

Merge pull request #358 from iustinam/pkgver

Add configuration for packages version
tags/v0.57.0
Javier Bértoli před 6 roky
rodič
revize
fc202490a3
Žádný účet není propojen s e-mailovou adresou tvůrce revize
8 změnil soubory, kde provedl 24 přidání a 0 odebrání
  1. +3
    -0
      pillar.example
  2. +3
    -0
      salt/api.sls
  3. +3
    -0
      salt/cloud.sls
  4. +3
    -0
      salt/master.sls
  5. +3
    -0
      salt/minion.sls
  6. +3
    -0
      salt/ssh.sls
  7. +3
    -0
      salt/standalone.sls
  8. +3
    -0
      salt/syndic.sls

+ 3
- 0
pillar.example Zobrazit soubor

@@ -14,6 +14,9 @@ salt:
# install Salt via git/pip/etc.)
install_packages: True

# Optional: set salt version (if install_packages is set to True)
version: 2017.7.2-1.el7

# to overwrite map.jinja salt packages
lookup:
salt_master: 'salt-master'

+ 3
- 0
salt/api.sls Zobrazit soubor

@@ -7,6 +7,9 @@ salt-api:
{% if salt_settings.install_packages %}
pkg.installed:
- name: {{ salt_settings.salt_api }}
{%- if salt_settings.version is defined %}
- version: {{ salt_settings.version }}
{%- endif %}
{% endif %}
service.running:
- enable: True

+ 3
- 0
salt/cloud.sls Zobrazit soubor

@@ -20,6 +20,9 @@ salt-cloud-pip-packages:
salt-cloud:
pkg.installed:
- name: {{ salt_settings.salt_cloud }}
{%- if salt_settings.version is defined %}
- version: {{ salt_settings.version }}
{%- endif %}
{%- if salt_settings.use_pip %}
- require:
- pip: salt-cloud-pip-packages

+ 3
- 0
salt/master.sls Zobrazit soubor

@@ -4,6 +4,9 @@ salt-master:
{% if salt_settings.install_packages %}
pkg.installed:
- name: {{ salt_settings.salt_master }}
{%- if salt_settings.version is defined %}
- version: {{ salt_settings.version }}
{%- endif %}
{% endif %}
file.recurse:
- name: {{ salt_settings.config_path }}/master.d

+ 3
- 0
salt/minion.sls Zobrazit soubor

@@ -5,6 +5,9 @@ salt-minion:
{% if salt_settings.install_packages %}
pkg.installed:
- name: {{ salt_settings.salt_minion }}
{%- if salt_settings.version is defined %}
- version: {{ salt_settings.version }}
{%- endif %}
{% endif %}
file.recurse:
- name: {{ salt_settings.config_path }}/minion.d

+ 3
- 0
salt/ssh.sls Zobrazit soubor

@@ -4,6 +4,9 @@
ensure-salt-ssh-is-installed:
pkg.installed:
- name: {{ salt_settings.salt_ssh }}
{%- if salt_settings.version is defined %}
- version: {{ salt_settings.version }}
{%- endif %}
{% endif %}

ensure-roster-config:

+ 3
- 0
salt/standalone.sls Zobrazit soubor

@@ -4,6 +4,9 @@ salt-minion:
{% if salt_settings.install_packages %}
pkg.installed:
- name: {{ salt_settings.salt_minion }}
{%- if salt_settings.version is defined %}
- version: {{ salt_settings.version }}
{%- endif %}
{% endif %}
file.recurse:
- name: {{ salt_settings.config_path }}/minion.d

+ 3
- 0
salt/syndic.sls Zobrazit soubor

@@ -7,6 +7,9 @@ salt-syndic:
{% if salt_settings.install_packages %}
pkg.installed:
- name: {{ salt_settings.salt_syndic }}
{%- if salt_settings.version is defined %}
- version: {{ salt_settings.version }}
{%- endif %}
{% endif %}
service.running:
- enable: True

Načítá se…
Zrušit
Uložit