summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2019-12-02 10:29:46 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2019-12-02 10:29:46 (GMT)
commit1ef2002cd22c0be74f8083740d6382e863838525 (patch)
tree4f54e33071367a49fda0f258872aa1ffc6d97958
parent7e51ab22b59ea5af00a4deb700edf76dbdb869ec (diff)
downloadmisc-fred-1ef2002cd22c0be74f8083740d6382e863838525.zip
misc-fred-1ef2002cd22c0be74f8083740d6382e863838525.tar.gz
misc-fred-1ef2002cd22c0be74f8083740d6382e863838525.tar.bz2
eoptasks: add puppet.update shortcut
-rwxr-xr-xeoptasks/eoptasks.py2
1 files changed, 2 insertions, 0 deletions
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])