Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
5ddd2632
Commit
5ddd2632
authored
Oct 08, 2013
by
e0d
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
missed rename
parent
ae8597a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
137 additions
and
0 deletions
+137
-0
playbooks/roles/analytics/tasks/main.yml
+137
-0
No files found.
playbooks/roles/analytics/tasks/main.yml
0 → 100644
View file @
5ddd2632
---
#
# 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 analytics
#
# Overview:
#
# Installs the edX analytics Django application which provides
# basic analytics to the LMS instructor dashboard via service calls.
#
# Dependencies:
#
# common role
#
# Depends upon the automated role
#
# Example play:
#
# - name: Configure analytics instance(s)
# hosts: analyticss
# sudo: True
# vars_files:
# - "{{ secure_dir }}/vars/common/common.yml"
# - "{{ secure_dir }}/vars/stage/analytics.yml"
# - "{{ secure_dir }}/vars/users.yml"
# gather_facts: True
# roles:
# - common
# - analytics
#
-
name
:
analytics | install system packages
apt
:
pkg={{','.join(analytics_debian_pkgs)}} state=present
tags
:
-
analytics
-
install
-
update
-
name
:
analytics | create analytics user {{ analytics_user }}
user
:
name={{ analytics_user }} state=present shell=/bin/bash
home={{ analytics_home }} createhome=yes
tags
:
-
analytics
-
install
-
update
-
name
:
analytics | setup the analytics env
template
:
src=opt/wwc/analytics/{{ analytics_env }}.j2
dest={{ analytics_home }}/{{ analytics_env }}
owner="{{ analytics_user }}" group="{{ analytics_user }}"
tags
:
-
analytics
-
install
-
update
-
name
:
analytics | drop a bash_profile
copy
:
>
src=../../common/files/bash_profile
dest={{ analytics_home }}/.bash_profile
owner={{ analytics_user }}
group={{ analytics_user }}
# Awaiting next ansible release.
#- name: analytics | ensure .bashrc exists
# file: path={{ analytics_home }}/.bashrc state=touch
# sudo: true
# sudo_user: "{{ analytics_user }}"
# tags:
# - analytics
# - install
# - update
-
name
:
analytics | ensure .bashrc exists
shell
:
touch {{ analytics_home }}/.bashrc
sudo
:
true
sudo_user
:
"
{{
analytics_user
}}"
tags
:
-
analytics
-
install
-
update
-
name
:
analytics | add source of analytics_env to .bashrc
lineinfile
:
dest={{ analytics_home }}/.bashrc
regexp='. {{ analytics_home }}/analytics_env'
line='. {{ analytics_home }}/analytics_env'
tags
:
-
analytics
-
install
-
update
-
name
:
analytics | add source venv to .bashrc
lineinfile
:
dest={{ analytics_home }}/.bashrc
regexp='. {{ analytics_venv_dir }}/bin/activate'
line='. {{ analytics_venv_dir }}/bin/activate'
tags
:
-
analytics
-
install
-
update
-
name
:
analytics | install global python requirements
pip
:
name={{ item }}
with_items
:
analytics_pip_pkgs
tags
:
-
analytics
-
install
-
update
-
name
:
analytics | create config
template
:
src=opt/wwc/analytics.auth.json.j2
dest=/opt/wwc/analytics.auth.json
mode=0600
owner="{{ analytics_web_user }}" group="{{ analytics_web_user }}"
tags
:
-
analytics
-
install
-
update
-
name
:
analytics | install service
template
:
src=etc/init/analytics.conf.j2 dest=/etc/init/analytics.conf
owner=root group=root
-
include
:
deploy.yml
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment