mirror of
https://github.com/valitydev/salt-common.git
synced 2024-11-06 10:25:23 +00:00
Add states to update nodejs for >=kibana-bin-6.6.1
This commit is contained in:
parent
9612200954
commit
7f034ce8ac
@ -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
11
sls/lib/http-parser.sls
Normal 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
11
sls/lib/libuv.sls
Normal 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 %}
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user