mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
merge kalite-venv
This commit is contained in:
parent
4dff9e1977
commit
017f854e31
8 changed files with 25 additions and 35 deletions
|
@ -3,6 +3,9 @@
|
|||
# To override them edit the main var definitions in iiab/vars
|
||||
kalite_version: "0.17.3"
|
||||
kalite_repo_url: "https://github.com/learningequality/ka-lite.git"
|
||||
kalite_venv: "/usr/local/kalite/venv"
|
||||
kalite_program: "{{ kalite_venv }}/bin/kalite"
|
||||
kalite_requirements: "https://raw.githubusercontent.com/learningequalit
|
||||
kalite_root: "/library/ka-lite"
|
||||
kalite_user: kalite
|
||||
# obtain a password hash with - python -c 'import crypt; print crypt.crypt("<plaintext>", "$6$<salt>")'
|
||||
|
|
|
@ -4,37 +4,31 @@
|
|||
package: name={{ item }}
|
||||
state=present
|
||||
with_items:
|
||||
- lsb
|
||||
when: internet_available and ansible_distribution == "CentOS"
|
||||
- python-virtualenv
|
||||
|
||||
# Version 0.17.x
|
||||
# pip show kalite
|
||||
# Requires: docopt, South, django-js-reverse, ply, slimit, six, django-appconf,
|
||||
# peewee, python-dateutil, django-dbbackup
|
||||
- name: Grap the requirements file
|
||||
get_url: url={{ kalite_requirements }} dest={{ pip_packages_dir }}/kalite.txt
|
||||
when: internet_available
|
||||
|
||||
# from /usr/lib/python2.7/site-packages/ka_lite-0.16.0-py2.7.egg-info/requires.txt
|
||||
# docopt>=0.6,<0.7
|
||||
# South==0.8.4
|
||||
# django-js-reverse==0.5.0 ## no rpm
|
||||
# ply==3.4
|
||||
# slimit==0.8.1
|
||||
# six==1.9.0
|
||||
# django-appconf==1.0.1
|
||||
# peewee==2.6.3
|
||||
# python-dateutil==2.4.2
|
||||
# django-dbbackup==2.3.2 ## no rpm
|
||||
- name: Download kalite dependencies with pip
|
||||
pip: requirements={{ pip_packages_dir }}/kalite.txt
|
||||
extra_args="--disable-pip-version-check --download {{ pip_packages_dir }}"
|
||||
when: internet_available
|
||||
|
||||
- name: use pip to uninstall setuptools for centos
|
||||
command: pip uninstall --yes setuptools
|
||||
when: ansible_distribution == "CentOS" and not strict_install
|
||||
- name: Install ka-lite dependencies with pip
|
||||
pip: requirements={{ pip_packages_dir }}/kalite.txt
|
||||
virtualenv={{ kalite_venv }}
|
||||
virtualenv_site_packages=no
|
||||
extra_args="--disable-pip-version-check"
|
||||
when: internet_available
|
||||
|
||||
- name: Get an unbroken version of setuptools for centos
|
||||
command: pip install setuptools==28.8.0
|
||||
when: ansible_distribution == "CentOS" and not strict_install
|
||||
|
||||
- name: Install kalite with pip
|
||||
pip: name=ka-lite version={{ kalite_version }}
|
||||
when: internet_available
|
||||
- name: Install ka-lite with pip
|
||||
pip: name=ka-lite-static
|
||||
version={{ kalite_version }}
|
||||
virtualenv={{ kalite_venv }}
|
||||
virtualenv_site_packages=no
|
||||
extra_args="--disable-pip-version-check"
|
||||
when: internet_available
|
||||
|
||||
- name: Default is to have cronserve started with kalite
|
||||
set_fact:
|
||||
|
@ -46,7 +40,7 @@
|
|||
when: not kalite_cron_enabled
|
||||
|
||||
- name: Create kalite service(s) and support scripts
|
||||
template: backup=yes
|
||||
template: backup=no
|
||||
src={{ item.src }}
|
||||
dest={{ item.dest }}
|
||||
owner=root
|
||||
|
@ -56,4 +50,3 @@
|
|||
- { src: 'kalite-serve.service.j2', dest: '/etc/systemd/system/kalite-serve.service', mode: '0644'}
|
||||
- { src: 'kalite.sh.j2', dest: '/etc/profile.d/kalite.sh', mode: '0644'}
|
||||
- { src: 'kalite.conf', dest: '/etc/{{ apache_config_dir}}', mode: '0644'}
|
||||
|
||||
|
|
|
@ -10,7 +10,6 @@ apache_config_dir: httpd/conf.d
|
|||
apache_log_dir: /var/log/httpd
|
||||
smb_service: smb
|
||||
nmb_service: nmb
|
||||
kalite_program: /usr/bin/kalite
|
||||
systemctl_program: /usr/bin/systemctl
|
||||
mysql_service: mariadb
|
||||
apache_log: /var/log/httpd/access_log
|
||||
|
|
|
@ -11,7 +11,6 @@ apache_user: www-data
|
|||
apache_log_dir: /var/log/apache2
|
||||
smb_service: smbd
|
||||
nmb_service: nmbd
|
||||
kalite_program: /usr/local/bin/kalite
|
||||
systemctl_program: /bin/systemctl
|
||||
mysql_service: mysql
|
||||
apache_log: /var/log/apache2/access.log
|
||||
|
|
|
@ -9,7 +9,6 @@ apache_config_dir: httpd/conf.d
|
|||
apache_log_dir: /var/log/httpd
|
||||
smb_service: smb
|
||||
nmb_service: nmb
|
||||
kalite_program: /usr/bin/kalite
|
||||
systemctl_program: /usr/bin/systemctl
|
||||
mysql_service: mariadb
|
||||
apache_log: /var/log/httpd/access_log
|
||||
|
|
|
@ -9,7 +9,6 @@ apache_config_dir: httpd/conf.d
|
|||
apache_log_dir: /var/log/httpd
|
||||
smb_service: smb
|
||||
nmb_service: nmb
|
||||
kalite_program: /usr/bin/kalite
|
||||
systemctl_program: /usr/bin/systemctl
|
||||
mysql_service: mariadb
|
||||
apache_log: /var/log/httpd/access_log
|
||||
|
|
|
@ -13,7 +13,6 @@ apache_user: www-data
|
|||
apache_log_dir: /var/log/apache2
|
||||
smb_service: smbd
|
||||
nmb_service: nmbd
|
||||
kalite_program: /usr/local/bin/kalite
|
||||
systemctl_program: /bin/systemctl
|
||||
mysql_service: mysql
|
||||
apache_log: /var/log/apache2/access.log
|
||||
|
|
|
@ -10,7 +10,6 @@ apache_config_dir: apache2/sites-available
|
|||
apache_log_dir: /var/log/apache2
|
||||
smb_service: smbd
|
||||
nmb_service: nmbd
|
||||
kalite_program: /usr/local/bin/kalite
|
||||
systemctl_program: /bin/systemctl
|
||||
mysql_service: mysql
|
||||
apache_log: /var/log/apache2/access.log
|
||||
|
|
Loading…
Add table
Reference in a new issue