Skip to content

Commit

Permalink
add support for Odroid C2 (ARMv7) with Ubuntu 16.04 (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Jun 14, 2016
1 parent 1a50292 commit 10a1e70
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
node_modules
**/host_vars/iojs-*
**/host_vars/node-*
**/host_vars/test-*
**/host_vars/release-*
1 change: 0 additions & 1 deletion setup/ubuntu16.04/.gitignore

This file was deleted.

17 changes: 16 additions & 1 deletion setup/ubuntu16.04/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,24 @@ Host test-digitalocean-ubuntu1604-x64-1
Host test-digitalocean-ubuntu1604-x86-1
HostName 159.203.77.233
Host test-mininodes-ubuntu1604-arm64_odroid_c2-1
User odroid
HostName 70.167.220.147
# IdentityFile nodejs_build_test
Host test-mininodes-ubuntu1604-arm64_odroid_c2-2
User odroid
HostName 70.167.220.148
# IdentityFile nodejs_build_test
Host test-mininodes-ubuntu1604-arm64_odroid_c2-3
User odroid
HostName 70.167.220.149
# IdentityFile nodejs_build_test
```

..then run:
Build the host_var config files for each host, including `server_jobs: 2` for the lower powered hosts, then run:

```bash
$ ansible-playbook -i ../ansible-inventory ansible-playbook.yaml
Expand Down
20 changes: 14 additions & 6 deletions setup/ubuntu16.04/ansible-playbook.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
- hosts: iojs-build-ubuntu1604
remote_user: root
remote_user: "{{ remote_user }}" # from inventory
become: yes
become_user: root
gather_facts: False

tasks:
Expand All @@ -9,20 +11,27 @@
register: python_exists
failed_when: python_exists.rc > 1

- name: Bootstrap for the apt package
- name: Check for aptitude
raw: which aptitude
register: aptitude_exists
failed_when: aptitude_exists.rc > 1

- name: Bootstrap python and aptitude
raw: apt install -y python-minimal aptitude
tags: bootstrap
when: python_exists.rc == 1
when: python_exists.rc == 1 or aptitude_exists.rc == 1

- hosts: iojs-build-ubuntu1604
remote_user: root
remote_user: "{{ remote_user }}"
become: yes
become_user: root
gather_facts: True

tasks:
- include_vars: ansible-vars.yaml
tags: vars

- name: General | APT Update and upgrade
- name: General | APT update and upgrade
apt: update_cache=yes upgrade=full
tags: general

Expand All @@ -35,7 +44,6 @@
user: name="{{ server_user }}" shell=/bin/bash
tags: user


- name: Jenkins | Download Jenkins slave.jar
get_url: url=https://ci.nodejs.org/jnlpJars/slave.jar dest=/home/{{ server_user }}/slave.jar
tags: jenkins
Expand Down
2 changes: 1 addition & 1 deletion setup/ubuntu16.04/resources/jenkins.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Type=simple
User={{ server_user }}

Environment="USER={{ server_user }}"
Environment="JOBS={{ ansible_processor_vcpus }}"
Environment="JOBS={{ server_jobs | default(ansible_processor_vcpus) }}"
Environment="SHELL=/bin/bash"
Environment="HOME=/home/{{ server_user }}"
Environment="NODE_TEST_DIR=/home/{{ server_user }}/tmp"
Expand Down

0 comments on commit 10a1e70

Please sign in to comment.