Platform Team/Server Kit/Mace: Difference between revisions

No edit summary
Line 47: Line 47:


# walk through the sources tree to collect all configuration source files for each supported service;
# walk through the sources tree to collect all configuration source files for each supported service;
# apply the particular service configuration by saving files, the backup copies will be kept;
# apply configuration by writing sources content to proper configuration files for particular service on particular OS, the backup copies will be kept;
# ask mace provider of particular service to make sure that everything, related to this service, is good, e.g., check if Prosody SSL keys/certificates exist and are not expired, or check if Squid's swap is created;
# ask mace provider of particular service to make sure that everything, related to this service, is good, e.g., check if Prosody SSL keys/certificates exist and are not expired, or check if Squid's swap is created;
# if a new configuration is different from a previous one, or if step 3 changed something in the system, restart this service;
# if a new configuration is different from a previous one, or if step 3 changed something in the system, restart this service;
# make sure that service will be started at boot time;
# make sure that service will be started at boot time;
# if all the previous steps aborted due to failures, revert to the original configuration.
# if all the previous steps aborted due to failures, revert to the original configuration.
To start applying process:
sudo mace apply -v
If sources path is not default {{Code|/etc/sugar-server}}, use {{Code|--input}} argument to specify the right one.


== Testing routines ==
== Testing routines ==