pax_global_header00006660000000000000000000000064122312160570014511gustar00rootroot0000000000000052 comment=908718b953e82a5dab5df24e9cc0a862b2a88a29 autorepo-altnode-config-0.10/000075500000000000000000000000001223121605700161545ustar00rootroot00000000000000autorepo-altnode-config-0.10/.gear/000075500000000000000000000000001223121605700171505ustar00rootroot00000000000000autorepo-altnode-config-0.10/.gear/rules000064400000000000000000000000071223121605700202220ustar00rootroot00000000000000tar: . autorepo-altnode-config-0.10/apt.conf.5.1.i586000064400000000000000000000005171223121605700206060ustar00rootroot00000000000000/* * This is the main configuration file for the APT suite of tools, * see apt.conf(5) for details. */ Dir::Etc::main "/dev/null"; Dir::Etc::parts "/var/empty"; Dir::Etc::SourceParts "/var/empty"; Dir::Etc::sourcelist "/etc/autorepo/apt/sources.list.5.1.i586"; Debug::PkgProblemResolver "true"; // APT::Cache-Limit 100000000; autorepo-altnode-config-0.10/apt.conf.5.1.x86_64000064400000000000000000000005211223121605700210440ustar00rootroot00000000000000/* * This is the main configuration file for the APT suite of tools, * see apt.conf(5) for details. */ Dir::Etc::main "/dev/null"; Dir::Etc::parts "/var/empty"; Dir::Etc::SourceParts "/var/empty"; Dir::Etc::sourcelist "/etc/autorepo/apt/sources.list.5.1.x86_64"; Debug::PkgProblemResolver "true"; // APT::Cache-Limit 100000000; autorepo-altnode-config-0.10/apt.conf.Sisyphus.i586000064400000000000000000000005241223121605700221300ustar00rootroot00000000000000/* * This is the main configuration file for the APT suite of tools, * see apt.conf(5) for details. */ Dir::Etc::main "/dev/null"; Dir::Etc::parts "/var/empty"; Dir::Etc::SourceParts "/var/empty"; Dir::Etc::sourcelist "/etc/autorepo/apt/sources.list.Sisyphus.i586"; Debug::PkgProblemResolver "true"; // APT::Cache-Limit 100000000; autorepo-altnode-config-0.10/apt.conf.Sisyphus.x86_64000064400000000000000000000005261223121605700223750ustar00rootroot00000000000000/* * This is the main configuration file for the APT suite of tools, * see apt.conf(5) for details. */ Dir::Etc::main "/dev/null"; Dir::Etc::parts "/var/empty"; Dir::Etc::SourceParts "/var/empty"; Dir::Etc::sourcelist "/etc/autorepo/apt/sources.list.Sisyphus.x86_64"; Debug::PkgProblemResolver "true"; // APT::Cache-Limit 100000000; autorepo-altnode-config-0.10/apt.conf.p6.i586000064400000000000000000000005161223121605700206270ustar00rootroot00000000000000/* * This is the main configuration file for the APT suite of tools, * see apt.conf(5) for details. */ Dir::Etc::main "/dev/null"; Dir::Etc::parts "/var/empty"; Dir::Etc::SourceParts "/var/empty"; Dir::Etc::sourcelist "/etc/autorepo/apt/sources.list.p6.i586"; Debug::PkgProblemResolver "true"; // APT::Cache-Limit 100000000; autorepo-altnode-config-0.10/apt.conf.p6.x86_64000064400000000000000000000005201223121605700210650ustar00rootroot00000000000000/* * This is the main configuration file for the APT suite of tools, * see apt.conf(5) for details. */ Dir::Etc::main "/dev/null"; Dir::Etc::parts "/var/empty"; Dir::Etc::SourceParts "/var/empty"; Dir::Etc::sourcelist "/etc/autorepo/apt/sources.list.p6.x86_64"; Debug::PkgProblemResolver "true"; // APT::Cache-Limit 100000000; autorepo-altnode-config-0.10/apt.conf.p7.i586000064400000000000000000000005161223121605700206300ustar00rootroot00000000000000/* * This is the main configuration file for the APT suite of tools, * see apt.conf(5) for details. */ Dir::Etc::main "/dev/null"; Dir::Etc::parts "/var/empty"; Dir::Etc::SourceParts "/var/empty"; Dir::Etc::sourcelist "/etc/autorepo/apt/sources.list.p7.i586"; Debug::PkgProblemResolver "true"; // APT::Cache-Limit 100000000; autorepo-altnode-config-0.10/apt.conf.p7.x86_64000064400000000000000000000005201223121605700210660ustar00rootroot00000000000000/* * This is the main configuration file for the APT suite of tools, * see apt.conf(5) for details. */ Dir::Etc::main "/dev/null"; Dir::Etc::parts "/var/empty"; Dir::Etc::SourceParts "/var/empty"; Dir::Etc::sourcelist "/etc/autorepo/apt/sources.list.p7.x86_64"; Debug::PkgProblemResolver "true"; // APT::Cache-Limit 100000000; autorepo-altnode-config-0.10/apt.conf.t6.i586000064400000000000000000000005161223121605700206330ustar00rootroot00000000000000/* * This is the main configuration file for the APT suite of tools, * see apt.conf(5) for details. */ Dir::Etc::main "/dev/null"; Dir::Etc::parts "/var/empty"; Dir::Etc::SourceParts "/var/empty"; Dir::Etc::sourcelist "/etc/autorepo/apt/sources.list.t6.i586"; Debug::PkgProblemResolver "true"; // APT::Cache-Limit 100000000; autorepo-altnode-config-0.10/apt.conf.t6.x86_64000064400000000000000000000005201223121605700210710ustar00rootroot00000000000000/* * This is the main configuration file for the APT suite of tools, * see apt.conf(5) for details. */ Dir::Etc::main "/dev/null"; Dir::Etc::parts "/var/empty"; Dir::Etc::SourceParts "/var/empty"; Dir::Etc::sourcelist "/etc/autorepo/apt/sources.list.t6.x86_64"; Debug::PkgProblemResolver "true"; // APT::Cache-Limit 100000000; autorepo-altnode-config-0.10/apt.conf.t7.i586000064400000000000000000000005161223121605700206340ustar00rootroot00000000000000/* * This is the main configuration file for the APT suite of tools, * see apt.conf(5) for details. */ Dir::Etc::main "/dev/null"; Dir::Etc::parts "/var/empty"; Dir::Etc::SourceParts "/var/empty"; Dir::Etc::sourcelist "/etc/autorepo/apt/sources.list.t7.i586"; Debug::PkgProblemResolver "true"; // APT::Cache-Limit 100000000; autorepo-altnode-config-0.10/apt.conf.t7.x86_64000064400000000000000000000005201223121605700210720ustar00rootroot00000000000000/* * This is the main configuration file for the APT suite of tools, * see apt.conf(5) for details. */ Dir::Etc::main "/dev/null"; Dir::Etc::parts "/var/empty"; Dir::Etc::SourceParts "/var/empty"; Dir::Etc::sourcelist "/etc/autorepo/apt/sources.list.t7.x86_64"; Debug::PkgProblemResolver "true"; // APT::Cache-Limit 100000000; autorepo-altnode-config-0.10/autorepo-altnode-config.spec000064400000000000000000000072311223121605700235600ustar00rootroot00000000000000%define _unpackaged_files_terminate_build 1 Name: autorepo-altnode-config Version: 0.10 Release: alt1 BuildArch: noarch Packager: Igor Yu. Vlasenko Summary: common configs for an automated packaging node Group: System/Configuration/Other License: GPL2+ #Url: Source: %name-%version.tar Requires(pre): postfix rsync-server anonftp vsftpd Requires: monit %description %summary %package nginx Group: System/Configuration/Other Summary: generic nginx config for an automated packaging node Requires(pre): nginx %description nginx %summary nginx %prep %setup %build %install mkdir -p %buildroot%_sysconfdir/autorepo/apt install -m 644 apt.conf.* sources.list.* %buildroot%_sysconfdir/autorepo/apt/ install -D -m 644 nginx/autoports.conf %buildroot%_sysconfdir/nginx/sites-enabled.d/autorepo.conf mkdir -p %buildroot%_sysconfdir/monitrc.d install -m 644 monit/* %buildroot%_sysconfdir/monitrc.d %post # postfix if ! grep '^relayhost' /etc/postfix/main.cf; then cat >> /etc/postfix/main.cf <> /etc/rsyncd.conf <> /etc/rsyncd.conf < /etc/monitrc service monit restart ||: %post nginx chkconfig nginx on ||: service nginx restart ||: if [ "$RPM_INSTALL_ARG1" -eq 1 ]; then service monit restart ||: fi %files %_sysconfdir/autorepo/apt/apt.conf.* %_sysconfdir/autorepo/apt/sources.list.* %config %_sysconfdir/monitrc.d/00base.conf %config %_sysconfdir/monitrc.d/10mail.conf %config %_sysconfdir/monitrc.d/20httpd.conf %config %_sysconfdir/monitrc.d/crond.conf %config %_sysconfdir/monitrc.d/filesystems.conf %config %_sysconfdir/monitrc.d/nginx.conf %config %_sysconfdir/monitrc.d/postfix.conf %config(noreplace) %_sysconfdir/monitrc.d/sshd.conf %config %_sysconfdir/monitrc.d/system.conf %config %_sysconfdir/monitrc.d/xinetd.conf %exclude %_sysconfdir/monitrc.d/nginx.conf %files nginx %_sysconfdir/nginx/sites-enabled.d/autorepo.conf %config %_sysconfdir/monitrc.d/nginx.conf %changelog * Mon Oct 21 2013 Igor Vlasenko 0.10-alt1 - fixed port in monit for autoports (thanks to ldv@) * Sat Oct 19 2013 Igor Vlasenko 0.09-alt1 - rsync entry is adapted to common /space * Sat Jul 20 2013 Igor Vlasenko 0.08-alt1 - p7 support * Tue Jul 16 2013 Igor Vlasenko 0.07-alt3 - altnode rsync entry * Tue Jul 16 2013 Igor Vlasenko 0.07-alt2 - better nginx support * Thu Jul 11 2013 Igor Vlasenko 0.07-alt1 - monit dependency and config files * Wed Nov 07 2012 Igor Vlasenko 0.06-alt1 - added debuginfo for t6 and p6 * Mon Sep 24 2012 Igor Vlasenko 0.05-alt1 - support for p6 and 5.1 * Wed Jun 06 2012 Igor Vlasenko 0.04-alt1 - added initial xinetd configuration * Wed Jun 06 2012 Igor Vlasenko 0.03-alt1 - updated initial postfix configuration * Tue Jun 05 2012 Igor Vlasenko 0.02-alt1 - added %%post for initial service configuration * Sat May 19 2012 Igor Vlasenko 0.01-alt1 - First build for Sisyphus. autorepo-altnode-config-0.10/monit/000075500000000000000000000000001223121605700173025ustar00rootroot00000000000000autorepo-altnode-config-0.10/monit/00base.conf000064400000000000000000000010351223121605700212220ustar00rootroot00000000000000set daemon 300 with start delay 60 set logfile syslog facility log_daemon set statefile /var/run/monit.state set idfile /var/run/monit.id set mailserver localhost set alert viy@altlinux.org #short, informative messages set mail-format { from: root@localhost subject: [monit] -- $SERVICE $EVENT on $HOST at $DATE message: } # you will also need this for status/summary set httpd port 2812 #and use the address localhost allow localhost allow 195.160.222.83 # allow monit:secretword # ssl enable # pemfile /var/lib/ssl/certs/monit.pem autorepo-altnode-config-0.10/monit/10mail.conf000064400000000000000000000002721223121605700212350ustar00rootroot00000000000000set mailserver localhost set alert viy@altlinux.org #short, informative messages set mail-format { from: monit@$HOST subject: [monit] -- $SERVICE $EVENT on $HOST at $DATE message: } autorepo-altnode-config-0.10/monit/20httpd.conf000064400000000000000000000004501223121605700214350ustar00rootroot00000000000000# you will also need this for status/summary set httpd port 2812 #and use the address localhost allow localhost allow watch.altlinux.org allow autorepo-node-remote-admin # allow autorepo-node-remote-viewer readonly # allow monit:secretword # ssl enable # pemfile /var/lib/ssl/certs/monit.pem autorepo-altnode-config-0.10/monit/crond.conf000064400000000000000000000010351223121605700212550ustar00rootroot00000000000000check process crond with pidfile /var/run/crond.pid group system group crond start program = "/sbin/service crond start" stop program = "/sbin/service crond stop" if 5 restarts with 5 cycles then timeout depend cron_bin depend cron_spool check file cron_bin with path /usr/sbin/crond group crond include /etc/monitrc.d/templates/rootbin check directory cron_spool with path /var/spool/cron group crond if failed permission 3730 then unmonitor if failed uid root then unmonitor if failed gid crontab then unmonitor autorepo-altnode-config-0.10/monit/filesystems.conf000064400000000000000000000005041223121605700225170ustar00rootroot00000000000000check directory temp with path /tmp if failed permission 1777 then alert if failed uid root then alert if failed gid root then alert check device root_dev with path / if space usage > 90 % then alert if inode usage > 90 % then alert check device tmp_dev with path /tmp if space usage > 90 % then alert autorepo-altnode-config-0.10/monit/nginx.conf000064400000000000000000000006051223121605700212750ustar00rootroot00000000000000check process nginx with pidfile /var/run/nginx.pid group www group nginx start program = "/sbin/service nginx start" stop program = "/sbin/service nginx stop" if failed port 80 protocol http request "/" then restart if 5 restarts with 5 cycles then timeout depend on nginx_bin check file nginx_bin with path /usr/sbin/nginx group nginx include /etc/monitrc.d/templates/rootbin autorepo-altnode-config-0.10/monit/postfix.conf000064400000000000000000000026171223121605700216530ustar00rootroot00000000000000check process master with pidfile /var/spool/postfix/pid/master.pid group mail group postfix start program = "/sbin/service postfix start" stop program = "/sbin/service postfix stop" # this validity check depends on "control postfix" status # if failed host localhost port 25 with proto smtp then restart if 5 restarts with 5 cycles then timeout depend on master_bin depend on postdrop_bin depend on postqueue_bin depend on master_cf depend on main_cf check file master_bin with path /usr/libexec/postfix/master group postfix include /etc/monitrc.d/templates/rootbin check file postdrop_bin with path /usr/sbin/postdrop group postfix if failed checksum then unmonitor if failed permission 2711 then unmonitor if failed uid root then unmonitor if failed gid postdrop then unmonitor check file postqueue_bin with path /usr/libexec/postfix/postqueue/postqueue group postfix if failed checksum then unmonitor if failed permission 2711 then unmonitor if failed uid root then unmonitor if failed gid postdrop then unmonitor check file master_cf with path /etc/postfix/master.cf group postfix if failed checksum then unmonitor if failed permission 0640 then unmonitor if failed uid root then unmonitor if failed gid mailadm then unmonitor check file main_cf with path /etc/postfix/main.cf group postfix include /etc/monitrc.d/templates/rootrc autorepo-altnode-config-0.10/monit/sshd.conf000064400000000000000000000020611223121605700211110ustar00rootroot00000000000000check process sshd with pidfile /var/run/sshd.pid group system group sshd start program = "/sbin/service sshd start" stop program = "/sbin/service sshd stop" if failed host localhost port 22 with proto ssh then restart if 5 restarts with 5 cycles then timeout depend on sshd_bin depend on sftp_bin depend on sshd_rc depend on sshd_rsa_key depend on sshd_dsa_key check file sshd_bin with path /usr/sbin/sshd group sshd if failed checksum then unmonitor if failed permission 711 then unmonitor if failed uid root then unmonitor if failed gid root then unmonitor check file sftp_bin with path /usr/lib/openssh/sftp-server group sshd include /etc/monitrc.d/templates/rootbin check file sshd_rsa_key with path /etc/openssh/ssh_host_rsa_key group sshd include /etc/monitrc.d/templates/rootstrict check file sshd_dsa_key with path /etc/openssh/ssh_host_dsa_key group sshd include /etc/monitrc.d/templates/rootstrict check file sshd_rc with path /etc/openssh/sshd_config group sshd include /etc/monitrc.d/templates/rootstrict autorepo-altnode-config-0.10/monit/system.conf000064400000000000000000000003751223121605700215020ustar00rootroot00000000000000check system localhost.localdomain if loadavg (1min) > 4 then alert if loadavg (5min) > 2 then alert if memory usage > 75% then alert if cpu usage (user) > 70% then alert if cpu usage (system) > 30% then alert if cpu usage (wait) > 20% then alert autorepo-altnode-config-0.10/monit/xinetd.conf000064400000000000000000000005451223121605700214500ustar00rootroot00000000000000check process xinetd with pidfile /var/run/xinetd.pid group system group xinetd mode passive start program = "/sbin/service xinetd start" stop program = "/sbin/service xinetd stop" if 5 restarts with 5 cycles then timeout depend on xinetd_bin check file xinetd_bin with path /usr/sbin/xinetd group xinetd include /etc/monitrc.d/templates/rootbin autorepo-altnode-config-0.10/nginx/000075500000000000000000000000001223121605700172775ustar00rootroot00000000000000autorepo-altnode-config-0.10/nginx/autoports.conf000064400000000000000000000004021223121605700222020ustar00rootroot00000000000000server { listen *:80; server_name *.altlinux.org; location / { root /var/ftp; autoindex on; expires 1d; } access_log /var/log/nginx/autorepo.altlinux.org-access.log; } autorepo-altnode-config-0.10/sources.list.5.1.i586000064400000000000000000000002671223121605700215350ustar00rootroot00000000000000# Local package resource list for APT goes here. # To inspect package defined part, see /etc/apt/sources.list.d/*.list rpm file:/ALT/5.1 i586 classic rpm file:/ALT/5.1 noarch classic autorepo-altnode-config-0.10/sources.list.5.1.x86_64000064400000000000000000000002711223121605700217730ustar00rootroot00000000000000# Local package resource list for APT goes here. # To inspect package defined part, see /etc/apt/sources.list.d/*.list rpm file:/ALT/5.1 x86_64 classic rpm file:/ALT/5.1 noarch classic autorepo-altnode-config-0.10/sources.list.Sisyphus.i586000064400000000000000000000001241223121605700230510ustar00rootroot00000000000000rpm file:/ALT/Sisyphus i586 classic debuginfo rpm file:/ALT/Sisyphus noarch classic autorepo-altnode-config-0.10/sources.list.Sisyphus.x86_64000064400000000000000000000001261223121605700233160ustar00rootroot00000000000000rpm file:/ALT/Sisyphus x86_64 classic debuginfo rpm file:/ALT/Sisyphus noarch classic autorepo-altnode-config-0.10/sources.list.p6.i586000064400000000000000000000002771223121605700215600ustar00rootroot00000000000000# Local package resource list for APT goes here. # To inspect package defined part, see /etc/apt/sources.list.d/*.list rpm file:/ALT/p6 i586 classic debuginfo rpm file:/ALT/p6 noarch classic autorepo-altnode-config-0.10/sources.list.p6.x86_64000064400000000000000000000003011223121605700220070ustar00rootroot00000000000000# Local package resource list for APT goes here. # To inspect package defined part, see /etc/apt/sources.list.d/*.list rpm file:/ALT/p6 x86_64 classic debuginfo rpm file:/ALT/p6 noarch classic autorepo-altnode-config-0.10/sources.list.p7.i586000064400000000000000000000002771223121605700215610ustar00rootroot00000000000000# Local package resource list for APT goes here. # To inspect package defined part, see /etc/apt/sources.list.d/*.list rpm file:/ALT/p7 i586 classic debuginfo rpm file:/ALT/p7 noarch classic autorepo-altnode-config-0.10/sources.list.p7.x86_64000064400000000000000000000003011223121605700220100ustar00rootroot00000000000000# Local package resource list for APT goes here. # To inspect package defined part, see /etc/apt/sources.list.d/*.list rpm file:/ALT/p7 x86_64 classic debuginfo rpm file:/ALT/p7 noarch classic autorepo-altnode-config-0.10/sources.list.t6.i586000064400000000000000000000002771223121605700215640ustar00rootroot00000000000000# Local package resource list for APT goes here. # To inspect package defined part, see /etc/apt/sources.list.d/*.list rpm file:/ALT/t6 i586 classic debuginfo rpm file:/ALT/t6 noarch classic autorepo-altnode-config-0.10/sources.list.t6.x86_64000064400000000000000000000003011223121605700220130ustar00rootroot00000000000000# Local package resource list for APT goes here. # To inspect package defined part, see /etc/apt/sources.list.d/*.list rpm file:/ALT/t6 x86_64 classic debuginfo rpm file:/ALT/t6 noarch classic autorepo-altnode-config-0.10/sources.list.t7.i586000064400000000000000000000002771223121605700215650ustar00rootroot00000000000000# Local package resource list for APT goes here. # To inspect package defined part, see /etc/apt/sources.list.d/*.list rpm file:/ALT/t7 i586 classic debuginfo rpm file:/ALT/t7 noarch classic autorepo-altnode-config-0.10/sources.list.t7.x86_64000064400000000000000000000003011223121605700220140ustar00rootroot00000000000000# Local package resource list for APT goes here. # To inspect package defined part, see /etc/apt/sources.list.d/*.list rpm file:/ALT/t7 x86_64 classic debuginfo rpm file:/ALT/t7 noarch classic