mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
commit
167c8c8fe4
8 changed files with 123 additions and 19 deletions
42
.travis.yml
Normal file
42
.travis.yml
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
---
|
||||||
|
language: python
|
||||||
|
python: "2.7"
|
||||||
|
|
||||||
|
# Use the new container infrastructure
|
||||||
|
sudo: false
|
||||||
|
|
||||||
|
# Install ansible
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- python-pip
|
||||||
|
|
||||||
|
install:
|
||||||
|
# Install ansible, ansible-lint and ansible-review
|
||||||
|
- pip install ansible
|
||||||
|
- pip install ansible-review
|
||||||
|
|
||||||
|
# Check ansible, version
|
||||||
|
- ansible --version
|
||||||
|
- ansible-lint --version
|
||||||
|
- ansible-review --version
|
||||||
|
|
||||||
|
# Create ansible.cfg with correct roles_path
|
||||||
|
- printf '[defaults]\nroles_path=../' >ansible.cfg
|
||||||
|
|
||||||
|
script:
|
||||||
|
# Continuous integration: syntax check
|
||||||
|
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check -vvv
|
||||||
|
|
||||||
|
# Continous integration: ansible-list
|
||||||
|
- ansible-lint -p *yml
|
||||||
|
|
||||||
|
# Continous integration: ansible code review
|
||||||
|
- git ls-files *yml roles/ vars/ tests/ | xargs ansible-review
|
||||||
|
|
||||||
|
# Continouse integration: ansible code review of changes between master and current branch
|
||||||
|
- git diff master | ansible-review
|
||||||
|
|
||||||
|
|
||||||
|
#notifications:
|
||||||
|
# webhooks:
|
|
@ -1,4 +1,4 @@
|
||||||
# Internet-in-a-Box (IIAB)
|
# Internet-in-a-Box (IIAB) [![Build Status](https://travis-ci.org/iiab/iiab.svg?branch=master)](https://travis-ci.org/iiab/iiab)
|
||||||
|
|
||||||
Welcome to the Git repository of the Internet-in-a-Box (IIAB) project. This is a community-based project developed and supported by volunteers from around the world. The Internet-in-a-Box (IIAB) is small, inexpensive device which provides essential Internet resources (like Wikipedia, OpenStreetMap, Khan Academy and others) without any Internet connection. It provides a local content server of the world’s Free Knowledge.
|
Welcome to the Git repository of the Internet-in-a-Box (IIAB) project. This is a community-based project developed and supported by volunteers from around the world. The Internet-in-a-Box (IIAB) is small, inexpensive device which provides essential Internet resources (like Wikipedia, OpenStreetMap, Khan Academy and others) without any Internet connection. It provides a local content server of the world’s Free Knowledge.
|
||||||
|
|
||||||
|
|
|
@ -19,11 +19,11 @@
|
||||||
- iiab-centos.repo
|
- iiab-centos.repo
|
||||||
- li.nux.ro.repo
|
- li.nux.ro.repo
|
||||||
|
|
||||||
- name: Disable updating ansible on CentOS
|
#- name: Disable updating ansible on CentOS
|
||||||
shell: sed -i -e '/^enabled=/a exclude=ansible' {{ item }}
|
# shell: sed -i -e '/^enabled=/a exclude=ansible' {{ item }}
|
||||||
with_items:
|
# with_items:
|
||||||
- /etc/yum.repos.d/CentOS-Base.repo
|
# - /etc/yum.repos.d/CentOS-Base.repo
|
||||||
- /etc/yum.repos.d/CentOS-CR.repo
|
# - /etc/yum.repos.d/CentOS-CR.repo
|
||||||
- /etc/yum.repos.d/CentOS-fasttrack.repo
|
# - /etc/yum.repos.d/CentOS-fasttrack.repo
|
||||||
- /etc/yum.repos.d/CentOS-Vault.repo
|
# - /etc/yum.repos.d/CentOS-Vault.repo
|
||||||
when: ansible_distribution == "CentOS"
|
# when: ansible_distribution == "CentOS"
|
||||||
|
|
|
@ -14,10 +14,10 @@
|
||||||
shell: yum --enablerepo=rpmfusion-free-updates install exfat-utils fuse-exfat
|
shell: yum --enablerepo=rpmfusion-free-updates install exfat-utils fuse-exfat
|
||||||
when: exFAT_enabled == "True"
|
when: exFAT_enabled == "True"
|
||||||
|
|
||||||
- name: Disable updating ansible on Fedora
|
#- name: Disable updating ansible on Fedora
|
||||||
shell: sed -i -e '/^enabled=/a exclude=ansible' {{ item }}
|
# shell: sed -i -e '/^enabled=/a exclude=ansible' {{ item }}
|
||||||
with_items:
|
# with_items:
|
||||||
- /etc/yum.repos.d/fedora.repo
|
# - /etc/yum.repos.d/fedora.repo
|
||||||
- /etc/yum.repos.d/fedora-updates.repo
|
# - /etc/yum.repos.d/fedora-updates.repo
|
||||||
- /etc/yum.repos.d/fedora-updates-testing.repo
|
# - /etc/yum.repos.d/fedora-updates-testing.repo
|
||||||
when: ansible_distribution == "Fedora"
|
# when: ansible_distribution == "Fedora"
|
||||||
|
|
|
@ -27,14 +27,14 @@
|
||||||
virtualenv={{ osm_venv }}
|
virtualenv={{ osm_venv }}
|
||||||
virtualenv_site_packages=no
|
virtualenv_site_packages=no
|
||||||
version=2.6
|
version=2.6
|
||||||
extra_args="--disable-pip-version-check"
|
extra_args="--disable-pip-version-check --no-cache-dir"
|
||||||
when: internet_available
|
when: internet_available
|
||||||
|
|
||||||
- name: Install IIAB with dependencies
|
- name: Install IIAB with dependencies
|
||||||
pip: name={{ item }}
|
pip: name={{ item }}
|
||||||
virtualenv={{ osm_venv }}
|
virtualenv={{ osm_venv }}
|
||||||
virtualenv_site_packages=no
|
virtualenv_site_packages=no
|
||||||
extra_args="--disable-pip-version-check"
|
extra_args="--disable-pip-version-check --no-cache-dir"
|
||||||
with_items:
|
with_items:
|
||||||
- MarkupSafe
|
- MarkupSafe
|
||||||
- pytz
|
- pytz
|
||||||
|
|
1
tests/inventory
Normal file
1
tests/inventory
Normal file
|
@ -0,0 +1 @@
|
||||||
|
localhost
|
61
tests/test.yml
Normal file
61
tests/test.yml
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
---
|
||||||
|
- hosts: localhost
|
||||||
|
remote_user: root
|
||||||
|
# TODO: Making a anisble-iiab roles for ansible-galaxy
|
||||||
|
# roles:
|
||||||
|
# - iiab
|
||||||
|
# For now hardcoding all the roles manually with ls -l roles/ | cut -d " " -f 10
|
||||||
|
roles:
|
||||||
|
- ../roles/1-prep
|
||||||
|
- ../roles/2-common
|
||||||
|
- ../roles/3-base-server
|
||||||
|
- ../roles/4-server-options
|
||||||
|
- ../roles/5-xo-services
|
||||||
|
- ../roles/6-generic-apps
|
||||||
|
- ../roles/7-edu-apps
|
||||||
|
- ../roles/8-mgmt-tools
|
||||||
|
- ../roles/9-local-addons
|
||||||
|
- ../roles/activity-server
|
||||||
|
- ../roles/ajenti
|
||||||
|
- ../roles/authserver
|
||||||
|
- ../roles/awstats
|
||||||
|
- ../roles/calibre
|
||||||
|
- ../roles/cups
|
||||||
|
- ../roles/debian_schooltool
|
||||||
|
- ../roles/docker
|
||||||
|
- ../roles/dokuwiki
|
||||||
|
- ../roles/ejabberd
|
||||||
|
- ../roles/ejabberd_xs
|
||||||
|
- ../roles/elgg
|
||||||
|
# Disabling gateway doesn't contain any tasks?
|
||||||
|
#- ../roles/gateway
|
||||||
|
- ../roles/httpd
|
||||||
|
- ../roles/idmgr
|
||||||
|
- ../roles/iiab-admin
|
||||||
|
- ../roles/kalite
|
||||||
|
- ../roles/kiwix
|
||||||
|
- ../roles/mongodb
|
||||||
|
- ../roles/monit
|
||||||
|
- ../roles/moodle
|
||||||
|
- ../roles/moodle-1.9
|
||||||
|
- ../roles/munin
|
||||||
|
- ../roles/mysql
|
||||||
|
- ../roles/network
|
||||||
|
- ../roles/nextcloud
|
||||||
|
- ../roles/openvpn
|
||||||
|
- ../roles/osm
|
||||||
|
- ../roles/owncloud
|
||||||
|
- ../roles/pathagar
|
||||||
|
- ../roles/phpmyadmin
|
||||||
|
- ../roles/postgresql
|
||||||
|
- ../roles/rachel
|
||||||
|
- ../roles/samba
|
||||||
|
- ../roles/schooltool
|
||||||
|
- ../roles/sshd
|
||||||
|
- ../roles/sugarizer
|
||||||
|
- ../roles/sugar-stats
|
||||||
|
- ../roles/teamviewer
|
||||||
|
- ../roles/usb-lib
|
||||||
|
- ../roles/vnstat
|
||||||
|
- ../roles/wordpress
|
||||||
|
- ../roles/xovis
|
Loading…
Reference in a new issue