Bug 47624 - scripts for daily cronjobs to update the Apple School Manager
scripts for daily cronjobs to update the Apple School Manager
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: Apple School Manager
UCS@school 4.3
Other Linux
: P5 normal (vote)
: ---
Assigned To: Jürn Brodersen
Daniel Tröder
:
Depends on: 47623
Blocks: 47620
  Show dependency treegraph
 
Reported: 2018-08-21 09:20 CEST by Daniel Tröder
Modified: 2018-11-19 17:44 CET (History)
2 users (show)

See Also:
What kind of report is it?: Feature Request
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Tröder univentionstaff 2018-08-21 09:20:02 CEST
Create scripts for daily cronjobs to generate fresh OneRoster files and upload them to the Apple School Manager server.


+++ This bug was initially created as a clone of Bug #47620 +++

Create an app that allows uploading ZIP compressed CSV files to the Apple School Manager server to synchronize UCS@schoool users to Apple.

* create an app that can be installed on DC master and DC backup
* the apps configuration should be done with UCR variables
* use app settings as configuration wizard (to set the UCR variables)
* create scripts for cronjobs for daily uploads

This is a meta bug to track dependent bugs.
Comment 1 Daniel Tröder univentionstaff 2018-09-11 13:36:48 CEST
Backup the uploaded ZIP and log the backup-path.
This information will be required in support cases.
Comment 2 Jürn Brodersen univentionstaff 2018-09-13 11:31:17 CEST
A cron job can be activated through the app settings. Storing the zip file can also activated through the app settings.
Comment 3 Daniel Tröder univentionstaff 2018-09-18 16:49:55 CEST
OK: app installs
OK: app settings allow to set everything required
OK: app settings verify entered values
OK: app settings allow to start immediate synchronization

REOPEN: Please create UCRV descriptions for

asm/run_on_appsetting_save
asm/school_whitelist
asm/store_zip
asm/sync_daily/hour
asm/sync_daily
asm/username

REOPEN: Please handle an empty value of asm/sync_daily/hour in conffiles/etc/cron.d/asm-upload (default value or deactivate).
Comment 4 Daniel Tröder univentionstaff 2018-10-01 16:36:43 CEST
As discussed, the UCRVs set through the App Settings are documented on the App Settings page and do not need further documentation.
Comment 5 Daniel Tröder univentionstaff 2018-10-01 16:37:07 CEST
Everything OK then.
Comment 6 Daniel Tröder univentionstaff 2018-10-02 10:52:55 CEST
0cb8ed9294aca13b9e47c46b7c3508c9cc8cf282 broke asm/sync_daily=no.
Comment 7 Jürn Brodersen univentionstaff 2018-10-02 11:35:12 CEST
(In reply to Daniel Tröder from comment #6)
> 0cb8ed9294aca13b9e47c46b7c3508c9cc8cf282 broke asm/sync_daily=no.

:( should be fixed now

[4.3 b347ae4] Bug #47624: Fix asm/sync_daily
Comment 8 Daniel Tröder univentionstaff 2018-10-02 16:09:21 CEST
OK: cronjob

I built and uploaded the binary to the test app center.

univention-apple-school-manager-connector (1.0.0-13)
Comment 9 Daniel Tröder univentionstaff 2018-11-19 17:44:52 CET
App v1.1 has been released: https://www.univention.com/products/univention-app-center/app-catalog/apple-school-manager/