Commit 28508c20 by Fred Smith

Merge pull request #2044 from edx/derf/sitespeed-io-role

sitespeed.io role
parents 296d32ad bbbd5c94
- name: Deploy Sitespeed.io
hosts: all
sudo: True
gather_facts: True
roles:
- sitespeedio
---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://github.com/edx/configuration/wiki
# code style: https://github.com/edx/configuration/wiki/Ansible-Coding-Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
##
# Defaults for role sitespeedio
#
#
# vars are namespace with the module name.
#
sitespeedio_role_name: sitespeedio
#
# OS packages
#
sitespeedio_chrislea_ppa: "ppa:chris-lea/node.js"
sitespeedio_debian_pkgs:
- firefox
- nodejs
- xvfb
sitespeedio_redhat_pkgs: []
---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://github.com/edx/configuration/wiki
# code style: https://github.com/edx/configuration/wiki/Ansible-Coding-Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
##
# Role includes for role sitespeedio
#
# Example:
#
# dependencies:
# - {
# role: my_role
# my_role_var0: "foo"
# my_role_var1: "bar"
# }
dependencies:
- oraclejdk
---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://github.com/edx/configuration/wiki
# code style: https://github.com/edx/configuration/wiki/Ansible-Coding-Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
#
#
# Tasks for role sitespeedio
#
# Overview:
# Install the sitespeed.io package along with it's dependencies.
# See http://sitespeed.io/ for details on running.
#
#
# Dependencies:
# none
#
# Example play:
# role:
# - sitespeedio
#
# adding chris-lea nodejs repo
- name: add ppas for current versions of nodejs
apt_repository: repo="{{ sitespeedio_chrislea_ppa }}"
# Install Sitespeed Dependencies
- name: install sitespeed.io specific system packages
apt: pkg={{','.join(sitespeedio_debian_pkgs)}} state=present
- name: install sitespeed.io
npm: name=sitespeed.io global=yes state=latest
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