Provide means to reconfigure Apache/PHP/nginx on VMSS after initial deployment #121
Labels
enhancement
New feature or request
Priority 1 (may address)
Pull Requests very welcome, but we are unlikely to get to this ourselves.
Currently it's not easy to reconfigure Apache/PHP/nginx on VMSS after initial deployment. #120 introduced a hook for a custom script (
/moodle/bin/update-vmss-config
) to run every minute. However, the author of such a script must be careful making the script idempotent (that is, executing the script multiple times should be the same as executing it just once, because it's run as a cron job), and make sure to delete the script after all the VMSS instances are updated. Deleting the script would be still problematic because any newly created instances will not be able to run the script. At this point, implementing idempotency in the script seems to be the only solution.We should provide a better means to allow users to reconfigure Apache/PHP/nginx on VMSS after initial deployment. The html content update is done by
/usr/local/bin/sync_moodle_html_local_copy_if_modified.sh
that's triggered byupdate_last_modified_time.moodle_on_azure.sh
on the controller machine. We should integrate these two into one and provide a uniform way of updating both the html content (php scripts) and the Apache/PHP/nginx configs as well. This is also related to #79, as we'll ultimately need some configuration file that'll control initial installation and later updates.The text was updated successfully, but these errors were encountered: