eoptasks: add puppet.update shortcut

This commit is contained in:
Frédéric Péters 2019-12-02 11:29:46 +01:00
parent 7e51ab22b5
commit 1ef2002cd2
1 changed files with 2 additions and 0 deletions

View File

@ -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])