summaryrefslogtreecommitdiffstats
path: root/packer
diff options
context:
space:
mode:
authorJessica Wagantall <jwagantall@linuxfoundation.org>2020-03-16 09:28:18 -0700
committerJessica Wagantall <jwagantall@linuxfoundation.org>2020-03-16 16:29:38 +0000
commitdbba0aa4c389e717f043d50d5653d7ac1cb34011 (patch)
tree8b6a02c7a5c3c7c537c1ea872f33a4eb6892f657 /packer
parent4bb9cac2b43283583533c9a32fbb4d4162e8074a (diff)
Fix NPM dependency order
Some NPM packages need a specific order of install and one library in particular is just needed for Ubuntu 18 Issue-ID: CIMAN-33 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org> Change-Id: I1c22f3ed7916151c6bde7d1e6de41636be93ff59
Diffstat (limited to 'packer')
-rw-r--r--packer/provision/local-docker.yaml28
1 files changed, 22 insertions, 6 deletions
diff --git a/packer/provision/local-docker.yaml b/packer/provision/local-docker.yaml
index 2267a2509..6fce67a1b 100644
--- a/packer/provision/local-docker.yaml
+++ b/packer/provision/local-docker.yaml
@@ -106,7 +106,25 @@
become: true
when: ansible_distribution == 'Ubuntu'
- - name: Install base packages
+ - name: Install nodejs-dev dep for npm
+ apt:
+ name:
+ - nodejs-dev
+ update_cache: yes
+ state: fixed
+ become: true
+ when: ansible_distribution == 'Ubuntu'
+
+ - name: Install nodejs-dev 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 supporting packages
apt:
name:
- unzip
@@ -116,8 +134,6 @@
- make
- sshuttle
- netcat
- - nodejs-dev
- - libssl1.0-dev
- libssl-dev
- libffi-dev
- xmlstarlet
@@ -130,16 +146,16 @@
- crudini
- maven
- python-ncclient
- - nodejs
- - npm
update_cache: yes
state: fixed
become: true
when: ansible_distribution == 'Ubuntu'
- - name: Install npm addon packages
+ - name: Install npm and addon packages
apt:
name:
+ - nodejs
+ - npm
- node-gyp
update_cache: yes
state: fixed