From 1ef2002cd22c0be74f8083740d6382e863838525 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 2 Dec 2019 11:29:46 +0100 Subject: [PATCH] eoptasks: add puppet.update shortcut --- eoptasks/eoptasks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eoptasks/eoptasks.py b/eoptasks/eoptasks.py index a1f11c7..43ae387 100755 --- a/eoptasks/eoptasks.py +++ b/eoptasks/eoptasks.py @@ -217,6 +217,8 @@ def command_window(args): # memcached.restart is useful to force shared theme to be updated. 'memcached.restart': '''sudo service memcached restart; /bin/true''', 'restart.all': '''sudo systemctl restart authentic2-multitenant bijoe chrono combo corbo fargo hobo passerelle wcs; /bin/true''', + # puppet.update, unfortunately without proper error checking. + 'puppet.update': '''sudo puppet agent -t || true''', }.get(args.cmd, args.cmd) if args.args: cmd += ' ' + ' '.join(['"%s"' % x for x in args.args])