mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Update main.yml
This commit is contained in:
parent
fb5346776c
commit
12dd0d7613
1 changed files with 20 additions and 18 deletions
|
@ -135,7 +135,7 @@
|
||||||
# when: internet_available and is_F18 and not node_modules_exists
|
# when: internet_available and is_F18 and not node_modules_exists
|
||||||
|
|
||||||
# Add a Node.js Express function that appends a prefix to URLs.
|
# Add a Node.js Express function that appends a prefix to URLs.
|
||||||
# SEE "AUTO-INSERTED BY IIAB" ~59 LINES BELOW: as those two "pathPrefix" lines
|
# SEE "AUTO-INSERTED BY IIAB" ~61 LINES BELOW: as those two "pathPrefix" lines
|
||||||
# MUST be added to /opt/iiab/sugarizer-server/sugarizer.js
|
# MUST be added to /opt/iiab/sugarizer-server/sugarizer.js
|
||||||
- name: For http://box/sugarizer -- run 'npm install --allow-root --unsafe-perm=true path-prefix-proxy' to create /opt/iiab/sugarizer-server/node_modules/path-prefix-proxy
|
- name: For http://box/sugarizer -- run 'npm install --allow-root --unsafe-perm=true path-prefix-proxy' to create /opt/iiab/sugarizer-server/node_modules/path-prefix-proxy
|
||||||
command: npm install --allow-root --unsafe-perm=true path-prefix-proxy
|
command: npm install --allow-root --unsafe-perm=true path-prefix-proxy
|
||||||
|
@ -159,8 +159,8 @@
|
||||||
#- { src: 'sugarizer.ini.j2', dest: '{{ iiab_base }}/sugarizer-server/env/sugarizer.ini' }
|
#- { src: 'sugarizer.ini.j2', dest: '{{ iiab_base }}/sugarizer-server/env/sugarizer.ini' }
|
||||||
#- { src: 'sugarizer.js', dest: '{{ iiab_base }}/sugarizer-server' }
|
#- { src: 'sugarizer.js', dest: '{{ iiab_base }}/sugarizer-server' }
|
||||||
|
|
||||||
# 4 STANZAS ADDED BELOW JAN/FEB 2019, HOPING THIS MIGHT "JUST WORK" WITH FUTURE
|
# 3 [WAS 4] STANZAS ADDED BELOW JAN/FEB 2019, HOPING THIS MIGHT "JUST WORK" WITH
|
||||||
# UPGRADES BEYOND SUGARIZER 1.1? SEE: github.com/iiab/iiab/pull/1430/files
|
# FUTURE UPGRADES BEYOND SUGARIZER 1.1? SEE github.com/iiab/iiab/pull/1430/files
|
||||||
|
|
||||||
# sugarizer_port is set to 8089 in /opt/iiab/iiab/vars/default_vars.yml
|
# sugarizer_port is set to 8089 in /opt/iiab/iiab/vars/default_vars.yml
|
||||||
# If you need to change this, edit /etc/iiab/local_vars.yml prior to installing
|
# If you need to change this, edit /etc/iiab/local_vars.yml prior to installing
|
||||||
|
@ -170,20 +170,22 @@
|
||||||
regexp: "^port = 8080$"
|
regexp: "^port = 8080$"
|
||||||
line: "port = {{ sugarizer_port }}"
|
line: "port = {{ sugarizer_port }}"
|
||||||
|
|
||||||
# 2019-02-01: HACK REQUIRED FOR NOW ON UBUNTU 18.04 so Sugarizer finds MongoDB
|
# 2019-02-02 No Longer Required thanks to @llaske's upstream fix:
|
||||||
# after 1st reboot. Otherwise "Waiting for DB..." appears every second as
|
# https://github.com/llaske/sugarizer-server/commit/46c4822bc7801ff8d621c22988aa4418359e7e19
|
||||||
# shown by "systemctl status sugarizer" and "journalctl -eu sugarizer".
|
## 2019-02-02: HACK WAS REQUIRED ON UBUNTU 18.04 so Sugarizer finds MongoDB
|
||||||
# This does NOT affect Raspbian. @jvonau wonders if Ubuntu's
|
## after 1st reboot. Otherwise "Waiting for DB..." appears every second as
|
||||||
# "nameserver 127.0.0.53" in /etc/resolv.conf is to blame? @m-anish wondered
|
## shown by "systemctl status sugarizer" and "journalctl -eu sugarizer".
|
||||||
# if "bind_ip: 127.0.0.1" in /etc/mongod.conf was to blame as suggested by
|
## This does NOT affect Ubuntu 16.04 or Raspbian. @jvonau wonders if U18.04's
|
||||||
# https://stackoverflow.com/questions/8904991/mongodb-cant-connect-to-localhost-but-can-connect-to-localhosts-ip-address
|
## "nameserver 127.0.0.53" in /etc/resolv.conf is to blame? @m-anish wondered
|
||||||
# But changing to "bind_ip: localhost" does not work with Sugarizer, and
|
## if "bind_ip: 127.0.0.1" in /etc/mongod.conf was to blame as suggested by
|
||||||
# "bind_ip: 127.0.0.1,localhost" is not allowed. BACKGROUND: PR #1430
|
## https://stackoverflow.com/questions/8904991/mongodb-cant-connect-to-localhost-but-can-connect-to-localhosts-ip-address
|
||||||
- name: Set MongoDB "server" from localhost to 127.0.0.1 in /opt/iiab/sugarizer-server/env/sugarizer.ini
|
## But changing to "bind_ip: localhost" does not work with Sugarizer, and
|
||||||
lineinfile:
|
## "bind_ip: 127.0.0.1,localhost" is not allowed. BACKGROUND: PR #1430
|
||||||
path: "{{ iiab_base }}/sugarizer-server/env/sugarizer.ini"
|
#- name: Set MongoDB "server" from localhost to 127.0.0.1 in /opt/iiab/sugarizer-server/env/sugarizer.ini
|
||||||
regexp: "^server = localhost$"
|
# lineinfile:
|
||||||
line: "server = 127.0.0.1"
|
# path: "{{ iiab_base }}/sugarizer-server/env/sugarizer.ini"
|
||||||
|
# regexp: "^server = localhost$"
|
||||||
|
# line: "server = 127.0.0.1"
|
||||||
|
|
||||||
# mongodb_port is set to 27018 in /opt/iiab/iiab/vars/default_vars.yml
|
# mongodb_port is set to 27018 in /opt/iiab/iiab/vars/default_vars.yml
|
||||||
# If you need to change this, edit /etc/iiab/local_vars.yml prior to installing
|
# If you need to change this, edit /etc/iiab/local_vars.yml prior to installing
|
||||||
|
@ -194,7 +196,7 @@
|
||||||
line: "port = {{ mongodb_port }}"
|
line: "port = {{ mongodb_port }}"
|
||||||
|
|
||||||
# 2-LINE FIX FOR sugarizer.js BY @georgejhunt FOR http://box/sugarizer
|
# 2-LINE FIX FOR sugarizer.js BY @georgejhunt FOR http://box/sugarizer
|
||||||
# SEE ~59 LINES ABOVE, as this is REQUIRED: 'npm install --allow-root --unsafe-perm=true path-prefix-proxy'
|
# SEE ~61 LINES ABOVE, as this is REQUIRED: 'npm install --allow-root --unsafe-perm=true path-prefix-proxy'
|
||||||
# OR YOU GET ERRORS: "status=255" within "systemctl status sugarizer"
|
# OR YOU GET ERRORS: "status=255" within "systemctl status sugarizer"
|
||||||
# "Cannot find module 'path-prefix-proxy'" within "journalctl -eu sugarizer"
|
# "Cannot find module 'path-prefix-proxy'" within "journalctl -eu sugarizer"
|
||||||
- name: For http://box/sugarizer -- add pathPrefix lines in /opt/iiab/sugarizer-server/sugarizer.js
|
- name: For http://box/sugarizer -- add pathPrefix lines in /opt/iiab/sugarizer-server/sugarizer.js
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue