Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ openwisp2_celery_firmware_upgrader_concurrency: 1
openwisp2_celery_firmware_upgrader_autoscale:
openwisp2_celery_firmware_upgrader_prefetch_multiplier: 1
openwisp2_celery_firmware_upgrader_optimization: fair
openwisp2_firmware_upgrader_check_pending_period_minutes: 10
openwisp2_firmware_upgrader_reminder_scan_period_days: 7
openwisp2_celery_monitoring: true
openwisp2_celery_monitoring_concurrency: 2
openwisp2_celery_monitoring_autoscale:
Expand Down Expand Up @@ -234,5 +236,6 @@ openwisp2_usage_metric_collection: true
openwisp2_monitoring_periodic_tasks: true
openwisp2_radius_periodic_tasks: true
openwisp2_usage_metric_collection_periodic_tasks: true
openwisp2_firmware_upgrader_periodic_tasks: true
# point {{ inventory_name }} to localhost in /etc/hosts
openwisp2_inventory_hostname_localhost: true
3 changes: 3 additions & 0 deletions docs/user/role-variables.rst
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,9 @@ take a look at `the default values of these variables
openwisp2_monitoring_periodic_tasks: true
openwisp2_radius_periodic_tasks: true
openwisp2_usage_metric_collection_periodic_tasks: true
openwisp2_firmware_upgrader_periodic_tasks: true
openwisp2_firmware_upgrader_check_pending_period_minutes: 10
openwisp2_firmware_upgrader_reminder_scan_period_days: 7
# point {{ inventory_name }} to localhost in /etc/hosts
openwisp2_inventory_hostname_localhost: true
# this role provides a default configuration of freeradius
Expand Down
1 change: 1 addition & 0 deletions molecule/resources/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
vars:
openwisp2_network_topology: true
openwisp2_firmware_upgrader: true
openwisp2_firmware_upgrader_version: "openwisp-firmware-upgrader @ https://github.com/openwisp/openwisp-firmware-upgrader/tarball/issues/417-persistence-schema-fields"
openwisp2_radius: true
openwisp2_controller_subnet_division: true
openwisp2_uwsgi_extra_conf: |
Expand Down
10 changes: 10 additions & 0 deletions templates/openwisp2/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,16 @@
"schedule": timedelta(minutes=5),
},
{% endif %}
{% if openwisp2_firmware_upgrader and openwisp2_firmware_upgrader_periodic_tasks %}
"check_pending_upgrades": {
"task": "openwisp_firmware_upgrader.tasks.check_pending_upgrades",
"schedule": timedelta(minutes={{ openwisp2_firmware_upgrader_check_pending_period_minutes }}),
},
"send_pending_upgrade_reminders": {
"task": "openwisp_firmware_upgrader.tasks.send_pending_upgrade_reminders",
"schedule": timedelta(days={{ openwisp2_firmware_upgrader_reminder_scan_period_days }}),
},
{% endif %}
{% if openwisp2_radius and openwisp2_radius_periodic_tasks %}
"delete_old_radiusbatch_users": {
"task": "openwisp_radius.tasks.delete_old_radiusbatch_users",
Expand Down
Loading