Commit cee17cb2 by Will Daly Committed by Jay Zoldak

Implemented xvfb install/config for Jenkins role

parent 378aca46
......@@ -6,6 +6,7 @@
migrate_db: "yes"
openid_workaround: True
ansible_ssh_private_key_file: /var/lib/jenkins/continuous-integration.pem
mysql5_workaround: True
vars_files:
- "{{ secure_dir }}/vars/edxapp_ref_users.yml"
- "{{ secure_dir }}/vars/edxapp_sandbox.yml"
......
- name: Configure instance(s)
hosts: jenkins
sudo: True
gather_facts: True
vars_files:
- "{{ secure_dir }}/vars/edxapp_ref_users.yml"
- "{{ secure_dir }}/vars/edxapp_sandbox.yml"
roles:
- common
- edxlocal
- jenkins
---
- name: start xvfb
sudo: True
service: name=xvfb state=started
---
- name: install xvfb
sudo: True
apt: pkg=xvfb state=present
- name: configure display
sudo: True
template: src=xvfb.sh.j2 dest=/etc/profile.d/xvfb.sh owner=root group=root mode=0755
- name: create xvfb upstart script
sudo: True
template: src=xvfb.conf.j2 dest=/etc/init/xvfb.conf owner=root group=root
notify:
- start xvfb
description "Xvfb X Server"
start on (net-device-up
and local-filesystems
and runlevel [2345])
stop on runlevel [016]
exec /usr/bin/Xvfb :99 -screen 0 1024x768x24
# Set the display to the virtual frame buffer (Xvfb)
export DISPLAY=:99
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