Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sugarizer-server-1.5.0 #3478

Merged
merged 2 commits into from Feb 16, 2023
Merged

sugarizer-server-1.5.0 #3478

merged 2 commits into from Feb 16, 2023

Conversation

@holta holta added this to the 8.1 milestone Feb 15, 2023
@holta
Copy link
Member Author

holta commented Feb 16, 2023

Tested on Ubuntu Server 23.04

@holta holta marked this pull request as ready for review February 16, 2023 00:05
@holta holta merged commit 0af529b into iiab:master Feb 16, 2023
@holta
Copy link
Member Author

holta commented Feb 24, 2023

MongoDB minimal version is now 3.2+

Just FYI Sugarizer Server 1.5.0's new MongoDB 3.2 requirement...obviously does not work with IIAB's current 32-bit ARM installing of MongoDB 3.0.1

- block:
- name: Create dir /tmp/mongodb-3.0.1x (aarch32)
file:
path: /tmp/mongodb-3.0.1x
state: directory
- name: Download & unzip 20MB https://download.iiab.io/packages/mongodb_stretch_3_0_14_core.zip to /tmp/mongodb-3.0.1x (aarch32)
unarchive:
remote_src: yes
src: "{{ iiab_download_url }}/mongodb_stretch_3_0_14_core.zip" # https://download.iiab.io/packages
dest: /tmp/mongodb-3.0.1x
- name: Install (move) its 3 CORE binaries from /tmp/mongodb-3.0.1x/core to /usr/bin (aarch32)
shell: mv /tmp/mongodb-3.0.1x/core/* /usr/bin
- name: Download & unzip 15MB https://download.iiab.io/packages/mongodb_stretch_3_0_14_tools.zip [IN FACT THIS ONE'S 3.0.15] to /tmp/mongodb-3.0.1x (aarch32)
unarchive:
remote_src: yes
src: "{{ iiab_download_url }}/mongodb_stretch_3_0_14_tools.zip"
dest: /tmp/mongodb-3.0.1x
- name: Install (move) its 9 TOOLS binaries from /opt/iiab/downloads/mongodb-3.0.1x/tools to /usr/bin (aarch32)
shell: mv /tmp/mongodb-3.0.1x/tools/* /usr/bin
- name: Create Linux group mongodb (aarch32)
group:
name: mongodb
state: present
- name: Create Linux user mongodb (aarch32)
user:
name: mongodb
group: mongodb # primary group
groups: mongodb
home: /var/lib/mongodb
shell: /usr/sbin/nologin
- name: Install {{ mongodb_conf }} from template (aarch32)
template:
src: mongod.conf.j2
dest: "{{ mongodb_conf }}" # /etc/mongod.conf
- name: 'Create 2 dirs: /var/lib/mongodb, /var/log/mongodb (mongodb:mongodb)'
file:
state: directory
path: "{{ item }}"
owner: mongodb
group: mongodb
with_items:
- /var/lib/mongodb
- /var/log/mongodb
# end block
when: not (ansible_architecture == "x86_64" or ansible_architecture == "aarch64")

RECAP: https://andyfelong.com/2017/08/mongodb-3-0-14-for-raspbian-stretch/ helped us through the past 6 years, however at this time servers needing Sugarizer should really use 64-bit RasPiOS instead. In short, my vote is to declare this "WONTFIX" as we're well into a new decade now, facing a completely different landscape from 6 years ago.

Tangentially Related:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant