Merge pull request #358 from iustinam/pkgver
Add configuration for packages version
This commit is contained in:
commit
fc202490a3
@ -14,6 +14,9 @@ salt:
|
|||||||
# install Salt via git/pip/etc.)
|
# install Salt via git/pip/etc.)
|
||||||
install_packages: True
|
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
|
# to overwrite map.jinja salt packages
|
||||||
lookup:
|
lookup:
|
||||||
salt_master: 'salt-master'
|
salt_master: 'salt-master'
|
||||||
|
@ -7,6 +7,9 @@ salt-api:
|
|||||||
{% if salt_settings.install_packages %}
|
{% if salt_settings.install_packages %}
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
- name: {{ salt_settings.salt_api }}
|
- name: {{ salt_settings.salt_api }}
|
||||||
|
{%- if salt_settings.version is defined %}
|
||||||
|
- version: {{ salt_settings.version }}
|
||||||
|
{%- endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
service.running:
|
service.running:
|
||||||
- enable: True
|
- enable: True
|
||||||
|
@ -20,6 +20,9 @@ salt-cloud-pip-packages:
|
|||||||
salt-cloud:
|
salt-cloud:
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
- name: {{ salt_settings.salt_cloud }}
|
- name: {{ salt_settings.salt_cloud }}
|
||||||
|
{%- if salt_settings.version is defined %}
|
||||||
|
- version: {{ salt_settings.version }}
|
||||||
|
{%- endif %}
|
||||||
{%- if salt_settings.use_pip %}
|
{%- if salt_settings.use_pip %}
|
||||||
- require:
|
- require:
|
||||||
- pip: salt-cloud-pip-packages
|
- pip: salt-cloud-pip-packages
|
||||||
|
@ -4,6 +4,9 @@ salt-master:
|
|||||||
{% if salt_settings.install_packages %}
|
{% if salt_settings.install_packages %}
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
- name: {{ salt_settings.salt_master }}
|
- name: {{ salt_settings.salt_master }}
|
||||||
|
{%- if salt_settings.version is defined %}
|
||||||
|
- version: {{ salt_settings.version }}
|
||||||
|
{%- endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
file.recurse:
|
file.recurse:
|
||||||
- name: {{ salt_settings.config_path }}/master.d
|
- name: {{ salt_settings.config_path }}/master.d
|
||||||
|
@ -5,6 +5,9 @@ salt-minion:
|
|||||||
{% if salt_settings.install_packages %}
|
{% if salt_settings.install_packages %}
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
- name: {{ salt_settings.salt_minion }}
|
- name: {{ salt_settings.salt_minion }}
|
||||||
|
{%- if salt_settings.version is defined %}
|
||||||
|
- version: {{ salt_settings.version }}
|
||||||
|
{%- endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
file.recurse:
|
file.recurse:
|
||||||
- name: {{ salt_settings.config_path }}/minion.d
|
- name: {{ salt_settings.config_path }}/minion.d
|
||||||
|
@ -4,6 +4,9 @@
|
|||||||
ensure-salt-ssh-is-installed:
|
ensure-salt-ssh-is-installed:
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
- name: {{ salt_settings.salt_ssh }}
|
- name: {{ salt_settings.salt_ssh }}
|
||||||
|
{%- if salt_settings.version is defined %}
|
||||||
|
- version: {{ salt_settings.version }}
|
||||||
|
{%- endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
ensure-roster-config:
|
ensure-roster-config:
|
||||||
|
@ -4,6 +4,9 @@ salt-minion:
|
|||||||
{% if salt_settings.install_packages %}
|
{% if salt_settings.install_packages %}
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
- name: {{ salt_settings.salt_minion }}
|
- name: {{ salt_settings.salt_minion }}
|
||||||
|
{%- if salt_settings.version is defined %}
|
||||||
|
- version: {{ salt_settings.version }}
|
||||||
|
{%- endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
file.recurse:
|
file.recurse:
|
||||||
- name: {{ salt_settings.config_path }}/minion.d
|
- name: {{ salt_settings.config_path }}/minion.d
|
||||||
|
@ -7,6 +7,9 @@ salt-syndic:
|
|||||||
{% if salt_settings.install_packages %}
|
{% if salt_settings.install_packages %}
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
- name: {{ salt_settings.salt_syndic }}
|
- name: {{ salt_settings.salt_syndic }}
|
||||||
|
{%- if salt_settings.version is defined %}
|
||||||
|
- version: {{ salt_settings.version }}
|
||||||
|
{%- endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
service.running:
|
service.running:
|
||||||
- enable: True
|
- enable: True
|
||||||
|
Loading…
Reference in New Issue
Block a user