Commit a709a332 by David Pollack

added chris-lea repo and changed all npm references to nodejs

parent 0965ee7c
...@@ -3,7 +3,7 @@ language: python ...@@ -3,7 +3,7 @@ language: python
python: python:
- "2.7" - "2.7"
install: install:
- "sudo apt-get install -y npm python-demjson" - "sudo apt-get install -y nodejs python-demjson"
- "pip install --allow-all-external -r requirements.txt" - "pip install --allow-all-external -r requirements.txt"
- "pip install --allow-all-external demjson" - "pip install --allow-all-external demjson"
script: script:
......
...@@ -634,8 +634,9 @@ sandbox_base_requirements: "{{ edxapp_code_dir }}/requirements/edx-sandbox/base ...@@ -634,8 +634,9 @@ sandbox_base_requirements: "{{ edxapp_code_dir }}/requirements/edx-sandbox/base
sandbox_local_requirements: "{{ edxapp_code_dir }}/requirements/edx-sandbox/local.txt" sandbox_local_requirements: "{{ edxapp_code_dir }}/requirements/edx-sandbox/local.txt"
sandbox_post_requirements: "{{ edxapp_code_dir }}/requirements/edx-sandbox/post.txt" sandbox_post_requirements: "{{ edxapp_code_dir }}/requirements/edx-sandbox/post.txt"
edxapp_chrislea_ppa: "ppa:chris-lea/node.js"
edxapp_debian_pkgs: edxapp_debian_pkgs:
- npm
# for compiling the virtualenv # for compiling the virtualenv
# (only needed if wheel files aren't available) # (only needed if wheel files aren't available)
- build-essential - build-essential
...@@ -657,7 +658,7 @@ edxapp_debian_pkgs: ...@@ -657,7 +658,7 @@ edxapp_debian_pkgs:
# misc # misc
- curl - curl
- ipython - ipython
- npm - nodejs
- ntp - ntp
# for shapely # for shapely
- libgeos-dev - libgeos-dev
......
...@@ -47,8 +47,12 @@ ...@@ -47,8 +47,12 @@
- "{{ edxapp_course_data_dir }}" - "{{ edxapp_course_data_dir }}"
- "{{ edxapp_upload_dir }}" - "{{ edxapp_upload_dir }}"
# adding chris-lea nodejs repo
- name: add ppas for current versions of nodejs
apt_repository: repo="{{ edxapp_chrislea_ppa }}"
- name: install system packages on which LMS and CMS rely - name: install system packages on which LMS and CMS rely
apt: pkg={{','.join(edxapp_debian_pkgs)}} state=present apt: pkg={{','.join(edxapp_debian_pkgs)}} state=present update_cache=yes
notify: notify:
- "restart edxapp" - "restart edxapp"
- "restart edxapp_workers" - "restart edxapp_workers"
......
...@@ -27,6 +27,8 @@ JENKINS_ADMIN_AWS_CREDENTIALS: !!null ...@@ -27,6 +27,8 @@ JENKINS_ADMIN_AWS_CREDENTIALS: !!null
jenkins_admin_role_name: jenkins_admin jenkins_admin_role_name: jenkins_admin
# repo for nodejs
jenkins_chrislea_ppa: "ppa:chris-lea/node.js"
# #
# OS packages # OS packages
# #
...@@ -38,7 +40,6 @@ jenkins_admin_debian_pkgs: ...@@ -38,7 +40,6 @@ jenkins_admin_debian_pkgs:
# These are copied from the edxapp # These are copied from the edxapp
# role so that we can create virtualenvs # role so that we can create virtualenvs
# on the jenkins server for edxapp # on the jenkins server for edxapp
- npm
# for compiling the virtualenv # for compiling the virtualenv
# (only needed if wheel files aren't available) # (only needed if wheel files aren't available)
- build-essential - build-essential
...@@ -61,7 +62,7 @@ jenkins_admin_debian_pkgs: ...@@ -61,7 +62,7 @@ jenkins_admin_debian_pkgs:
# misc # misc
- curl - curl
- ipython - ipython
- npm - nodejs
- ntp - ntp
# for shapely # for shapely
- libgeos-dev - libgeos-dev
......
...@@ -112,9 +112,12 @@ ...@@ -112,9 +112,12 @@
mode=0644 mode=0644
with_items: jenkins_admin_jobs with_items: jenkins_admin_jobs
# adding chris-lea nodejs repo
- name: add ppas for current versions of nodejs
apt_repository: repo="{{ jenkins_chrislea_ppa }}"
- name: install system packages for edxapp virtualenvs - name: install system packages for edxapp virtualenvs
apt: pkg={{ item }} state=present apt: pkg={{','.join(jenkins_admin_debian_pkgs)}} state=present update_cache=yes
with_items: jenkins_admin_debian_pkgs
# This is necessary so that ansible can run with # This is necessary so that ansible can run with
# sudo set to True (as the jenkins user) on jenkins # sudo set to True (as the jenkins user) on jenkins
......
...@@ -3,6 +3,9 @@ jenkins_user: "jenkins" ...@@ -3,6 +3,9 @@ jenkins_user: "jenkins"
jenkins_group: "jenkins" jenkins_group: "jenkins"
jenkins_home: /home/jenkins jenkins_home: /home/jenkins
# repo for nodejs
jenkins_chrislea_ppa: "ppa:chris-lea/node.js"
# System packages # System packages
jenkins_debian_pkgs: jenkins_debian_pkgs:
- build-essential - build-essential
...@@ -15,7 +18,7 @@ jenkins_debian_pkgs: ...@@ -15,7 +18,7 @@ jenkins_debian_pkgs:
- libxml2-dev - libxml2-dev
- libgeos-dev - libgeos-dev
- libxslt1-dev - libxslt1-dev
- npm - nodejs
- pkg-config - pkg-config
- gettext - gettext
......
...@@ -26,6 +26,10 @@ ...@@ -26,6 +26,10 @@
owner={{ jenkins_user }} group={{ jenkins_group }} mode=400 owner={{ jenkins_user }} group={{ jenkins_group }} mode=400
ignore_errors: yes ignore_errors: yes
# adding chris-lea nodejs repo
- name: add ppas for current versions of nodejs
apt_repository: repo="{{ jenkins_chrislea_ppa }}"
- name: Install system packages - name: Install system packages
apt: pkg={{','.join(jenkins_debian_pkgs)}} apt: pkg={{','.join(jenkins_debian_pkgs)}}
state=present update_cache=yes state=present update_cache=yes
......
...@@ -84,7 +84,6 @@ xqueue_version: 'HEAD' ...@@ -84,7 +84,6 @@ xqueue_version: 'HEAD'
xqueue_pre_requirements_file: "{{ xqueue_code_dir }}/pre-requirements.txt" xqueue_pre_requirements_file: "{{ xqueue_code_dir }}/pre-requirements.txt"
xqueue_post_requirements_file: "{{ xqueue_code_dir }}/requirements.txt" xqueue_post_requirements_file: "{{ xqueue_code_dir }}/requirements.txt"
# These packages are required for the xqueue server, # These packages are required for the xqueue server,
# copied from the LMS role for now since there is a lot # copied from the LMS role for now since there is a lot
# of overlap # of overlap
...@@ -102,7 +101,6 @@ xqueue_debian_pkgs: ...@@ -102,7 +101,6 @@ xqueue_debian_pkgs:
# misc # misc
- curl - curl
- ipython - ipython
- npm
- ntp - ntp
# for shapely # for shapely
- libgeos-dev - libgeos-dev
......
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