/[adm]/puppet/modules/buildsystem/manifests/youri_submit_conf.pp
ViewVC logotype

Contents of /puppet/modules/buildsystem/manifests/youri_submit_conf.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3162 - (show annotations) (download)
Thu May 23 15:06:43 2013 UTC (10 years, 10 months ago) by boklm
File size: 167 byte(s)
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.
1 define buildsystem::youri_submit_conf($tmpl_file) {
2 $conf_name = $name
3 file { "/etc/youri/submit-${conf_name}.conf":
4 content => template($tmpl_file),
5 }
6 }

  ViewVC Help
Powered by ViewVC 1.1.30