From a94a55631e23f9de2a4068330c63b96751434154 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Fri, 7 Jan 2011 00:19:21 +0000 Subject: Add config for the second youri (third one is dead!) --- modules/buildsystem/manifests/init.pp | 7 ++ modules/buildsystem/templates/submit-queue.conf | 161 ++++++++++++++++++++++++ 2 files changed, 168 insertions(+) create mode 100644 modules/buildsystem/templates/submit-queue.conf (limited to 'modules/buildsystem') diff --git a/modules/buildsystem/manifests/init.pp b/modules/buildsystem/manifests/init.pp index ed9d70d7..f1230c00 100644 --- a/modules/buildsystem/manifests/init.pp +++ b/modules/buildsystem/manifests/init.pp @@ -141,6 +141,13 @@ class buildsystem { require => File["/etc/youri"], content => template("buildsystem/submit-todo.conf") } + + file { "/etc/youri/submit-queue.conf": + ensure => present, + mode => 644, + require => File["/etc/youri"], + content => template("buildsystem/submit-queue.conf") + } } define sshuser($homedir, $comment) { diff --git a/modules/buildsystem/templates/submit-queue.conf b/modules/buildsystem/templates/submit-queue.conf new file mode 100644 index 00000000..318cfe5a --- /dev/null +++ b/modules/buildsystem/templates/submit-queue.conf @@ -0,0 +1,161 @@ + + +home: /home/schedbot + +# repository declaration +repository: + class: Youri::Repository::Mageia_upload + options: + install_root: /distrib/bootstrap/distrib + upload_root: ${home}/uploads/ + upload_state: queue + queue: queue + noarch: i586 + svn: svn+ssh://svn.mageia.org/svn/packages/cauldron/ + 1.0: + arch: i586 x86_64 + cauldron: + arch: i586 x86_64 + +# targets definition +targets: + cauldron: + checks: + - version + - tag + - acl + - rpmlint + - recency + - queue_recency + actions: +# - sign + - install + - link +# - mail +# - archive + - clean + + 1.0: + checks: + - version + - tag + - acl + - rpmlint + - recency + - queue_recency + actions: +# - sign + - install + - link +# - mail +# - archive + - clean + +# checks definition +checks: + tag: + class: Youri::Submit::Check::Tag + options: + tags: + release: 'mga\d+' + # packager: '<\S+@mageia\.org>$' + distribution: '^Mageia' + vendor: '^Mageia.org$' + + recency: + class: Youri::Submit::Check::Recency + + queue_recency: + class: Youri::Submit::Check::Queue_recency + + host: + class: Youri::Submit::Check::Host + options: + host_file: /etc/youri/host.conf + + section: + class: Youri::Submit::Check::Section + + rpmlint: + class: Youri::Submit::Check::Rpmlint + options: + config: /etc/rpmlint/config + results: + - buildprereq-use + - no-description-tag + - no-summary-tag + - non-standard-group + - non-xdg-migrated-menu + # it breaks dbus + #- patch-not-applied + - percent-in-conflicts + - percent-in-dependency + - percent-in-obsoletes + - percent-in-provides + - summary-ended-with-dot + + svn: + class: Youri::Submit::Check::SVN + + acl: + class: Youri::Submit::Check::ACL + options: + acl_file: /etc/youri/acl.conf + + history: + class: Youri::Submit::Check::History + + source: + class: Youri::Submit::Check::Source + + precedence: + class: Youri::Submit::Check::Precedence + options: + target: cauldron + + version: + class: Youri::Submit::Check::Version + options: + 1.0: + authorized_packages: none_package_authorized + authorized_sections: ^[a-z]+/(updates|testing|backports|backports_testing)$ + authorized_arches: none + mode: freeze + + cauldron: +# Prior freeze + authorized_sections: ^[a-z]+/(release|testing)$ + authorized_arches: .* + mode: normal +## Version freeze +# authorized_packages: ^$ +# authorized_sections: ^main/testing|contrib/testing$ +# authorized_arches: ^$ +# authorized_users: ^blino|ennael|nvigier$ +# mode: version_freeze +# Freeze config +# authorized_packages: ^mdkonline|drakxtools|urpmi|ia_ora-gnome|ldetect|ldetect-lst|rpm-mageia-setup|perl-MDK-Common$ +# authorized_packages: none_package_authorized +# authorized_sections: ^restricted/release|main/testing|contrib/testing$ +# authorized_arches: none +# authorized_users: ^blino|ennael|nvigier$ +# mode: freeze + +# actions definitions +actions: + install: + class: Youri::Submit::Action::Install + + markrelease: + class: Youri::Upload::Action::Markrelease + + link: + class: Youri::Upload::Action::Link + + archive: + class: Youri::Upload::Action::Archive + + clean: + class: Youri::Upload::Action::Clean + +# vim:ft=yaml:et:sw=4 -- cgit v1.2.1