Add states to update nodejs for >=kibana-bin-6.6.1

This commit is contained in:
Antsiferov Grigory 2019-04-03 14:42:51 +03:00
parent 9612200954
commit 7f034ce8ac
4 changed files with 35 additions and 3 deletions

View File

@ -12,6 +12,7 @@ www-apps/kibana-bin:
pkg.installed:
- version: "{{ kibana_version }}"
- require:
- pkg: net-libs/nodejs
- portage_config: www-apps/kibana-bin
portage_config.flags:
- accept_keywords: ["~*"]

11
sls/lib/http-parser.sls Normal file
View File

@ -0,0 +1,11 @@
{% set libs_packaged = salt['pillar.get']('libs:packaged', False) %}
{% set http_parser_version = salt['pillar.get']('http-parser:version', '~>=2.9.0') %}
net-libs/http-parser:
pkg.latest:
- version: "{{ http_parser_version }}"
{% if libs_packaged %}
- binhost: force
{% else %}
- binhost: try
{% endif %}

11
sls/lib/libuv.sls Normal file
View File

@ -0,0 +1,11 @@
{% set libs_packaged = salt['pillar.get']('libs:packaged', False) %}
{% set libuv_version = salt['pillar.get']('libuv:version', '~>=1.25.0') %}
dev-libs/libuv:
pkg.latest:
- version: "{{ libuv_version }}"
{% if libs_packaged %}
- binhost: force
{% else %}
- binhost: try
{% endif %}

View File

@ -1,7 +1,16 @@
{% set nodejs_packaged = salt.pillar.get('nodejs:packaged', True) %}
{% set nodejs_version = salt.pillar.get('nodejs:version', '~=8.15.1') %}
{% set nodejs_use = salt.pillar..get('nodejs:use', ['npm']) %}
include:
- gentoo.makeconf
- lib.libuv
- lib.http-parser
net-libs/nodejs:
pkg.installed:
- version: ">=8.12.0[npm]"
- version: "{{ nodejs_version }}[{{ ','.join(nodejs_use) }}]"
{% if nodejs_packaged %}
- binhost: force
{% endif %}
- require:
- pkg: dev-libs/libuv
- pkg: net-libs/http-parser