-
-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
164 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,162 @@ | ||
Enabling OpenWISP Modules | ||
========================= | ||
|
||
.. contents:: | ||
:depth: 1 | ||
:local: | ||
|
||
Enabling the Monitoring Module | ||
------------------------------ | ||
|
||
The :doc:`Monitoring module </monitoring/index>` is enabled by default, it | ||
can be disabled by setting ``openwisp2_monitoring`` to ``false``. | ||
|
||
Enabling the Firmware Upgrader Module | ||
------------------------------------- | ||
|
||
It is encouraged that you read the :doc:`quick-start guide of | ||
openwisp-firmware-upgrader </firmware-upgrader/user/quickstart>` before | ||
going ahead. | ||
|
||
To enable the :doc:`Firmware Upgrader </firmware-upgrader/index>` module | ||
you need to set ``openwisp2_firmware_upgrader`` to ``true`` in your | ||
``playbook.yml`` file. Here's a short summary of how to do this: | ||
|
||
**Step 1**: :ref:`Install ansible <ansible_install>` | ||
|
||
**Step 2**: :ref:`Install this role <ansible_install_role>` | ||
|
||
**Step 3**: :ref:`Create inventory file <ansible_create_inventory_file>` | ||
|
||
**Step 4**: Create a playbook file with following contents: | ||
|
||
.. code-block:: yaml | ||
- hosts: openwisp2 | ||
become: "{{ become | default('yes') }}" | ||
roles: | ||
- openwisp.openwisp2 | ||
vars: | ||
openwisp2_firmware_upgrader: true | ||
**Step 5**: :ref:`Run the playbook <ansible_run_playbook>` | ||
|
||
When the playbook is done running, if you got no errors you can login at | ||
https://openwisp2.mydomain.com/admin with the following credentials: | ||
|
||
.. code-block:: text | ||
username: admin | ||
password: admin | ||
You can configure :doc:`openwisp-firmware-upgrader specific settings | ||
</firmware-upgrader/user/settings>` using the | ||
``openwisp2_extra_django_settings`` or | ||
``openwisp2_extra_django_settings_instructions``. | ||
|
||
E.g: | ||
|
||
.. code-block:: yaml | ||
- hosts: openwisp2 | ||
become: "{{ become | default('yes') }}" | ||
roles: | ||
- openwisp.openwisp2 | ||
vars: | ||
openwisp2_firmware_upgrader: true | ||
openwisp2_extra_django_settings_instructions: | ||
- | | ||
OPENWISP_CUSTOM_OPENWRT_IMAGES = ( | ||
('my-custom-image-squashfs-sysupgrade.bin', { | ||
'label': 'My Custom Image', | ||
'boards': ('MyCustomImage',) | ||
}), | ||
) | ||
Refer the :doc:`role-variables` section of the documentation for a | ||
complete list of available role variables. | ||
|
||
Enabling the Network Topology Module | ||
------------------------------------ | ||
|
||
To enable the :doc:`Network Topology module </network-topology/index>` you | ||
need to set ``openwisp2_network_topology`` to ``true`` in your | ||
``playbook.yml`` file. Here's a short summary of how to do this: | ||
|
||
**Step 1**: :ref:`Install ansible <ansible_install>` | ||
|
||
**Step 2**: :ref:`Install this role <ansible_install_role>` | ||
|
||
**Step 3**: :ref:`Create inventory file <ansible_create_inventory_file>` | ||
|
||
**Step 4**: Create a playbook file with following contents: | ||
|
||
.. code-block:: yaml | ||
- hosts: openwisp2 | ||
become: "{{ become | default('yes') }}" | ||
roles: | ||
- openwisp.openwisp2 | ||
vars: | ||
openwisp2_network_topology: true | ||
**Step 5**: :ref:`Run the playbook <ansible_run_playbook>` | ||
|
||
When the playbook is done running, if you got no errors you can login at | ||
https://openwisp2.mydomain.com/admin with the following credentials: | ||
|
||
.. code-block:: text | ||
username: admin | ||
password: admin | ||
Enabling the RADIUS Module | ||
-------------------------- | ||
|
||
To enable the :doc:`RADIUS module </user/radius>` you need to set | ||
``openwisp2_radius`` to ``true`` in your ``playbook.yml`` file. Here's a | ||
short summary of how to do this: | ||
|
||
**Step 1**: :ref:`Install ansible <ansible_install>` | ||
|
||
**Step 2**: :ref:`Install this role <ansible_install_role>` | ||
|
||
**Step 3**: :ref:`Create inventory file <ansible_create_inventory_file>` | ||
|
||
**Step 4**: Create a playbook file with following contents: | ||
|
||
.. code-block:: yaml | ||
- hosts: openwisp2 | ||
become: "{{ become | default('yes') }}" | ||
roles: | ||
- openwisp.openwisp2 | ||
vars: | ||
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 | ||
.. note:: | ||
|
||
``openwisp2_freeradius_install`` option provides a basic configuration | ||
of freeradius for OpenIWSP, it sets up the `radius user token | ||
mechanism | ||
<https://openwisp-radius.readthedocs.io/en/latest/user/api.html#radius-user-token-recommended>`__ | ||
if you want to use another mechanism or manage your freeradius | ||
separately, please disable this option by setting it to ``false``. | ||
|
||
**Step 5**: :ref:`Run the playbook <ansible_run_playbook>` | ||
|
||
When the playbook is done running, if you got no errors you can login at: | ||
|
||
.. code-block:: | ||
https://openwisp2.mydomain.com/admin | ||
username: admin | ||
password: admin | ||
**Note:** for more information regarding radius configuration options, | ||
look for the word “radius” in the :doc:`role-variables` section of this | ||
document. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.