From 1015c14e82c4ee12a663631a027ac680baca403f Mon Sep 17 00:00:00 2001 From: Marcel Weinberg Date: Sun, 11 Jul 2021 01:29:39 +0200 Subject: [PATCH] Set node 14 as the default and do not distinguish between st2chatops versions any longer --- README.md | 2 +- roles/StackStorm.nodejs/defaults/main.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2b8de704..06b15c3b 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ Below is the list of variables you can redefine in your playbook to customize st | `st2web_ssl_certificate_key` | `null` | String with custom SSL certificate secret key (`.key`). If not provided, self-signed certificate will be generated. | `st2web_nginx_config` | `null` | String with a custom nginx configuration file (`st2.conf`). If not provided, the default st2.conf will be used. | **st2chatops** -| `nodejs_major_version` | `14` | The default for releases before StackStorm 3.5.0 is Nodejs 10. Adapt the version to your requirements if you have a special setup that's not covered by the defaults. +| `nodejs_major_version` | `14` | The default fits st2chatops version >= 3.5.0. | `st2chatops_version` | `latest` | st2chatops version to install. `present` to install available package, `latest` to get automatic updates, or pin it to numeric version like `2.2.0` or with revision like `2.2.0-1`. | `st2chatops_st2_api_key` | | st2 API key to be updated in st2chatops.env using "st2 apikey create -k" in a task | `st2chatops_hubot_adapter` | | Hubot Adapter to be used for st2chatops. Default is `shell`, but should be changed to one of the [`supported adapters`](`https://github.com/StackStorm/ansible-st2/blob/master/roles/st2chatops/vars/main.yml`).[**Required**] diff --git a/roles/StackStorm.nodejs/defaults/main.yml b/roles/StackStorm.nodejs/defaults/main.yml index 3285a31c..e265254f 100644 --- a/roles/StackStorm.nodejs/defaults/main.yml +++ b/roles/StackStorm.nodejs/defaults/main.yml @@ -1,3 +1,3 @@ --- # nodejs version to install -nodejs_major_version: "{% if st2chatops_version == 'latest' or st2chatops_version is version('3.5.0', '>=') %}14{% else %}10{% endif %}" +nodejs_major_version: "14"