Commit graph

412 commits

Author SHA1 Message Date
e0e6597955 Reactive error tests 2024-06-30 12:11:41 +02:00
13aedef773 feat: add relative path support 2024-06-19 17:42:39 +02:00
gwen
bc4420bdea feat: add default inference for basic types 2024-06-19 16:47:25 +02:00
0d66bffd2f feat: suffixes in dynamic family should be a jinja function (#5)
Co-authored-by: Emmanuel Garette <egarette@silique.fr>
Co-authored-by: gwen <gwenaelremond@free.fr>
Reviewed-on: #5
Co-authored-by: egarette@silique.fr <egarette@silique.fr>
Co-committed-by: egarette@silique.fr <egarette@silique.fr>
2024-03-28 09:43:33 +01:00
f1a8f61347 feat: we should be able to customize a new variable type 2024-02-01 22:36:09 +01:00
84e36d57e4 fix: 2023 => 2024 2024-01-28 20:41:33 +01:00
728e53e16e fix: correction for calculated variable with a variable in a dynamic family 2024-01-28 18:58:20 +01:00
d8d3f89fd6 feat: new format 1.0 2023-12-16 19:22:52 +01:00
940b20f5d9 add mode for leader variable 2023-09-04 19:19:04 +02:00
763c7a4fb8 add jinja support in validator or fill 2023-09-04 19:18:40 +02:00
61569f3772 enhancement(src/rougail/annotator/variable.py) add variable name when test nil value 2023-07-28 08:49:35 +02:00
df7f33e786 document dict with option's information 2023-06-30 08:43:14 +02:00
697bf0ee02 2022 => 2022-2023 2023-06-22 12:43:48 +02:00
e3ced2d356 tiramisu 4 2023-06-22 12:39:58 +02:00
cf410f9577 certificate 2023-06-22 12:39:47 +02:00
a2c3a1bb3a variable is add to information target 2023-06-22 12:11:14 +02:00
91689904fc rougail use tiramisu4 2023-05-19 12:56:13 +02:00
4eccb75c73 engine can be customized 2023-05-11 16:01:50 +02:00
565abbbca3 add disabled family 2023-03-02 21:42:52 +01:00
cf4fe51555 add certificates support 2023-02-27 13:54:11 +01:00
6af98ec1e4 add unix_permissions option support and use it for mode 2023-01-27 11:15:51 +01:00
ffdeafcc29 add certificate support 2023-01-25 22:48:13 +01:00
2fd3c22db9 can templating only one file 2023-01-24 07:40:08 +01:00
f213f5777b add delete_before_create option for systemd tmpfile.d. 2023-01-23 20:41:35 +01:00
5b459927fb tmpfile_dest_dir => sereral options 2023-01-19 12:09:44 +01:00
540b108e8e test source has variable 2023-01-07 22:11:59 +01:00
f91132fc61 add remove fill without fill test + patches_dir is multi 2023-01-07 17:18:08 +01:00
369d11d6b2 getdefaultlocale is depreciate 2023-01-07 16:33:34 +01:00
b8e343c31d reorganize annotator loader 2023-01-07 16:33:06 +01:00
4765744953 add 'just_doc' option 2023-01-07 16:08:48 +01:00
c05a695b81 sort function in tiramisu file 2023-01-07 16:01:12 +01:00
7e38b4d952 creole => cheetah 2022-11-10 22:55:23 +01:00
a357d97e5a variable and family are list in yaml file + jinja2 => jinja 2022-11-10 19:09:19 +01:00
afd332b2a9 add Rougail object 2022-11-06 17:37:38 +01:00
1f3c59737a support of number value in yaml 2022-11-04 19:42:16 +01:00
61cbde95d0 use only boolean with yaml 2022-11-03 22:16:52 +01:00
Emmanuel Garette
8993dffe5b Add silique copyright 2022-11-02 23:00:42 +01:00
Emmanuel Garette
e16230064d dictionary can be a YAML file 2022-11-02 22:52:50 +01:00
Emmanuel Garette
f6143e843c loads multipe machine for one config 2022-10-01 22:27:22 +02:00
Emmanuel Garette
a058d4a20d test if auto_freeze variable exists 2022-06-11 08:47:57 +02:00
Emmanuel Garette
4e3f4201fc can change annotator descript 2022-06-11 08:35:35 +02:00
Emmanuel Garette
ea8bc3f02e add index function in leader 2022-05-22 19:17:35 +02:00
Emmanuel Garette
366ab9918b allow redefine 'multi' attribute 2022-05-22 18:50:34 +02:00
Emmanuel Garette
7409062d7f allow empty leadership 2022-05-22 18:49:56 +02:00
Emmanuel Garette
0f4e49149d add tmpfile_dest_dir option 2022-03-06 18:54:57 +01:00
Emmanuel Garette
b610d66fcd force 'configuration' namespace if update 2022-03-05 11:17:33 +01:00
Emmanuel Garette
9de06705e8 creole_legacy and creole have differents compilers 2022-03-05 11:16:58 +01:00
Emmanuel Garette
5c526cf2b4 add space parameter 2022-03-05 11:13:05 +01:00
Emmanuel Garette
d1d6a80fe7 add systemd timer + a service and a timer can have same name 2022-03-05 11:01:31 +01:00
Emmanuel Garette
fbc5f9374e owner and group could be a variable 2022-01-26 13:01:40 +01:00
Emmanuel Garette
4c011ee551 detect infinite loop 2022-01-19 18:24:00 +01:00
Emmanuel Garette
e8667848e9 remove included template 2022-01-09 18:43:54 +01:00
Emmanuel Garette
cdfa065550 add rougail_index 2022-01-09 13:33:05 +01:00
Emmanuel Garette
db00e384e6 personalise functions that can returns list 2022-01-09 13:24:53 +01:00
Emmanuel Garette
e6a69b8441 password => secret 2022-01-09 13:08:54 +01:00
Emmanuel Garette
0f0caa6c09 provider and hidden 2022-01-09 13:07:54 +01:00
Emmanuel Garette
8cf8c9b8eb provider support 2021-12-10 23:35:44 +01:00
Emmanuel Garette
757d9ec5c2 can disabled a file 2021-12-04 22:07:51 +01:00
Emmanuel Garette
703250c34f reorder dictionaries not only in same directory 2021-11-28 17:04:47 +01:00
Emmanuel Garette
8067baeb27 remove selinux relabel 2021-11-28 17:04:15 +01:00
Emmanuel Garette
d41a879ed9 add undisable attribut to service 2021-11-26 22:46:34 +01:00
Emmanuel Garette
a1c3b2b19c templates_dir and templates_dir can be a list 2021-11-26 21:54:26 +01:00
Emmanuel Garette
c7de427475 fix update 2021-11-26 08:47:21 +01:00
Emmanuel Garette
56d0a610ff upgrade 2021-11-24 19:15:38 +01:00
Emmanuel Garette
f9acc7d6f8 better leader support in extra 2021-11-23 08:51:03 +01:00
Emmanuel Garette
e75965fad2 do not allow empty XML directory 2021-09-13 11:26:38 +02:00
Emmanuel Garette
6f6b761e3d do not raise if origin directory is deleted 2021-08-28 07:21:44 +02:00
Emmanuel Garette
904bc270bb load extra annotator if not already done 2021-05-23 21:35:42 +02:00
Emmanuel Garette
38b30c12b4 could do extra['myvariable'] in templates 2021-05-22 16:32:22 +02:00
Emmanuel Garette
ed1ee9e8a6 can disable a service from an extra 2021-05-18 18:32:22 +02:00
Emmanuel Garette
ddf33faf91 add get_certificates has 'multi' function 2021-05-18 18:21:12 +02:00
Emmanuel Garette
1fb0ed5918 add swap service type 2021-05-18 18:20:43 +02:00
Emmanuel Garette
b89eaaf805 tmpfiles.d/rougail.conf => tmpfiles.d/0rougail.conf 2021-05-18 18:20:20 +02:00
Emmanuel Garette
21bee4715a new function zone_information returns a list 2021-05-16 06:53:40 +02:00
Emmanuel Garette
4711206c55 allow any character as service name 2021-05-14 07:00:55 +02:00
Emmanuel Garette
9c1589ca53 better systemd service support 2021-05-13 22:30:58 +02:00
Emmanuel Garette
20f329d433 remove_choice only avalable for choice 2021-05-06 07:06:42 +02:00
Emmanuel Garette
b35d930d7e valid_enum is now choice 2021-05-01 18:32:45 +02:00
Emmanuel Garette
d3008dc217 disabled a service (ref #4) 2021-04-29 18:20:05 +02:00
Emmanuel Garette
a87485abd2 default value for ParamInformation must be empty list for multi value 2021-04-26 17:56:41 +02:00
Emmanuel Garette
0e55679e8b cannot override an existing dictionary in upgrade 2021-04-16 09:20:54 +02:00
Emmanuel Garette
12111397e6 leadership in dynamic family + path of leadership in extra 2021-04-16 09:20:18 +02:00
Emmanuel Garette
e354352dc8 simplify group 2021-04-14 17:55:40 +02:00
Emmanuel Garette
e5737cd572 remove group constrainte, it's now a normal group 2021-04-13 19:05:01 +02:00
Emmanuel Garette
65d40f494f reident tests 2021-04-13 11:07:10 +02:00
Emmanuel Garette
cda68e88a2 fake files 2021-04-12 16:57:57 +02:00
Emmanuel Garette
f4471c4875 can add extra annotators 2021-04-12 15:04:38 +02:00
Emmanuel Garette
b7cedd85fb support leadership name in extra 2021-04-12 15:04:15 +02:00
Emmanuel Garette
3999969aa0 In creole template support of %%lead.follower2 and %%lead['follower2'] notation
%if 'follower1' in %%lead now search if a follower exists has follower
2021-04-04 19:46:05 +02:00
Emmanuel Garette
1249276b9d now we can personalise default setting for file et override 2021-04-04 11:03:49 +02:00
Emmanuel Garette
5add91082f auto_freeze_variable cannot be force_default_on_freeze 2021-03-28 15:49:40 +02:00
Emmanuel Garette
1c7e2b9f0b rougail/template is a module 2021-03-27 15:41:59 +01:00
Emmanuel Garette
17e7f4caa0 update improvment 2021-03-27 07:45:45 +01:00
Emmanuel Garette
2a77093187 param with tiramisu3 library 2021-03-27 07:45:11 +01:00
Emmanuel Garette
db69df3b86 external function support in fill 2021-03-27 07:44:42 +01:00
Emmanuel Garette
2b2cc4cf20 name in family or variable must be valid 2021-03-27 07:44:13 +01:00
Emmanuel Garette
20de4443ae do not generate empty file 2021-03-19 10:32:08 +01:00
Emmanuel Garette
1e6c9060b5 better debug information 2021-03-19 10:31:29 +01:00
Emmanuel Garette
e66a462710 add creole_client and is_empty in creole_legacy 2021-03-19 10:31:05 +01:00
Emmanuel Garette
9eb6a67ac6 manage fill with multi variable 2021-03-19 10:16:06 +01:00
Emmanuel Garette
d895c46729 auto_freeze is now allowed in extra 2021-03-19 10:15:34 +01:00
Emmanuel Garette
63e679036b add valid_enum with function and rename domain type to domainname 2021-03-19 10:14:08 +01:00
Emmanuel Garette
fc686e9b7f if name is a variable, it could be disabled 2021-03-08 17:56:28 +01:00
Emmanuel Garette
6a12504e8c remove variable in param and remove check 2021-03-08 06:52:49 +01:00
Emmanuel Garette
e11105db32 calculation with param 'information' from a variable 2021-03-08 06:52:01 +01:00
Emmanuel Garette
55c3021a5d first support to RougailUpgrade 2021-02-28 21:08:25 +01:00
Emmanuel Garette
5eeaaedded hack to support valid_network_netmask 2021-02-28 21:07:36 +01:00
Emmanuel Garette
b049cb9324 file name information if option is not found 2021-02-28 20:41:57 +01:00
Emmanuel Garette
cbd1081371 better support of auto_freeze 2021-02-28 20:40:18 +01:00
Emmanuel Garette
af8f0bfc9a support heritage 2021-02-28 20:38:45 +01:00
Emmanuel Garette
651d89dd04 add new engine creole_legacy 2021-02-28 20:16:57 +01:00
Emmanuel Garette
f4538004c7 activate with disabled variable 2021-02-27 18:07:03 +01:00
Emmanuel Garette
83156863da twice disable support 2021-02-27 17:24:18 +01:00
Emmanuel Garette
88f864cd2a allow multiple IP 2021-02-26 22:22:38 +01:00
Emmanuel Garette
3e7ae41061 check owner, deployed_service and various improvment 2021-02-26 20:38:17 +01:00
Emmanuel Garette
46ba8c8067 doc for valid_enum 2021-02-24 19:22:07 +01:00
Emmanuel Garette
54bf1c35a7 we can force mandatory to False 2021-02-23 21:36:26 +01:00
Emmanuel Garette
2ca7b9a6fc personaze mode 2021-02-22 19:28:51 +01:00
Emmanuel Garette
e6afef6a81 add servicelist 2021-02-21 19:48:30 +01:00
Emmanuel Garette
c149d7c38d include => included fixes #2 2021-02-21 16:58:56 +01:00
Emmanuel Garette
0be7a72d28 Add new attribute "include" to "file"
This attribute have 3 values:
- "no": it's a normal file
- "name": the name is included in another template so it is generated before other templates
- "content": the content is included in another template so it is generated before the other templates and is not installed on the server

fixes #2
2021-02-21 10:44:48 +01:00
Emmanuel Garette
20d8242d47 add jinja2 templating 2021-02-20 18:02:50 +01:00
Emmanuel Garette
807842e680 coverage + pylint 2021-02-20 16:07:38 +01:00
Emmanuel Garette
eb3720d6bf separate RougailTemplate to RougailSystemdTemplate 2021-02-20 15:46:13 +01:00
Emmanuel Garette
ba41b27dbf separate engine from template 2021-02-20 10:41:53 +01:00
Emmanuel Garette
99d9fb7e70 modes 2021-02-19 17:06:49 +01:00
Emmanuel Garette
04f8fc048c <file name='a'/> => <file>a</file> 2021-02-19 14:44:27 +01:00
Emmanuel Garette
ac0e510e40 manage 2021-02-19 12:31:12 +01:00
Emmanuel Garette
41620cc92e add manage service 2021-02-19 11:03:52 +01:00
Emmanuel Garette
bc25216c27 reworks on ip 2021-02-19 10:50:28 +01:00
Emmanuel Garette
0ccd3405db add 'version' to rougail attribut 2021-02-18 18:57:50 +01:00
Emmanuel Garette
493aeff04e pylint 2021-02-18 17:00:12 +01:00
Emmanuel Garette
88f5b20aa9 test index param 2021-02-18 14:08:57 +01:00
Emmanuel Garette
2e16bc2b90 update mode 2021-02-18 14:02:07 +01:00
Emmanuel Garette
e35a3cb19d add ParamIndex 2021-02-17 22:32:28 +01:00
Emmanuel Garette
3b2d96566b valid value in param 2021-02-17 17:30:06 +01:00
Emmanuel Garette
c11ae16ea0 add port_type example 2021-02-17 12:17:53 +01:00
Emmanuel Garette
0c4deb1016 name of file is a filename 2021-02-17 09:52:17 +01:00
Emmanuel Garette
c7ea03b411 check symlink type for _type in service 2021-02-17 07:48:19 +01:00
Emmanuel Garette
85151da58d a family and a variable cannot have the same path 2021-02-16 13:45:43 +01:00
Emmanuel Garette
e60fd4adbc check variable and family name 2021-02-16 12:08:45 +01:00
Emmanuel Garette
bd299e3d2b documentation + fallback on condition 2021-02-16 10:22:29 +01:00
Emmanuel Garette
6d571d8cac mandatory_if_in only for variables 2021-02-15 18:52:12 +01:00
Emmanuel Garette
86ec629ce3 support optional to condition to *list 2021-02-15 18:23:57 +01:00
Emmanuel Garette
d1a39e5183 add in RougailConfig auto_freeze_variable 2021-02-14 18:42:16 +01:00
Emmanuel Garette
b0588768af some correction 2021-02-14 17:48:50 +01:00
Emmanuel Garette
0abd4398c7 Simply library usage 2021-02-14 10:11:34 +01:00
Emmanuel Garette
5f76065597 better support type in params 2021-02-12 18:08:28 +01:00
Emmanuel Garette
ce507a84f9 support family in family 2021-02-12 07:48:27 +01:00
Emmanuel Garette
8d47923abe fill's documentation 2021-02-10 08:19:33 +01:00