From d0430fa7a7a032d92ed00634f321ca0f0322bf8d Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Thu, 23 May 2013 15:06:43 +0000 Subject: buildsystem: Change youri submit configuration The youri submit configuration has been changed. The following two template files : - youri/submit-todo.conf - youri/submit-upload.conf have been replaced by a common template file for youri submit-todo and youri submit-upload : - youri/submit.conf This new template file does not contain any specific configuration. Instead the youri configuration is now created using informations from the following hash variables : - the $youri_conf_default hash from buildsystem::var::youri, containing default configuration for the repository, the checks, actions and posts. - the $youri_conf parameter from buildsystem::var::youri, overriding infos from the default configuration defined in $youri_conf_default. - the distros specific configuration is defined in the $distros parameter from buildsystem::var::distros. All those variables contain configuration for both youri submit-todo and youri submit-upload. This change allows moving all Mageia specific configuration outside the buildsystem module to the class mga_buildsystem::config, while still keeping common configuration in the buildsystem module. The following checks definitions have also been removed from youri submit-todo configuration, because they are not used in the current configuration : - history - precedence - section - svn The 'version' check options for infra_1 and infra_2 have been moved from youri submit-upload to submit-todo configuration. --- modules/buildsystem/manifests/youri_submit_conf.pp | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 modules/buildsystem/manifests/youri_submit_conf.pp (limited to 'modules/buildsystem/manifests/youri_submit_conf.pp') diff --git a/modules/buildsystem/manifests/youri_submit_conf.pp b/modules/buildsystem/manifests/youri_submit_conf.pp new file mode 100644 index 00000000..9281713e --- /dev/null +++ b/modules/buildsystem/manifests/youri_submit_conf.pp @@ -0,0 +1,6 @@ +define buildsystem::youri_submit_conf($tmpl_file) { + $conf_name = $name + file { "/etc/youri/submit-${conf_name}.conf": + content => template($tmpl_file), + } +} -- cgit v1.2.1