1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Merge pull request #109 from iiab/master

sync from iiab/iiab
This commit is contained in:
A Holt 2018-07-18 17:36:52 -04:00 committed by GitHub
commit b089e8665b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 18 additions and 14 deletions

View file

@ -14,14 +14,14 @@
- avahi-tools
when: is_redhat
- name: Download usbmount -- not in Debian Stretch (debian_9)
- name: Download usbmount -- not in Debian Stretch (debian-9)
get_url:
url: "{{ iiab_download_url }}/usbmount_0.0.14.1_all.deb"
dest: "{{ downloads_dir }}"
timeout: "{{ download_timeout }}"
when: internet_available and is_debian_9
- name: Install usbmount (debian_9)
- name: Install usbmount (debian-9)
command: apt install -y {{ downloads_dir }}/usbmount_0.0.14.1_all.deb
when: is_debian_9

View file

@ -2,7 +2,7 @@
Description=Kolibri
[Service]
Type=oneshot
Type=forking
RemainAfterExit=yes
Environment=KOLIBRI_USER={{ kolibri_user }}
Environment=KOLIBRI_HOME={{ kolibri_home }}

View file

@ -1,2 +1,5 @@
mongodb_install: False
mongodb_enabled: False
mongodb_db_path: "{{ content_base }}/dbdata/mongodb" # == /library/dbdata/mongodb/
mongodb_conf: /etc/mongod.conf

View file

@ -16,10 +16,10 @@
owner: mongodb
with_items:
- { path: '/var/run/mongodb' }
- { path: '/library/dbdata/mongodb' }
- { path: "{{ mongodb_db_path }}" }
- { path: '/var/log/mongodb' }
- name: Position /etc/mongod.conf and mongodb.service
- name: Populate & position /etc/mongod.conf, /etc/systemd/system/mongodb.service
template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
@ -27,8 +27,8 @@
group: root
mode: 0644
with_items:
- { src: 'mongodb.service' , dest: '/etc/systemd/system/' }
- { src: 'mongod.conf' , dest: '/etc/mongod.conf'}
- { src: 'mongodb.service.j2', dest: '/etc/systemd/system/mongodb.service' }
- { src: 'mongod.conf.j2', dest: "{{ mongodb_conf }}" }
- name: Restart service if enabled
service:

View file

@ -21,7 +21,7 @@ logpath = /var/log/mongodb/mongod.log
# unixSocketPrefix = /var/run/mongodb
# Directory for datafiles (defaults to /data/db/)
dbpath = /library/dbdata/mongodb
dbpath = {{ mongodb_db_path }}
# Enable/Disable journaling (journaling is on by default for 64 bit)
journal = true
@ -234,4 +234,3 @@ smallfiles = true
# Activate FIPS 140-2 mode at startup
#sslFIPSMode = true

View file

@ -6,7 +6,9 @@ After=syslog.target network.target
Type=simple
User=mongodb
Group=mongodb
ExecStart=/usr/bin/mongod -f /etc/mongod.conf
ExecStartPre=/usr/bin/mongod --repair --dbpath {{ mongodb_db_path }}
ExecStart=/usr/bin/mongod -f {{ mongodb_conf }}
ExecStop=/usr/bin/killall mongod
[Install]
WantedBy=multi-user.target

View file

@ -22,12 +22,12 @@
- php{{ php_version }}-cli
when: is_debuntu
- name: php-zip name (debian_9 or ubuntu)
- name: php-zip name (debian-9 or ubuntu)
package:
name: "php{{ php_version }}-zip"
when: is_debian_9 or is_ubuntu
- name: php-zip name for (debian_8)
- name: php-zip name for (debian-8)
package:
name: php-pclzip
when: is_debian_8

View file

@ -19,13 +19,13 @@
tags:
- download
- name: php-xml (ubuntu or debian_9)
- name: php-xml (ubuntu or debian-9)
package:
name: "php{{ php_version }}-xml"
state: present
when: is_ubuntu or is_debian_9
- name: php-xml (debian_8)
- name: php-xml (debian-8)
package:
name: "php-xml-parser"
state: present