aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem
diff options
context:
space:
mode:
authorOlivier Blin <blino@mageia.org>2010-12-08 07:33:18 +0000
committerOlivier Blin <blino@mageia.org>2010-12-08 07:33:18 +0000
commit1b8a21325960a27ee8073a66bcd99db7974f78a6 (patch)
tree96f2802aaf3cb6634b68212588f0e1c5653adb1e /modules/buildsystem
parent28457f0e1a6151f1247b5b117e230c2a41428ffe (diff)
downloadpuppet-1b8a21325960a27ee8073a66bcd99db7974f78a6.tar
puppet-1b8a21325960a27ee8073a66bcd99db7974f78a6.tar.gz
puppet-1b8a21325960a27ee8073a66bcd99db7974f78a6.tar.bz2
puppet-1b8a21325960a27ee8073a66bcd99db7974f78a6.tar.xz
puppet-1b8a21325960a27ee8073a66bcd99db7974f78a6.zip
initial youri submit-todo conf
Diffstat (limited to 'modules/buildsystem')
-rw-r--r--modules/buildsystem/manifests/init.pp12
-rw-r--r--modules/buildsystem/templates/submit-todo.conf163
2 files changed, 175 insertions, 0 deletions
diff --git a/modules/buildsystem/manifests/init.pp b/modules/buildsystem/manifests/init.pp
index 6f4d181e..59fc91ac 100644
--- a/modules/buildsystem/manifests/init.pp
+++ b/modules/buildsystem/manifests/init.pp
@@ -128,6 +128,18 @@ class buildsystem {
mode => 440,
content => template("buildsystem/sudoers.youri")
}
+
+ file { "/etc/youri":
+ ensure => "directory",
+ require => File["/etc/youri"],
+ }
+
+ file { "/etc/youri/submit-todo.conf":
+ ensure => present,
+ mode => 644,
+ require => File["/etc/youri"],
+ content => template("buildsystem/submit-todo.conf")
+ }
}
define sshuser($homedir, $comment) {
diff --git a/modules/buildsystem/templates/submit-todo.conf b/modules/buildsystem/templates/submit-todo.conf
new file mode 100644
index 00000000..52b1efd0
--- /dev/null
+++ b/modules/buildsystem/templates/submit-todo.conf
@@ -0,0 +1,163 @@
+home: <%= sched_home_dir %>
+
+# repository declaration
+repository:
+ class: Youri::Repository::Mandriva_upload
+ options:
+ install_root: /mnt/BIG/dis/
+ upload_root: ${home}/uploads/
+ upload_state: todo done queue
+ queue: todo
+ noarch: i586
+ svn: svn+ssh://svn.mageia.org/svn/packages/cauldron/
+ 1.0:
+ arch: i586 x86_64
+ cauldron:
+ arch: i586 x86_64 sparc sparcv9 ppc
+
+# targets definition
+targets:
+ cauldron:
+ checks:
+ - source
+ - version
+ - svn
+ - tag
+ - acl
+ - host
+ - section
+ - rpmlint
+ - recency
+ #- history
+ - queue_recency
+ actions:
+ - send
+ - rpminfo
+
+ 1.0:
+ checks:
+ - source
+ - version
+ - svn
+ - tag
+ - acl
+ - host
+ - section
+ - rpmlint
+ - recency
+ #- history
+ - queue_recency
+ actions:
+ - send
+ - rpminfo
+
+# checks definition
+checks:
+ tag:
+ class: Youri::Submit::Check::Tag
+ options:
+ tags:
+ release: '(mnb\d+|mga..\..)$'
+ 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: main/testing|main/backports|contrib/testing|contrib/updates|contrib/backports|non-free/testing|non-free/updates|non-free/backports
+ authorized_arches: none
+ mode: freeze
+
+ cauldron:
+# <mrl> Prior freeze
+ authorized_sections: ^[a-z]+/(release|testing)$
+ authorized_arches: .*
+ mode: normal
+## <blino> Version freeze
+# authorized_packages: ^$
+# authorized_sections: ^main/testing|contrib/testing$
+# authorized_arches: ^$
+# authorized_users: ^blino|ennael|nvigier$
+# mode: version_freeze
+# <mrl> 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:
+ send:
+ class: Youri::Submit::Action::Send
+ options:
+ user: <%= sched_login %>
+ keep_svn_release: yes
+ uphost: pkgsubmit.mageia.org
+ root: ${home}/uploads
+ ssh_key: ${home}/.ssh/id_rsa
+
+ rpminfo:
+ class: Youri::Submit::Action::Rpminfo
+ options:
+ user: <%= sched_login %>
+ uphost: pkgsubmit.mageia.org
+ root: ${home}/uploads
+ ssh_key: ${home}/.ssh/id_rsa
+
+# vim:ft=yaml:et:sw=4