Re: [openwisp] Openwisp2 modules

2024-06-17 Thread Federico Capoano
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

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/openwisp/CAAGgX6K%3D0OKdU4N0xNZH7y9ZXb1YRfuZr8%2BiJ2Qg1a%3D_5QQLYA%40mail.gmail.com.


Re: [openwisp] Openwisp2 modules

2024-06-17 Thread Tommaso Feola
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@x.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




Il giorno lun 17 giu 2024 alle ore 04:46 Federico Capoano <
f.capo...@openwisp.io> ha scritto:

> 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
>
> On Sun, 16 Jun 2024 at 17:09, Tommaso Feola 
> wrote:
>
>>
>> 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
>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> To view this discussion on the web, visit
>> https://groups.google.com/d/msgid/openwisp/b6b71c2e-a8dd-4fd2-b45a-ae9df0f9371cn%40googlegroups.com
>> 
>> .
>>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/openwisp/CAAGgX6%2BKTs7OojPX2%2BTMZ8Fw-M0q41%2B0WTssFnGq2LgkYNj3og%40mail.gmail.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/openwisp/CAJ3z%3DhuXgXfmYsxe1J0ZQ1%3DXCvFc6ChirmEPgQufOmzuPPpvZQ%40mail.gmail.com.