]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Use ruby1.9.1 to avoid ruby1.8 + puppetd segfaults on ball
authorPaul Wise <pabs@debian.org>
Thu, 11 Dec 2014 03:54:10 +0000 (11:54 +0800)
committerPaul Wise <pabs@debian.org>
Thu, 11 Dec 2014 04:24:56 +0000 (12:24 +0800)
More info: https://lists.debian.org/1418271834.28231.36.camel@debian.org

modules/debian-org/files/dsa-puppet-stuff.cron.ignore
modules/debian-org/templates/dsa-puppet-stuff.cron.erb

index a4e70e5c87522c766d65a9e5c02de3c2e98ffdf2..e348b0ac844f70a0faf7480ebb3e410fc4d150f4 100644 (file)
@@ -9,3 +9,7 @@
 ^pcilib: Cannot open /proc/bus/pci$
 ^lspci: Cannot find any working access method\.$
 ^can't open /proc/dma at /usr/bin/lsdev line 32\.$
+^/usr/lib/ruby/1.9.1/rubygems/custom_require\.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead\.$
+^/usr/lib/ruby/vendor_ruby/puppet/provider/service/freebsd\.rb:[8910]*: warning: class variable access from toplevel$
+^/usr/lib/ruby/vendor_ruby/puppet/provider/service/bsd\.rb:12: warning: class variable access from toplevel$
+^/usr/lib/ruby/vendor_ruby/puppet/type/tidy\.rb:1[0-9][0-9]: warning: class variable access from toplevel$
index e6ddd74fa2d1163ee2f0faed81e563403d809819..49d2e8a747ff5385094f69687d43ab0640a7c897 100644 (file)
@@ -6,7 +6,11 @@
 SHELL=/bin/bash
 @hourly  root [ ! -d /var/cache/dsa ] || touch /var/cache/dsa/cron.alive
 <% if @lsbmajdistrelease <= '7' -%>
+<% if scope.lookupvar('::hostname') == 'ball' -%>
+34 */4 * * * root if [ -x /usr/sbin/puppetd ]; then sleep $(( $RANDOM \% 7200 )); if [ -x /usr/bin/timeout ]; then TO="timeout --kill-after=900 3600"; else TO=""; fi; tmp="$(tempfile)"; egrep -v '^(#|$)' /etc/dsa/cron.ignore.dsa-puppet-stuff > "$tmp" && $TO /usr/bin/ruby1.9.1 /usr/sbin/puppetd -o --no-daemonize 2>&1 | egrep --text -v -f "$tmp"; rm -f "$tmp"; fi
+<% else -%>
 34 */4 * * * root if [ -x /usr/sbin/puppetd ]; then sleep $(( $RANDOM \% 7200 )); if [ -x /usr/bin/timeout ]; then TO="timeout --kill-after=900 3600"; else TO=""; fi; tmp="$(tempfile)"; egrep -v '^(#|$)' /etc/dsa/cron.ignore.dsa-puppet-stuff > "$tmp" && $TO /usr/sbin/puppetd -o --no-daemonize 2>&1 | egrep --text -v -f "$tmp"; rm -f "$tmp"; fi
+<% end -%>
 <% else -%>
 34 */4 * * * root if [ -x /usr/bin/puppet ]; then sleep $(( $RANDOM \% 7200 )); if [ -x /usr/bin/timeout ]; then TO="timeout --kill-after=900 3600"; else TO=""; fi; tmp="$(tempfile)"; egrep -v '^(#|$)' /etc/dsa/cron.ignore.dsa-puppet-stuff > "$tmp" && $TO /usr/bin/puppet agent --onetime --no-daemonize 2>&1 | egrep --text -v -f "$tmp"; rm -f "$tmp"; fi
 <% end -%>