mongulu-cm / lobembe

Tools used by the collective for self-management
https://lobembe.mongulu.cm
GNU General Public License v3.0
2 stars 0 forks source link
aws python3 terraform

lòbèmbè

Commitizen friendly

Baka language meaning a half-hut, often rectangular and wide open

Provides access to services used internally by the mongulu collective. An exhasutive list is accessible here: https://lobembe.mongulu.cm/

Prerequisites

On the AWS cloud:

On your computer :

Deployment

Tools

In our case, we deployed it on an Oracle Cloud instance (ubuntu image) with the option always free tier We must first open HTTP/HTTPS:

  sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 80 -j ACCEPT
  sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 443 -j ACCEPT
  sudo netfilter-persistent save

Then install matomo, heimdall and nginx for reverse proxy:

  export ANSIBLE_CONFIG=./ansible.cfg
  ansible-galaxy install -r requirements.yml
  secretsfoundry run --script 'ansible-playbook main.yml' ( in case of issue with matomo, just re-execute the playbook )

You should get a 503 error when accessing to matomo site. To correct this, run on the instance:

  sudo systemctl status php7.4-fpm.service
  sudo systemctl restart nginx

Blog

  pushd infra/ ; terraform apply; popd
  aws s3 sync --delete meeting_notes/_site s3://blog.mongulu.cm

Tests

  cd scripts/
  pytest test_reminder.py