aboutsummaryrefslogtreecommitdiffstats
path: root/modules/youri-check
diff options
context:
space:
mode:
Diffstat (limited to 'modules/youri-check')
-rw-r--r--modules/youri-check/manifests/init.pp133
-rw-r--r--modules/youri-check/templates/9.conf241
-rw-r--r--modules/youri-check/templates/cauldron.conf504
-rw-r--r--modules/youri-check/templates/vhost_check.conf2
4 files changed, 880 insertions, 0 deletions
diff --git a/modules/youri-check/manifests/init.pp b/modules/youri-check/manifests/init.pp
new file mode 100644
index 00000000..ebdaa492
--- /dev/null
+++ b/modules/youri-check/manifests/init.pp
@@ -0,0 +1,133 @@
+class youri-check {
+ class base {
+ $vhost = "check.${::domain}"
+ $user = 'youri'
+ $home = '/var/lib/youri'
+ $home_check = '/var/www/youri-check'
+ $pgsql_password = extlookup('youri_pgsql','x')
+
+ user { $user:
+ comment => 'Youri Check',
+ home => $home,
+ }
+
+ file { $home:
+ ensure => directory,
+ owner => $user,
+ group => $user,
+ }
+
+ file { $home_check:
+ ensure => directory,
+ owner => $user,
+ group => $user,
+ }
+
+ $pgsql_server = "${vhost}"
+
+ package { ['youri-check', 'perl-DBD-Pg', 'perl-Youri-Media']: }
+
+ }
+
+
+ define config($version) {
+ include stdlib
+ include youri-check::base
+
+ $config = "/etc/youri/${version}.conf"
+ $outdir = "/var/www/youri-check/${version}"
+ $pgsql_db = "youri_check_${version}"
+ $pgsql_server = $base::pgsql_server
+ $pgsql_user = "youri${version}"
+ $pgsql_password = extlookup('youri_pgsql','x')
+ # We want to alert for packages older than the cut-off for latest mass rebuild
+ # 1745539200 is 2025-04-25
+ $max_days = (time() - 1745539200)/(24*3600)
+
+ file { "${config}":
+ ensure => present,
+ owner => $base::user,
+ mode => '0640',
+ content => template("youri-check/${version}.conf"),
+ require => User[$base::user],
+ }
+ }
+
+
+ define createdb_user($version) {
+ $pgsql_db = "youri_check_${version}"
+ $pgsql_user = "youri${version}"
+ $pgsql_password = extlookup('youri_pgsql','x')
+
+ postgresql::remote_user { $pgsql_user:
+ password => $base::pgsql_password,
+ }
+
+ postgresql::remote_database { $pgsql_db:
+ description => "Youri Check results",
+ user => $pgsql_user,
+ }
+ }
+
+ define check($version, $hour = "*", $minute = 0) {
+ include youri-check::base
+ $config = "/etc/youri/${version}.conf"
+ $pgsql_server = $base::pgsql_server
+ $pgsql_db = "youri_check_${version}"
+ $pgsql_user = "youri${version}"
+ $pgsql_password = extlookup('youri_pgsql','x')
+
+ postgresql::remote_user { $pgsql_user:
+ password => $base::pgsql_password,
+ }
+
+ postgresql::remote_database { $pgsql_db:
+ description => "Youri Check results",
+ user => $pgsql_user,
+ }
+ cron { "check_${version}":
+ command => "youri-check -c ${config} --parallel test",
+ hour => $hour,
+ minute => $minute,
+ user => $base::user,
+ environment => "MAILTO=root",
+ require => User[$base::user],
+ }
+ }
+
+ define report_www {
+ include youri-check::base
+ $outdir = "/var/www/youri-check/"
+ apache::vhost::base { $base::vhost:
+ location => $outdir,
+ content => template('youri-check/vhost_check.conf'),
+ }
+ apache::vhost::base { "ssl_${base::vhost}":
+ vhost => $base::vhost,
+ use_ssl => true,
+ location => $outdir,
+ content => template('youri-check/vhost_check.conf'),
+ }
+ }
+
+ define report($version, $hour = "*", $minute = 20) {
+ include youri-check::base
+
+ $config = "/etc/youri/${version}.conf"
+
+ $outdir = "/var/www/youri-check/${version}"
+ file { "${outdir}":
+ ensure => directory,
+ owner => $base::user,
+ mode => '0755',
+ }
+
+ cron { "check_${version}":
+ command => "youri-check -c ${config} report",
+ hour => $hour,
+ minute => $minute,
+ user => $base::user,
+ require => User[$base::user],
+ }
+ }
+}
diff --git a/modules/youri-check/templates/9.conf b/modules/youri-check/templates/9.conf
new file mode 100644
index 00000000..28028080
--- /dev/null
+++ b/modules/youri-check/templates/9.conf
@@ -0,0 +1,241 @@
+# vim:ft=yaml:et:sw=4
+
+# helper variables
+mirror: http://repository.mageia.org/distrib/9
+mirror_i586: ${mirror}/i586/media
+mirror_x86_64: ${mirror}/x86_64/media
+
+# resultset definition
+resultset:
+ class: Youri::Check::Resultset::DBI
+ options:
+ driver: Pg
+ host: <%= pgsql_server %>;sslmode=require
+ base: <%= pgsql_db %>
+ user: <%= pgsql_user %>
+ pass: <%= pgsql_password %>
+
+resolver:
+ class: Youri::Check::Maintainer::Resolver::CGI
+ options:
+ url: https://pkgsubmit.<%= domain %>/data/maintdb.txt
+ exceptions:
+ - nobody
+
+
+# checks definitions
+tests:
+ dependencies:
+ class: Youri::Check::Test::Dependencies
+
+ missing:
+ class: Youri::Check::Test::Missing
+
+# reports definitions
+reports:
+ file:
+ class: Youri::Check::Report::File
+ options:
+ to: <%= outdir %>
+ global: 1
+ individual: 1
+ formats:
+ html:
+ class: Youri::Check::Report::Format::HTML
+ text:
+ class: Youri::Check::Report::Format::Text
+ rss:
+ class: Youri::Check::Report::Format::RSS
+
+# media definitions
+medias:
+ core.i586:
+ class: Youri::Media::URPM
+ options:
+ name: core
+ type: binary
+ hdlist: ${mirror_i586}/media_info/hdlist_core.cz
+ options:
+ dependencies:
+ allowed:
+ - core.i586
+ missing:
+ allowed:
+ - core.sources
+
+ core_updates.i586:
+ class: Youri::Media::URPM
+ options:
+ name: core_updates
+ type: binary
+ hdlist: ${mirror_i586}/media_info/hdlist_core_updates.cz
+ options:
+ dependencies:
+ allowed:
+ - core.i586
+ - core_updates.i586
+ missing:
+ allowed:
+ - core.sources
+ - core_updates.sources
+
+ core_updates_testing.i586:
+ class: Youri::Media::URPM
+ options:
+ name: core_updates_testing
+ type: binary
+ hdlist: ${mirror_i586}/media_info/hdlist_core_updates_testing.cz
+ options:
+ dependencies:
+ allowed:
+ - core.i586
+ - core_updates.i586
+ - core_updates_testing.i586
+ missing:
+ allowed:
+ - core.sources
+ - core_updates.sources
+ - core_updates_testing.sources
+
+ core.x86_64:
+ class: Youri::Media::URPM
+ options:
+ name: core
+ type: binary
+ hdlist: ${mirror_x86_64}/media_info/hdlist_core.cz
+ options:
+ dependencies:
+ allowed:
+ - core.x86_64
+ - core.i586
+ missing:
+ allowed:
+ - core.sources
+
+ core_updates.x86_64:
+ class: Youri::Media::URPM
+ options:
+ name: core_updates
+ type: binary
+ hdlist: ${mirror_x86_64}/media_info/hdlist_core_updates.cz
+ options:
+ dependencies:
+ allowed:
+ - core.i586
+ - core_updates.i586
+ - core.x86_64
+ - core_updates.x86_64
+ missing:
+ allowed:
+ - core.sources
+ - core_updates.sources
+
+ core_updates_testing.x86_64:
+ class: Youri::Media::URPM
+ options:
+ name: core_updates_testing
+ type: binary
+ hdlist: ${mirror_x86_64}/media_info/hdlist_core_updates_testing.cz
+ options:
+ dependencies:
+ allowed:
+ - core.x86_64
+ - core_updates.x86_64
+ - core_updates_testing.x86_64
+ - core.i586
+ - core_updates.i586
+ - core_updates_testing.i586
+ missing:
+ allowed:
+ - core.sources
+ - core_updates.sources
+ - core_updates_testing.sources
+
+ core.sources:
+ class: Youri::Media::URPM
+ options:
+ name: core
+ type: source
+ hdlist: ${mirror_i586}/media_info/hdlist_core.src.cz
+ options:
+ dependencies:
+ allowed:
+ - core.x86_64
+ - core.i586
+
+ core_updates.sources:
+ class: Youri::Media::URPM
+ options:
+ name: core_updates
+ type: source
+ hdlist: ${mirror_i586}/media_info/hdlist_core_updates.src.cz
+ options:
+ dependencies:
+ allowed:
+ - core.x86_64
+ - core_updates.x86_64
+ - core.i586
+ - core_updates.i586
+
+ core_updates_testing.sources:
+ class: Youri::Media::URPM
+ options:
+ name: core_updates_testing
+ type: source
+ hdlist: ${mirror_i586}/media_info/hdlist_core_updates_testing.src.cz
+ options:
+ dependencies:
+ allowed:
+ - core.x86_64
+ - core_updates.x86_64
+ - core_updates_testing.x86_64
+ - core.i586
+ - core_updates.i586
+ - core_updates_testing.i586
+
+ nonfree.i586:
+ class: Youri::Media::URPM
+ options:
+ name: nonfree
+ type: binary
+ hdlist: ${mirror_i586}/media_info/hdlist_nonfree_release.cz
+ options:
+ dependencies:
+ allowed:
+ - core.i586
+ - nonfree.i586
+ missing:
+ allowed:
+ - nonfree.sources
+
+ nonfree.x86_64:
+ class: Youri::Media::URPM
+ options:
+ name: nonfree
+ type: binary
+ hdlist: ${mirror_x86_64}/media_info/hdlist_nonfree_release.cz
+ options:
+ dependencies:
+ allowed:
+ - core.x86_64
+ - core.i586
+ - nonfree.x86_64
+ - nonfree.i586
+ missing:
+ allowed:
+ - nonfree.sources
+
+
+ nonfree.sources:
+ class: Youri::Media::URPM
+ options:
+ name: nonfree
+ type: source
+ hdlist: ${mirror_i586}/media_info/hdlist_nonfree_release.src.cz
+ options:
+ dependencies:
+ allowed:
+ - core.x86_64
+ - nonfree.x86_64
+ - core.i586
+ - nonfree.i586
diff --git a/modules/youri-check/templates/cauldron.conf b/modules/youri-check/templates/cauldron.conf
new file mode 100644
index 00000000..aeace447
--- /dev/null
+++ b/modules/youri-check/templates/cauldron.conf
@@ -0,0 +1,504 @@
+# vim:ft=yaml:et:sw=4
+
+# helper variables
+mirror: http://repository.mageia.org/distrib/cauldron
+mirror_aarch64: ${mirror}/aarch64/media
+mirror_armv7hl: ${mirror}/armv7hl/media
+mirror_i686: ${mirror}/i686/media
+mirror_x86_64: ${mirror}/x86_64/media
+
+# resultset definition
+resultset:
+ class: Youri::Check::Resultset::DBI
+ options:
+ driver: Pg
+ host: <%= pgsql_server %>;sslmode=require
+ base: <%= pgsql_db %>
+ user: <%= pgsql_user %>
+ pass: <%= pgsql_password %>
+
+resolver:
+ class: Youri::Check::Maintainer::Resolver::CGI
+ options:
+ url: https://pkgsubmit.<%= domain %>/data/maintdb.txt
+ exceptions:
+ - nobody
+
+
+# checks definitions
+tests:
+ dependencies:
+ class: Youri::Check::Test::Dependencies
+
+ missing:
+ class: Youri::Check::Test::Missing
+
+ updates:
+ class: Youri::Check::Test::Updates
+ options:
+ aliases:
+ basesystem: ~
+ drakxtools: ~
+ drakx-installer-advertising: ~
+ drakx-installer-binaries: ~
+ drakx-installer-images: ~
+ drakx-installer-rescue: ~
+ drakx-installer-stage2: ~
+ horde-accounts: accounts
+ horde-chora: chora
+ horde-forwards: forwards
+ horde-imp: imp
+ horde-ingo: ingo
+ horde-kronolith: kronolith
+ horde-mnemo: mnemo
+ horde-nag: nag
+ horde-passwd: passwd
+ horde-turba: turba
+ horde-vacation: vacation
+ freetype: freetype2
+ gstreamer: ~
+ gstreamer0.10: gstreamer
+ gnupg2: gnupg
+ gnupg: ~
+ gnome-vfs2: gnome-vfs
+ gnome-vfs: ~
+ ldetect: ~
+ ldetect-lst: ~
+ libutempter: utempter
+ perl-URPM: ~
+ rpm: ~
+ rpmdrake: ~
+ rpmstats: ~
+ rpmtools: ~
+ urpmi: ~
+ vte: ~
+ vte3: vte
+ xine-lib: xine-lib1.2
+ xine-lib-1.2: xine-lib1.2
+ sources:
+ cpan:
+ order: 0
+ class: Youri::Check::Test::Updates::Source::CPAN
+ options:
+ aliases:
+ libnet: ~
+ perl-Catalyst-P-S-State-Cookie: Catalyst::Plugin::State::State::Cookie
+ perl-Catalyst-P-S-Store-FastMmap: Catalyst::Plugin::State::Store::FastMmap
+ perl-Catalyst-P-S-Store-File: Catalyst::Plugin::State::Store::File
+ gettext: ~
+ pear:
+ order: 0
+ class: Youri::Check::Test::Updates::Source::PEAR
+# pypi:
+# order: 0
+# class: Youri::Check::Test::Updates::Source::PyPI
+# apache:
+# order: 0
+# class: Youri::Check::Test::Updates::Source::Apache
+ debian:
+ order: 1
+ class: Youri::Check::Test::Updates::Source::Debian
+ options:
+ aliases:
+ anjuta2: anjuta
+ anjuta: ~
+ perl-Jcode: libjcode-pm-perl
+ makepasswd: ~
+ sipp: ~
+ zsnes: ~
+ unclutter: ~
+ python-id3: ~
+ freetype: ~
+ openldap2.3: ~
+ git: git-core
+ nilfs-utils: nilfs-tools
+ mobile-broadband-provider-info: ~
+ cpulimit: ~
+ icecream: ~
+ colorize: ~
+ fedora:
+ order: 1
+ class: Youri::Check::Test::Updates::Source::Fedora
+ options:
+ aliases:
+ authd: ~
+ basesystem: ~
+ bash: ~
+ freetype: ~
+ freetype2: freetype
+ gle: ~
+ gtksourceview-sharp: ~
+ modemmanager: ModemManager
+ netcat-openbsd: netcat
+ networkmanager: NetworkManager
+ networkmanager-applet: network-manager-applet
+ networkmanager-fortisslvpn: NetworkManager-fortisslvpn
+ networkmanager-l2tp: NetworkManager-l2tp
+ networkmanager-libreswan: NetworkManager-libreswan
+ networkmanager-openconnect: NetworkManager-openconnect
+ networkmanager-openvpn: NetworkManager-openvpn
+ networkmanager-pptp: NetworkManager-pptp
+ networkmanager-vpnc: NetworkManager-vpnc
+ ocaml-lablgtk: ~
+ ocaml-lablgtk2: ocaml-lablgtk
+ OpenIPMI: OpenIPMI2
+ sqlite: sqlite2
+ gentoo:
+ order: 1
+ class: Youri::Check::Test::Updates::Source::Gentoo
+ options:
+ aliases:
+ beagle: ~
+ makepasswd: ~
+ hibernate: hibernate-script
+ leif: ~
+ sqlite3: sqlite
+ sqlite: ~
+ cfengine3: cfengine
+ cfengine: ~
+ kamikaze: ~
+ knob: ~
+ vertex: ~
+ unclutter: ~
+ pam-krb5: pam_krb5
+ pam_krb5: ~
+ akonadi: akonadi-server
+ attica: libattica
+ raptor2: raptor
+ raptor: ~
+ libevent: ~
+ wifi-radar: ~
+ tuxmathscrabble: ~
+ chromium: ~
+ cpulimit: ~
+ icecream: ~
+ nodejs: ~
+ gnome:
+ order: 1
+ class: Youri::Check::Test::Updates::Source::GNOME
+ options:
+ url: https://download.gnome.org/sources/
+ aliases:
+ acme: ~
+ GConf: ~
+ GConf2: GConf
+ gcr: ~
+ gcr4: gcr
+ gdk-pixbuf2.0: gdk-pixbuf
+ glib: ~
+ glib2.0: glib
+ glibmm2.4: ~
+ goocanvas2: ~
+ gtkmm-documentation3.0: ~
+ gtkmm: ~
+ gtkmm2.4: ~
+ gtkmm3.0: ~
+ gtkmm4.0: gtkmm
+ gtksourceviewmm3.0: ~
+ gtk: ~
+ gtk+2.0: ~
+ gtk+3.0: ~
+ gtk4.0: gtk
+ modemmanager: ModemManager
+ networkmanager: NetworkManager
+ networkmanager-applet: network-manager-applet
+ networkmanager-fortisslvpn: NetworkManager-fortisslvpn
+ networkmanager-l2tp: NetworkManager-l2tp
+ networkmanager-libreswan: NetworkManager-libreswan
+ networkmanager-openconnect: NetworkManager-openconnect
+ networkmanager-openvpn: NetworkManager-openvpn
+ networkmanager-pptp: NetworkManager-pptp
+ networkmanager-vpnc: NetworkManager-vpnc
+ notify-sharp: ~
+ notify-sharp3: notify-sharp
+ pango: ~
+ pango2.0: pango
+ netbsd:
+ order: 1
+ class: Youri::Check::Test::Updates::Source::NetBSD
+# sourceforge:
+# class: Youri::Check::Test::Updates::Source::Sourceforge
+# options:
+# aliases:
+# bigforth: ~
+# gtkmm: ~
+# hydrogen: ~
+# ltp: ~
+# pblogan: ~
+# console-tools: ~
+# maxima: ~
+# clisp: ~
+
+ updates_fedora:
+ class: Youri::Check::Test::Updates
+ options:
+ sources:
+ fedora:
+ order: 1
+ class: Youri::Check::Test::Updates::Source::Fedora
+ options:
+ aliases:
+ authd: ~
+ basesystem: ~
+ bash: ~
+ freetype: ~
+ freetype2: freetype
+ gle: ~
+ gtksourceview-sharp: ~
+ modemmanager: ModemManager
+ netcat-openbsd: netcat
+ networkmanager: NetworkManager
+ networkmanager-applet: network-manager-applet
+ networkmanager-fortisslvpn: NetworkManager-fortisslvpn
+ networkmanager-l2tp: NetworkManager-l2tp
+ networkmanager-libreswan: NetworkManager-libreswan
+ networkmanager-openconnect: NetworkManager-openconnect
+ networkmanager-openvpn: NetworkManager-openvpn
+ networkmanager-pptp: NetworkManager-pptp
+ networkmanager-vpnc: NetworkManager-vpnc
+ ocaml-lablgtk: ~
+ ocaml-lablgtk2: ocaml-lablgtk
+ OpenIPMI: OpenIPMI2
+ sqlite: sqlite2
+ updates_gnome:
+ class: Youri::Check::Test::Updates
+ options:
+ sources:
+ gnome:
+ order: 1
+ class: Youri::Check::Test::Updates::Source::GNOME
+ options:
+ url: https://download.gnome.org/sources/
+ aliases:
+ acme: ~
+ GConf: ~
+ GConf2: GConf
+ gcr: ~
+ gcr4: gcr
+ gdk-pixbuf2.0: gdk-pixbuf
+ glib: ~
+ glib2.0: glib
+ glibmm2.4: ~
+ goocanvas2: ~
+ gtkmm-documentation3.0: ~
+ gtkmm: ~
+ gtkmm2.4: ~
+ gtkmm3.0: ~
+ gtkmm4.0: gtkmm
+ gtksourceviewmm3.0: ~
+ gtk: ~
+ gtk+2.0: ~
+ gtk+3.0: ~
+ gtk4.0: gtk
+ modemmanager: ModemManager
+ networkmanager: NetworkManager
+ networkmanager-applet: network-manager-applet
+ networkmanager-fortisslvpn: NetworkManager-fortisslvpn
+ networkmanager-l2tp: NetworkManager-l2tp
+ networkmanager-libreswan: NetworkManager-libreswan
+ networkmanager-openconnect: NetworkManager-openconnect
+ networkmanager-openvpn: NetworkManager-openvpn
+ networkmanager-pptp: NetworkManager-pptp
+ networkmanager-vpnc: NetworkManager-vpnc
+ notify-sharp: ~
+ notify-sharp3: notify-sharp
+ pango: ~
+ pango2.0: pango
+ build:
+ class: Youri::Check::Test::Build
+ options:
+ sources:
+ iurt:
+ class: Youri::Check::Test::Build::Source::Iurt
+ options:
+ url: https://pkgsubmit.mageia.org/autobuild/cauldron
+ arches:
+ - x86_64
+ medias:
+ - core
+ age:
+ class: Youri::Check::Test::Age
+ options:
+ max: <%= max_days %> days
+ pattern: "%d days"
+
+# reports definitions
+reports:
+ file:
+ class: Youri::Check::Report::File
+ options:
+ to: <%= outdir %>
+ global: 1
+ individual: 1
+ formats:
+ html:
+ class: Youri::Check::Report::Format::HTML
+ text:
+ class: Youri::Check::Report::Format::Text
+ rss:
+ class: Youri::Check::Report::Format::RSS
+
+# media definitions
+medias:
+ core.aarch64:
+ class: Youri::Media::URPM
+ options:
+ name: core
+ type: binary
+ hdlist: ${mirror_aarch64}/core/release/media_info/hdlist.cz
+ options:
+ dependencies:
+ allowed:
+ - core.aarch64
+ missing:
+ allowed:
+ - core.sources
+
+ core.armv7hl:
+ class: Youri::Media::URPM
+ options:
+ name: core
+ type: binary
+ hdlist: ${mirror_armv7hl}/core/release/media_info/hdlist.cz
+ options:
+ dependencies:
+ allowed:
+ - core.armv7hl
+ missing:
+ allowed:
+ - core.sources
+
+ core.i686:
+ class: Youri::Media::URPM
+ options:
+ name: core
+ type: binary
+ hdlist: ${mirror_i686}/media_info/hdlist_core.cz
+ options:
+ dependencies:
+ allowed:
+ - core.i686
+ missing:
+ allowed:
+ - core.sources
+
+ core.x86_64:
+ class: Youri::Media::URPM
+ options:
+ name: core
+ type: binary
+ hdlist: ${mirror_x86_64}/media_info/hdlist_core.cz
+ options:
+ dependencies:
+ allowed:
+ - core.x86_64
+ - core.i686
+ missing:
+ allowed:
+ - core.sources
+
+
+ core.sources:
+ class: Youri::Media::URPM
+ options:
+ name: core
+ type: source
+ hdlist: ${mirror_i686}/media_info/hdlist_core.src.cz
+ options:
+ dependencies:
+ allowed:
+ - core.x86_64
+ - core.i686
+
+ nonfree.i686:
+ class: Youri::Media::URPM
+ options:
+ name: nonfree
+ type: binary
+ hdlist: ${mirror_i686}/media_info/hdlist_nonfree_release.cz
+ options:
+ dependencies:
+ allowed:
+ - core.i686
+ - nonfree.i686
+ missing:
+ allowed:
+ - nonfree.sources
+
+ nonfree.x86_64:
+ class: Youri::Media::URPM
+ options:
+ name: nonfree
+ type: binary
+ hdlist: ${mirror_x86_64}/media_info/hdlist_nonfree_release.cz
+ options:
+ dependencies:
+ allowed:
+ - core.x86_64
+ - core.i686
+ - nonfree.x86_64
+ - nonfree.i686
+ missing:
+ allowed:
+ - nonfree.sources
+
+
+ nonfree.sources:
+ class: Youri::Media::URPM
+ options:
+ name: nonfree
+ type: source
+ hdlist: ${mirror_i686}/media_info/hdlist_nonfree_release.src.cz
+ options:
+ dependencies:
+ allowed:
+ - core.x86_64
+ - nonfree.x86_64
+ - core.i686
+ - nonfree.i686
+
+ tainted.i686:
+ class: Youri::Media::URPM
+ options:
+ name: nonfree
+ type: binary
+ hdlist: ${mirror_i686}/media_info/hdlist_tainted_release.cz
+ options:
+ dependencies:
+ allowed:
+ - core.i686
+ - tainted.i686
+ missing:
+ allowed:
+ - tainted.sources
+
+ tainted.x86_64:
+ class: Youri::Media::URPM
+ options:
+ name: tainted
+ type: binary
+ hdlist: ${mirror_x86_64}/media_info/hdlist_tainted_release.cz
+ options:
+ dependencies:
+ allowed:
+ - core.x86_64
+ - core.i686
+ - tainted.x86_64
+ - tainted.i686
+ missing:
+ allowed:
+ - tainted.sources
+
+ tainted.sources:
+ class: Youri::Media::URPM
+ options:
+ name: tainted
+ type: source
+ hdlist: ${mirror_i686}/media_info/hdlist_tainted_release.src.cz
+ options:
+ dependencies:
+ allowed:
+ - core.x86_64
+ - tainted.x86_64
+ - core.i686
+ - tainted.i686
diff --git a/modules/youri-check/templates/vhost_check.conf b/modules/youri-check/templates/vhost_check.conf
new file mode 100644
index 00000000..2cf598b5
--- /dev/null
+++ b/modules/youri-check/templates/vhost_check.conf
@@ -0,0 +1,2 @@
+Header set Access-Control-Allow-Origin "http://pkgsubmit.<%= domain %>"
+Header set Access-Control-Allow-Origin "https://pkgsubmit.<%= domain %>" env=HTTPS