Commit 2610228e by Clinton Blackburn Committed by Clinton Blackburn

Installing nodeenv for discovery role

The nodeenv dependency is now installed by the Ansible play, rather than relying on the library being in the code base's requirements. This will allow us to better separate the installation of Python and Node/Bower dependencies.

ECOM-6590
parent a72e856d
...@@ -56,6 +56,26 @@ ...@@ -56,6 +56,26 @@
- install - install
- install:system-requirements - install:system-requirements
- name: install nodenv
pip:
name: "nodeenv"
version: "1.1.0"
# NOTE (CCB): Using the "virtualenv" option here doesn't seem to work.
executable: "{{ discovery_venv_dir }}/bin/pip"
become_user: "{{ discovery_user }}"
tags:
- install
- install:system-requirements
- name: create nodeenv
shell: "{{ discovery_venv_dir }}/bin/nodeenv {{ discovery_nodeenv_dir }} --node={{ discovery_node_version }} --prebuilt"
args:
creates: "{{ discovery_nodeenv_dir }}"
become_user: "{{ discovery_user }}"
tags:
- install
- install:system-requirements
- name: install application requirements - name: install application requirements
command: make production-requirements command: make production-requirements
args: args:
...@@ -76,15 +96,6 @@ ...@@ -76,15 +96,6 @@
- devstack - devstack
- devstack:install - devstack:install
- name: create nodeenv
shell: "{{ discovery_venv_dir }}/bin/nodeenv {{ discovery_nodeenv_dir }} --node={{ discovery_node_version }} --prebuilt"
args:
creates: "{{ discovery_nodeenv_dir }}"
become_user: "{{ discovery_user }}"
tags:
- install
- install:app-requirements
- name: install node dependencies - name: install node dependencies
npm: executable={{ discovery_nodeenv_bin }}/npm path={{ discovery_code_dir }} production=yes npm: executable={{ discovery_nodeenv_bin }}/npm path={{ discovery_code_dir }} production=yes
become_user: "{{ discovery_user }}" become_user: "{{ discovery_user }}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment