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
e0ea752f6b
[fix] Copy data without stat when processing regen conf file
2016-04-22 15:30:35 +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
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
a7657c1a39
[ref] Deprecate and rename regenconf action to regen-conf
2016-04-10 10:42:30 +02:00
opi
468199c78f
[enh] Use named arguments when calling m18n in service.py
2016-03-27 12:48:48 +02:00
opi
f176c3061e
[enh] Better message during service regenconf.
2016-03-27 11:26:41 +02:00
Julien Malik
ec912d5074
[fix] Protect against empty files
2016-03-08 17:38:29 +01:00
Jérôme Lebleu
58145509e2
[fix] Split service_configuration_conflict translation key (fixbug #136 )
2016-01-02 11:46:17 +01:00
Jérôme Lebleu
40145648f0
[fix] Do not restrict warning to tty in service_saferemove
2015-11-14 23:40:16 +01:00
Jérôme Lebleu
b7fcf9ffdb
[enh] Quickly implement logging in service.py and use it to show the diff
2015-11-14 23:38:44 +01:00
kload
b72c8563c3
[fix] Translate regenconf messages in English and French
...
+ use the new {variable:s} format
2015-11-14 18:48:04 +01:00
Jérôme Lebleu
908d77f234
[ref] Rename lib folder to src
2015-10-08 15:47:24 +02:00