Commit graph

400 commits

Author SHA1 Message Date
opi
286ce86993 [fix] Catch IOError on tar creation (backup). 2016-05-06 12:00:33 +02:00
opi
5027ec0468 [fix] Pass app instance environment variables to remove script. 2016-05-03 16:42:04 +02:00
Jérôme Lebleu
3f0ad9139e [enh] Remove empty pending conf directory at regen-conf 2016-05-01 13:46:27 +02:00
Jérôme Lebleu
f1866c6113 [enh] Do not clean whole pending conf dir when names are given at regen-conf 2016-05-01 13:41:54 +02:00
Jérôme Lebleu
fcfb6de16e [fix] Handle when new conf is as current system conf in regen-conf 2016-05-01 12:49:48 +02:00
Jérôme Lebleu
fa89291504 [enh] Do not bind mounting if no backup archive is created (wip #298) 2016-04-30 17:19:12 +02:00
Jérôme Lebleu
c3fd005027 [enh] Allow to set env var for executed hooks in hooks_callback 2016-04-30 17:15:17 +02:00
Jérôme Lebleu
aae59b1d6e [enh] Small changes to env prepending in hook_exec 2016-04-28 21:03:22 +02:00
Julien Malik
c5d1ef981b [enh] Set env var for each app script and rename app variables 2016-04-28 21:03:17 +02:00
Julien Malik
7ce7d6fc15 [enh] Support passing env var to hook_exec 2016-04-28 20:43:22 +02:00
Jérôme Lebleu
a960c92b9f [fix] Clean properly backup tmp directory if it already exists (wip #298) 2016-04-27 11:07:28 +02:00
Jérôme Lebleu
31bedc5fa4 [enh] Catch boolean in is_true method of app.py 2016-04-26 15:56:06 +02:00
Jérôme Lebleu
fab1ddf7bb [fix] multi_instance manifest key is generally a string 2016-04-26 15:55:19 +02:00
Jérôme Lebleu
aca251e981 [enh] Prevent non-updated multi-instances apps installation (close #126) 2016-04-25 13:58:17 +02:00
Jérôme Lebleu
7a87fa7ebc [enh] Implement the intersection of package version SpecifierSet class 2016-04-25 12:17:10 +02:00
Jérôme Lebleu
86e10064e0 [fix] Correct argument index in __repr__ of utils.packages classes 2016-04-25 11:55:49 +02:00
Jérôme Lebleu
d280a08cee [enh] Implement the union of package version Specifier class 2016-04-25 11:18:08 +02:00
Jérôme Lebleu
3e1f9d223b [doc] Add documentation to contains methods of Specifier/SpecifierSet 2016-04-25 11:13:01 +02:00
Jérôme Lebleu
afda4a9c90 [enh] Implement the intersection of package version Specifier class 2016-04-25 10:58:19 +02:00
Jérôme Lebleu
55debefd56 [fix] Call regen-conf only once passing a list in domain_add/remove 2016-04-24 22:15:29 +02:00
Moul
55f4ff8d69 [fix] domains creation: regen_conf() were called with an old name of variable. 2016-04-24 00:21:26 +02:00
Jérôme Lebleu
e0ea752f6b [fix] Copy data without stat when processing regen conf file 2016-04-22 15:30:35 +02:00
Jérôme Lebleu
689b390342 [fix] Restore current_host and use only one backup path for it 2016-04-22 14:54:41 +02:00
Jérôme Lebleu
4912a2afae [fix] Init LDAP with package installation to fix ynh post-install 2016-04-21 22:59:36 +02:00
Jérôme Lebleu
7d2e7cb5e2 [fix] Get pending conf for all services if no one is provided 2016-04-21 21:57:35 +02:00
Jérôme Lebleu
cdf3c13bf5 [enh] Add a dry-run option for service_regen_conf 2016-04-19 20:52:45 +02:00
Jérôme Lebleu
26adf05042 [fix] Ensure that pending conf file is deleted after it's applied 2016-04-19 20:40:48 +02:00
Jérôme Lebleu
c81393425a [fix] Define common hooks arguments once in service_regen_conf 2016-04-19 20:10:02 +02:00
Jérôme Lebleu
b4cbe19865 [enh] Use more precise keys in service_regen_conf output 2016-04-19 11:42:56 +02:00
Jérôme Lebleu
d24cd494f3 [fix] Update package first install and call some conf_regen hooks with init 2016-04-16 19:32:18 +02:00
Jérôme Lebleu
13a649b6ef [enh] Append coma-separated successful conf changes to post conf_regen 2016-04-16 17:35:16 +02:00
Jérôme Lebleu
9229210538 [enh] Also show diff as needed with --list-pending in service_regen_conf 2016-04-11 20:42:21 +02:00
Jérôme Lebleu
a06a753fb6 [enh] Allow to list pending conf only in service_regen_conf 2016-04-11 19:03:48 +02:00
Jérôme Lebleu
de04028309 [fix] Keep only pending conf in conf regen 2016-04-11 19:01:12 +02:00
Jérôme Lebleu
eecf03ffbc [enh] Allow to show the diff between conf in service_regen_conf 2016-04-11 18:50:45 +02:00
Jérôme Lebleu
2309405e98 [enh] Refactor the conf regen for better conflicts handle
It rewrites some parts of the conf regen but try to keep as much as possible
the same logic - to prevent a too big refactoring. The main change is that
configuration file regen is now handle by service_regen_conf directly.

Hooks are now called twice with the following arguments respectively:
 * `"pre" $force $pending_dir`: it's time for the script to generate and put
   each configuration file to update/remove into `$pending_dir` with the
   right directory tree. To remove one, just touch an empty file.
 * `"post" $force`: this second time, the script may restart services, fix
   permissions, clean, ...

Between this two executions, the service_regen_conf will look for any files
under the `$pending_dir` and safely process them - either create, update or
remove the proper system configuration.
2016-04-11 17:11:41 +02:00
Jérôme Lebleu
3ed502894c [fix] Skip hidden and temp files in hook_list 2016-04-10 19:20:40 +02:00
Jérôme Lebleu
b053ba6ac1 Merge branch 'unstable' into regen-conf-enh 2016-04-10 17:01:33 +02:00
Jérôme Lebleu
c09e322d24 [fix] Use new service_regen_conf method name 2016-04-10 16:57:09 +02:00
Jérôme Lebleu
a26d921c0c [fix] Formatting 'args' in hook_callback is useless 2016-04-10 16:50:39 +02:00
Jérôme Lebleu
cf077a50aa [enh] Add pre/post script execution callbacks to hook_callback 2016-04-10 16:48:46 +02:00
Jérôme Lebleu
a7657c1a39 [ref] Deprecate and rename regenconf action to regen-conf 2016-04-10 10:42:30 +02:00
Jérôme Lebleu
a948be035a [i18n] Rename app_requirements_failed err named variable 2016-04-08 22:44:31 +02:00
Jérôme Lebleu
0339d8160d [fix] Remove ending comma in backup.py 2016-04-04 20:18:44 +02:00
Jérôme Lebleu
704151f5eb [fix] Move imports at the top in backup.py 2016-03-28 22:11:46 +02:00
Jérôme Lebleu
8a44179d00 [fix] Regenerate SSOwat conf after apps restoration 2016-03-28 22:07:59 +02:00
Jérôme Lebleu
bba6ec8cfb [fix] Execute backup/restore app scripts from the backup dir (bugfix #139) 2016-03-28 21:55:07 +02:00
Jérôme Lebleu
de08c14aa1 [enh] Allow to set script execution directory in hook_exec 2016-03-28 21:49:11 +02:00
Jérôme Lebleu
d11dd38e42 Merge branch 'testing' into unstable
This fixes DynDNS update.
2016-03-27 16:54:13 +02:00
Jérôme Lebleu
c99d56f2d5 Merge branch 'stable' into testing
This fixes DynDNS update.
2016-03-27 16:52:41 +02:00