Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Openwisp2 modules

28 views
Skip to first unread message

Tommaso Feola

unread,
Jun 16, 2024, 5:09:51 PM6/16/24
to OpenWISP

I installed Openwisp2: it works correctly, but I would like to understand if it is possible to disable modules post-installation and what is the correct method to do it .

Thank you

Tommaso

Federico Capoano

unread,
Jun 16, 2024, 10:46:21 PM6/16/24
to open...@googlegroups.com
If you're using the ansible-openwisp2 role (https://github.com/openwisp/ansible-openwisp2), you can disable a specific module by setting its corresponding flag to false
The README provides instructions on how to enable modules, and you can use the same variables to disable them.

There are other methods as well. Could you please specify which modules you want to disable and the deployment method you used?

Technically, most modules can function as standalone applications if necessary, but some modules depend on others.
For more information on these dependencies, please refer to the architecture documentation: https://openwisp.io/docs/general/architecture.html

I hope this helps. Let us know if you have any further questions.

Best regards
Federico Capoano

--
You received this message because you are subscribed to the Google Groups "OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/b6b71c2e-a8dd-4fd2-b45a-ae9df0f9371cn%40googlegroups.com.

Tommaso Feola

unread,
Jun 17, 2024, 2:56:01 AM6/17/24
to open...@googlegroups.com
good morning,


i used ansible-openwisp2 role using the follow playbook.yml :

- hosts: openwisp2
  become: "{{ become | default('yes') }}"
  roles:
    - openwisp.openwisp2
  vars:
    openwisp2_default_from_email: "hostmaster@xxxxx.t"
    openwisp2_radius: true
    openwisp2_freeradius_install: true
    # set to false when you don't want to register openwisp-radius
    # API endpoints.
    openwisp2_radius_urls: true

Now, I just want to use the openwisp-radius module : to disable, for example, openwisp2_ipam module, where I have set the flag "false" ?

I tried to set in /root/.ansible/roles/openwisp.openwisp2/default/main.yml  openwisp2_ipam: false , but I still see the module active in web gui.

Thank you




Federico Capoano

unread,
Jun 17, 2024, 10:09:21 AM6/17/24
to open...@googlegroups.com
The ansible role was designed mainly to deploy OpenWISP Controller and other optional modules that are aimed at network management and visualization.
At a later stage we added the RADIUS module, but the Controller module is still the default module installed.

In this case, you could add some custom python settings at the end of settings.py that remove the modules you don't want from INSTALLED_APPS, e.g.:

INSTALLED_APPS.remove('openwisp_controller')
INSTALLED_APPS.remove('openwisp_ipam')

If you want to continue handling the playbook with ansible you can use the "openwisp2_extra_django_settings_instructions" variable to add these settings.
But before doing it with ansible I would try this manually, eg:

cd /opt/openwisp2
source env/bin/activate
vim openwisp2/settings.py
# add the custom instructions, save and exit
# now try to launch the django shell to see if any error comes up
./manage.py shell_plus

If an exception is raised, you may need to adjust some more settings.

I hope this helps.
Federico

Tommaso Feola

unread,
Jun 18, 2024, 11:00:14 AM6/18/24
to open...@googlegroups.com

However, if I try to add to the end of setting.py

INSTALLED_APPS.remove('openwisp_controller')
INSTALLED_APPS.remove('openwisp_ipam')

I get an internal error from the web server which I cannot intercept in the log files .

thank you
Tommaso

--
You received this message because you are subscribed to the Google Groups "OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+u...@googlegroups.com.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages