Skip to content

Add support for local environment

Administrator requested to merge support_local_env into master

This means: no public IP, no FQDN or public hostname, only local. Changes:

  • inventory adds the dev section, usable with --limit=dev parameter of ansible-playbook within the new host_vars, a copied secrets and a modified config. Base url must not use https, as we can't set certbot in private domains, and listenint to port 8080, as we are skipping totally ngninx and accessing directly to the opencell webserver

  • network-wise, ansible's target host need to know how to resolve opencell.local, or whatever the name we choose in the future. The simplest way is to set its hostname as such, so that it will resolve to a loopback IP addr. Finally, opencell/keycloak container needs to resolve the same hostname. In production, this translates to the public IP of the host, and in development, to the IP assigned by the VM manager we are using. Ansible just takes care of that.

  • TODO: Improve this setup: In order to use this host, one needs to:

    • set up a VM with access to the internet
    • accessible through SSH
    • with certificate (so that ansible wants to log in to it)
    • opencell.local needs to resolve to this VM IP addr.

    Future work with https://github.com/coopdevs/devenv/ could support this, as we already do something equivalent with LXC

Merge request reports

Loading