mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
commit
f8cd55daa3
10 changed files with 80 additions and 38 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -1,4 +1,7 @@
|
||||||
xs-config.spec
|
xs-config.spec
|
||||||
build
|
build
|
||||||
deprecated
|
deprecated
|
||||||
.patches
|
.ansible
|
||||||
|
*.patches
|
||||||
|
*.log
|
||||||
|
*.retry
|
||||||
|
|
|
@ -32,25 +32,6 @@
|
||||||
mode=0755
|
mode=0755
|
||||||
state=directory
|
state=directory
|
||||||
|
|
||||||
# this script can be sourced to get iiab location
|
|
||||||
- name: Create iiab.env file
|
|
||||||
template: src=iiab.env.j2
|
|
||||||
dest=/etc/iiab/iiab.env
|
|
||||||
owner=root
|
|
||||||
group=root
|
|
||||||
mode=0644
|
|
||||||
|
|
||||||
- name: put a python interface to iiab.env
|
|
||||||
template: src=iiab_env.py.j2
|
|
||||||
dest=/etc/iiab/iiab_env.py
|
|
||||||
|
|
||||||
- name: create ansible.d facts directory
|
|
||||||
file: path=/etc/ansible/facts.d
|
|
||||||
owner=root
|
|
||||||
group=root
|
|
||||||
mode=0750
|
|
||||||
state=directory
|
|
||||||
|
|
||||||
- name: Set XO model
|
- name: Set XO model
|
||||||
set_fact:
|
set_fact:
|
||||||
phplib_dir: '{{ ansible_local["local_facts"]["phplib_dir"] }}'
|
phplib_dir: '{{ ansible_local["local_facts"]["phplib_dir"] }}'
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
with_items:
|
with_items:
|
||||||
- iiab-centos.repo
|
- iiab-centos.repo
|
||||||
- li.nux.ro.repo
|
- li.nux.ro.repo
|
||||||
|
- ansible.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 }}
|
||||||
|
|
7
roles/2-common/templates/ansible.repo
Normal file
7
roles/2-common/templates/ansible.repo
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
[ansible]
|
||||||
|
name=ansible
|
||||||
|
failovermethod=priority
|
||||||
|
baseurl=http://releases.ansible.com/ansible/rpm/release/epel-7-x86_64/
|
||||||
|
enabled=0
|
||||||
|
metadata_expire=1d
|
||||||
|
gpgcheck=0
|
|
@ -11,8 +11,8 @@
|
||||||
when: not installing
|
when: not installing
|
||||||
|
|
||||||
# If we got here we're done
|
# If we got here we're done
|
||||||
- name: Record base gui version
|
#- name: Record base gui version
|
||||||
lineinfile: dest=/etc/iiab/iiab.env
|
# lineinfile: dest=/etc/iiab/iiab.env
|
||||||
regexp='^BASE_VERSION=*'
|
# regexp='^BASE_VERSION=*'
|
||||||
line='BASE_VERSION="{{ gui_version }}"'
|
# line='BASE_VERSION="{{ gui_version }}"'
|
||||||
state=present
|
# state=present
|
||||||
|
|
|
@ -1,6 +1,22 @@
|
||||||
- name: Server Options Installed
|
- name: Server Options Installed
|
||||||
command: echo Server Options Installed
|
command: echo Server Options Installed
|
||||||
|
|
||||||
|
# this script can be sourced to get iiab location
|
||||||
|
- name: Create iiab.env file
|
||||||
|
template: src=roles/1-prep/templates/iiab.env.j2
|
||||||
|
dest=/etc/iiab/iiab.env
|
||||||
|
owner=root
|
||||||
|
group=root
|
||||||
|
mode=0644
|
||||||
|
|
||||||
|
- name: put a python interface to iiab.env
|
||||||
|
template: src=roles/1-prep/templates/iiab_env.py.j2
|
||||||
|
dest=/etc/iiab/iiab_env.py
|
||||||
|
|
||||||
|
- name: generate the offline documents
|
||||||
|
command: /usr/bin/iiab-refresh-wiki-docs
|
||||||
|
when: not nodocs
|
||||||
|
|
||||||
- name: Stop postgresql service
|
- name: Stop postgresql service
|
||||||
command: "/etc/init.d/postgresql stop"
|
command: "/etc/init.d/postgresql stop"
|
||||||
ignore_errors: True
|
ignore_errors: True
|
||||||
|
@ -22,5 +38,3 @@
|
||||||
service: name=xs-authserver
|
service: name=xs-authserver
|
||||||
state=restarted
|
state=restarted
|
||||||
when: authserver_enabled
|
when: authserver_enabled
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -153,10 +153,6 @@
|
||||||
dest=/usr/bin/iiab-refresh-wiki-docs
|
dest=/usr/bin/iiab-refresh-wiki-docs
|
||||||
mode=0755
|
mode=0755
|
||||||
|
|
||||||
- name: generate the offline documents
|
|
||||||
command: /usr/bin/iiab-refresh-wiki-docs
|
|
||||||
when: not nodocs
|
|
||||||
|
|
||||||
- name: Give apache_user permission for poweroff
|
- name: Give apache_user permission for poweroff
|
||||||
template: src=020_apache_poweroff.j2
|
template: src=020_apache_poweroff.j2
|
||||||
dest=/etc/sudoers.d/020_apache_poweroff
|
dest=/etc/sudoers.d/020_apache_poweroff
|
||||||
|
|
|
@ -15,8 +15,9 @@
|
||||||
virtualenv={{ kalite_venv }}
|
virtualenv={{ kalite_venv }}
|
||||||
virtualenv_site_packages=no
|
virtualenv_site_packages=no
|
||||||
extra_args="--no-cache-dir"
|
extra_args="--no-cache-dir"
|
||||||
|
# extra_args="--no-cache-dir"
|
||||||
# extra_args="--disable-pip-version-check"
|
# extra_args="--disable-pip-version-check"
|
||||||
when: internet_available
|
when: internet_available and is_debuntu
|
||||||
|
|
||||||
- name: Install ka-lite with pip
|
- name: Install ka-lite with pip
|
||||||
pip: name=ka-lite-static
|
pip: name=ka-lite-static
|
||||||
|
@ -24,8 +25,26 @@
|
||||||
virtualenv={{ kalite_venv }}
|
virtualenv={{ kalite_venv }}
|
||||||
virtualenv_site_packages=no
|
virtualenv_site_packages=no
|
||||||
extra_args="--no-cache-dir"
|
extra_args="--no-cache-dir"
|
||||||
|
# extra_args="--no-cache-dir"
|
||||||
# extra_args="--disable-pip-version-check"
|
# extra_args="--disable-pip-version-check"
|
||||||
when: internet_available
|
when: internet_available and is_debuntu
|
||||||
|
|
||||||
|
- name: Install ka-lite dependencies with pip
|
||||||
|
pip: requirements={{ pip_packages_dir }}/kalite.txt
|
||||||
|
virtualenv={{ kalite_venv }}
|
||||||
|
virtualenv_site_packages=no
|
||||||
|
# extra_args="--no-cache-dir"
|
||||||
|
# extra_args="--disable-pip-version-check"
|
||||||
|
when: internet_available and not is_debuntu
|
||||||
|
|
||||||
|
- name: Install ka-lite with pip
|
||||||
|
pip: name=ka-lite-static
|
||||||
|
version={{ kalite_version }}
|
||||||
|
virtualenv={{ kalite_venv }}
|
||||||
|
virtualenv_site_packages=no
|
||||||
|
# extra_args="--no-cache-dir"
|
||||||
|
# extra_args="--disable-pip-version-check"
|
||||||
|
when: internet_available and not is_debuntu
|
||||||
|
|
||||||
- name: Default is to have cronserve started with kalite
|
- name: Default is to have cronserve started with kalite
|
||||||
set_fact:
|
set_fact:
|
||||||
|
|
|
@ -27,19 +27,39 @@
|
||||||
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 --no-cache-dir"
|
extra_args="--no-cache-dir"
|
||||||
when: internet_available
|
when: internet_available and is_debuntu
|
||||||
|
|
||||||
- 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 --no-cache-dir"
|
extra_args="--no-cache-dir"
|
||||||
with_items:
|
with_items:
|
||||||
- MarkupSafe
|
- MarkupSafe
|
||||||
- pytz
|
- pytz
|
||||||
- Internet-in-a-Box
|
- Internet-in-a-Box
|
||||||
when: internet_available
|
when: internet_available and is_debuntu
|
||||||
|
|
||||||
|
# IIAB wants a specific version do that first
|
||||||
|
- name: Install Whoosh 2.6
|
||||||
|
pip: name=whoosh
|
||||||
|
virtualenv={{ osm_venv }}
|
||||||
|
virtualenv_site_packages=no
|
||||||
|
version=2.6
|
||||||
|
# extra_args="--no-cache-dir"
|
||||||
|
when: internet_available and not is_debuntu
|
||||||
|
|
||||||
|
- name: Install IIAB with dependencies
|
||||||
|
pip: name={{ item }}
|
||||||
|
virtualenv={{ osm_venv }}
|
||||||
|
virtualenv_site_packages=no
|
||||||
|
# extra_args="--no-cache-dir"
|
||||||
|
with_items:
|
||||||
|
- MarkupSafe
|
||||||
|
- pytz
|
||||||
|
- Internet-in-a-Box
|
||||||
|
when: internet_available and not is_debuntu
|
||||||
|
|
||||||
- name: Set osm_path
|
- name: Set osm_path
|
||||||
set_fact:
|
set_fact:
|
||||||
|
|
|
@ -42,8 +42,9 @@ fi
|
||||||
if [ -f /etc/centos-release ]; then
|
if [ -f /etc/centos-release ]; then
|
||||||
yum -y upgrade
|
yum -y upgrade
|
||||||
yum -y install ca-certificates nss epel-release
|
yum -y install ca-certificates nss epel-release
|
||||||
yum -y install ansible git bzip2 file findutils gzip hg svn sudo tar which unzip xz zip libselinux-python
|
yum -y install git bzip2 file findutils gzip hg svn sudo tar which unzip xz zip libselinux-python
|
||||||
yum -y install python-pip python-setuptools python-wheel patch
|
yum -y install python-pip python-setuptools python-wheel patch
|
||||||
|
yum -y install http://releases.ansible.com/ansible/rpm/release/epel-7-x86_64/ansible-2.4.0.0-1.el7.ans.noarch.rpm
|
||||||
FOUND="yes"
|
FOUND="yes"
|
||||||
FAMILY="redhat"
|
FAMILY="redhat"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue