From: Bengt Thuree Date: Wed, 4 Mar 2020 02:01:27 +0000 (+1100) Subject: Workaround to install nodejs X-Git-Url: https://gerrit.onap.org/r/gitweb?p=ci-management.git;a=commitdiff_plain;h=1c1e1fa5cde8ba18320fdd151a00463fdc9b6c90 Workaround to install nodejs 18.04 images fails due to dependecy issues. Workaround to install package separately. Issue-ID: CIMAN-33 Signed-off-by: Bengt Thuree Change-Id: I00ba7081a106ab06a39bfb7b562d62d28851d897 --- diff --git a/packer/provision/local-builder.yaml b/packer/provision/local-builder.yaml index 61cc50980..162ac3f4d 100644 --- a/packer/provision/local-builder.yaml +++ b/packer/provision/local-builder.yaml @@ -52,6 +52,22 @@ become: true when: ansible_distribution == 'Ubuntu' + - name: Install libssl1.0-dev dep + apt: + name: libssl1.0-dev + update_cache: yes + state: fixed + become: true + when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04' + + - name: Install nodejs-dev dep for npm + apt: + name: nodejs-dev + update_cache: yes + state: fixed + become: true + when: ansible_distribution == 'Ubuntu' + - name: Install base packages apt: name: @@ -74,10 +90,19 @@ - crudini - maven - python-ncclient - - nodejs-dev - - node-gyp + update_cache: yes + become: true + when: ansible_distribution == 'Ubuntu' + + - name: Install npm and addon packages + apt: + name: - nodejs - npm + - node-gyp update_cache: yes + state: fixed become: true when: ansible_distribution == 'Ubuntu' + +