Skip to content

Commit

Permalink
N21-2190 add media metadata cronjob
Browse files Browse the repository at this point in the history
  • Loading branch information
GordonNicholasCap committed Jan 16, 2025
1 parent 8fa9ca3 commit b90c00d
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions ansible/group_vars/all/with.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ WITH_MIGRATION_SYSTEMS: false
WITH_COMMON_CARTRIDGE: false
WITH_CLAMMIT: false
WITH_MEDIA_LICENSES: false
WITH_MEDIA_METADATA_SYNC: false
1 change: 1 addition & 0 deletions ansible/group_vars/develop/cfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ SERVER_TSP_SYNC_BASE_CRONJOB: "{{ SERVER_TSP_RANDOM|int + 9 }} 3 * * *"
SERVER_TSP_SYNC_SCHOOL_CRONJOB: "{{ SERVER_TSP_RANDOM|int + 39 }} 3 * * *"
ROCKETCHAT_FIXUP_CRONJOB_SCHEDULE: "{{ 5 | random(seed=NAMESPACE) }}/5 * * * *"
SERVER_VIDIS_SYNC_CRONJOB_SCHEDULE: "{{ 20 | random(seed=NAMESPACE) }} 4 * * *"
SERVER_MEDIA_METADATA_SYNC_CRONJOB_SCHEDULE: "{{ 30 | random(seed=NAMESPACE) }} 2 * * *"

# JWT_PUBLIC_KEY must be single quoted. When using double quotes newlines are replaced by spaces.
JWT_PUBLIC_KEY: '-----BEGIN RSA PUBLIC KEY-----\nMIICCgKCAgEAqYX8ofa9B+nL+IIPxHJSWgq/ZRYV95uwWkSsGAKG7pkRGhi9VrRr\nUxsVz8LWV2ZEL5+kgaPBmZgGixNk3Kmta86I3h6c0YS/GtD24D8rTdGnmH4LnwSv\n1VTfM5Wjo628cM7GD8SMSOr0iwMH/pEoDOISvfc4YPodO8KgUOFxEk/Py7fCIqNd\n2k60hFpodUt6aqP0gR2vt5Cd4qpRsxxQxJFmb3g57LOt3TOu6I2qD5FaMWEeyMdY\nPxm2DJex9FAxL5PtvDgMNa3u7L5tFysBy/axxpZtuPDYBzU5UeSG0izNEr1q/ZJr\nAqzcVaIvqXKM64iZS1CoP3QlCL/wcZUqPB25VHji7PV2Ddb23oyi7kNQ70c2hp8a\n3m8LRz9vVyNVby+yIdgMUaCboT/K8MocA9hNyb53zLMjDi+1QXx/CrU4BQQiPVvE\n+7wuywO9VGVX7Xfvm3aIWN3r6qPOb6IOhaoFXlXUaENEmyTxaRCsWzJTHL8Fao+x\nq+dwaarp32XfFLLj4LwMKosB5pSFXMXH8mhQiKTgU1BnVrcxvkNWbO84OLX4gHDq\nkODyueBDmkaUwEOuPZnPLZMi/EFHeJIf3xeqcexZ8MiIvu6GSSx+6ZSF2orRsZ6T\nvpD/2o9N4cgF8+U3ng37nM9ohaSSuG+ZnUFlQwEP7FJ7mHl/JS63VEUCAwEAAQ==\n-----END RSA PUBLIC KEY-----\n'
4 changes: 4 additions & 0 deletions ansible/group_vars/production/resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,7 @@ MEDIA_ACTIVATION_CPU_LIMITS: "2000m"
MEDIA_ACTIVATION_CPU_REQUESTS: "100m"
MEDIA_ACTIVATION_MEMORY_LIMITS: "2Gi"
MEDIA_ACTIVATION_MEMORY_REQUESTS: "2Gi"
MEDIA_METADATA_SYNC_CPU_LIMITS: "2000m"
MEDIA_METADATA_SYNC_CPU_REQUESTS: "100m"
MEDIA_METADATA_SYNC_MEMORY_LIMITS: "2Gi"
MEDIA_METADATA_SYNC_MEMORY_REQUESTS: "2Gi"
4 changes: 4 additions & 0 deletions ansible/group_vars/reference/resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,7 @@ MEDIA_ACTIVATION_CPU_LIMITS: "2000m"
MEDIA_ACTIVATION_CPU_REQUESTS: "100m"
MEDIA_ACTIVATION_MEMORY_LIMITS: "2Gi"
MEDIA_ACTIVATION_MEMORY_REQUESTS: "2Gi"
MEDIA_METADATA_SYNC_CPU_LIMITS: "2000m"
MEDIA_METADATA_SYNC_CPU_REQUESTS: "100m"
MEDIA_METADATA_SYNC_MEMORY_LIMITS: "2Gi"
MEDIA_METADATA_SYNC_MEMORY_REQUESTS: "2Gi"
2 changes: 2 additions & 0 deletions ansible/host_vars/nbc_host/with.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# Media License (VIDIS)
WITH_MEDIA_LICENSES: true

WITH_MEDIA_METADATA_SYNC: true
2 changes: 2 additions & 0 deletions ansible/host_vars/prod-nbc/with.yml
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
WITH_STORAGE: false

WITH_MEDIA_METADATA_SYNC: false
2 changes: 2 additions & 0 deletions ansible/host_vars/ref-nbc/with.yml
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
WITH_STORAGE: true

WITH_MEDIA_METADATA_SYNC: false
1 change: 1 addition & 0 deletions ansible/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@
- post_deployment
- moin-schule-sync
- media-licenses
- media-metadata-sync
1 change: 1 addition & 0 deletions ansible/playbook_rollout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,4 @@
- role: moin-schule-sync
when: WITH_MOIN_SCHULE is defined and WITH_MOIN_SCHULE|bool
- role: media-licenses
- role: media-metadata-sync

0 comments on commit b90c00d

Please sign in to comment.