Commit Graph

73 Commits

Author SHA1 Message Date
Frédéric Péters 6a8b070d74 misc: replace usage of deprecated list_windows() (#82115) 2023-10-06 13:43:58 +02:00
Valentin Deniaud da2dce390a misc: update git-blame-ignore-revs to ignore quote changes (#79788) 2023-08-16 11:52:38 +02:00
Valentin Deniaud 91aa8a41ea misc: apply double-quote-string-fixer (#79788) 2023-08-16 11:52:38 +02:00
Valentin Deniaud c840987305 misc: add pre commit hook to force single quotes (#79788) 2023-08-16 11:52:38 +02:00
Frédéric Péters b3a771f510 force keeping old conffiles when running apt.upgrade (#77868) 2023-05-23 19:33:33 +02:00
Frédéric Péters 47ec9ee61b add docbow to reload.all/restart.all (#77511) 2023-05-12 08:37:33 +02:00
Thomas NOËL d3e67cae27 always sort servers list, by name (#76033) 2023-03-30 15:20:41 +02:00
Emmanuel Cazenave f2e1d878c2 restore compat with libtmux < 0.17 (#75452) 2023-03-15 16:25:45 +01:00
Frédéric Péters 9882ce8037 remove corbo from "all" targets 2023-02-25 12:11:27 +01:00
Frédéric Péters c14e687f09 trivial: apply pyupgade & isort 2023-02-07 20:08:46 +01:00
Frédéric Péters 2287997703 misc: add pyupgrade and isort to pre-commit 2023-02-07 20:08:42 +01:00
Frédéric Péters 86ef790dc0 replace deprecated Service.find_where() method 2023-02-07 20:06:55 +01:00
Frédéric Péters 5fcc142e79 add lingo to collectstatic command 2022-09-13 16:27:32 +02:00
Frédéric Péters ea4466e68f add lingo to restart.all and reload.all commands 2022-09-13 14:08:05 +02:00
Thomas NOËL 4fbdb7bf92 trivial: bump black version to 22.3.0 2022-03-31 12:18:25 +02:00
Frédéric Péters b8697aa55b trivial: bump black version to 22.1.0 (#62312) 2022-03-01 19:30:35 +01:00
Benjamin Dauvergne 8244e99209 add reload.all command (#58935) 2021-11-24 11:58:35 +01:00
Frédéric Péters ba718fb9a9 build: bump black version 2021-11-22 22:08:02 +01:00
Frédéric Péters 376470aae6 add missing "expect" handling when there's not many windows 2021-06-22 15:34:35 +02:00
Frédéric Péters 4f3180eb37 add basic key automation 2021-06-05 21:45:55 +02:00
Frédéric Péters 11b21739cb add support for (re)defining environment variables 2021-06-05 21:45:19 +02:00
Frédéric Péters bd157f9a07 unbreak support for keywords section of configuration file (#53767) 2021-05-12 08:55:01 +02:00
Emmanuel Cazenave 0b5b479bb7 authorize absence of the 'keywords' section in configuration file (#53767) 2021-05-05 12:27:17 +02:00
Frédéric Péters f12fa88f04 add support for defining custom keywords mappings in configuration file
This can be used for shortcuts or alternative names, ex:

 [keywords]
 monitoring = munin,scrutiny,prometheus

or to prevent common errors or misconceptions:

 [keywords]
 saas/test = saas/test,-hds,-re,-docbow
2021-04-13 12:25:47 +02:00
Frédéric Péters 1ddfe568f9 factor reading of configuration file 2021-04-13 12:25:34 +02:00
Frédéric Péters e445ebc24e add support for declaring additional servers in configuration file 2021-02-06 14:12:57 +01:00
Frédéric Péters 868b870979 add --list-commands argument 2021-01-30 20:59:09 +01:00
Frédéric Péters f257f25a2e move documentation from head comment to README 2021-01-30 20:55:55 +01:00
Frédéric Péters 18c14acde5 misc: add black files/notes 2021-01-30 20:48:26 +01:00
Frédéric Péters 6adea28798 trivial: apply black 2021-01-30 20:47:28 +01:00
Frédéric Péters ef933e5fad add possibility to define command shortcuts in config file 2021-01-30 20:44:13 +01:00
Frédéric Péters 5b7c51b127 add 1st fqdn part without trailing digits as keyword 2021-01-30 20:44:13 +01:00
Christophe Siraut 7f6760788f use servers.yaml instead of deprecated servergroups.yaml 2021-01-30 20:44:13 +01:00
Frédéric Péters b7b2641838 allow specifying multiple suffixes to be stripped 2021-01-30 20:44:13 +01:00
Frédéric Péters 7357bef79c add stripsuffix configuration option 2021-01-30 20:44:13 +01:00
Frédéric Péters 941d36394b include welco in restart.all/collectstatic commands 2021-01-30 20:44:13 +01:00
Frédéric Péters 14b0553b52 add -x to exclude hosts based on regex match 2021-01-30 20:44:13 +01:00
Frédéric Péters 33a6284084 add passerelle/wcs restart command shortcuts 2021-01-30 20:44:13 +01:00
Frédéric Péters c8d6958ebd reread supervisor config before restarting hobo-agent 2021-01-30 20:44:13 +01:00
Frédéric Péters f7cde263f1 add puppet.update shortcut 2021-01-30 20:44:13 +01:00
Frédéric Péters 1be44c026b use safe loading of yaml inventory 2021-01-30 20:44:13 +01:00
Frédéric Péters a5d68535cf add memcached.restart 2021-01-30 20:44:13 +01:00
Frédéric Péters 298064e76c add shortcut to restart all services
(useful after a new hobo version, for example)
2021-01-30 20:44:13 +01:00
Frédéric Péters 5307c5d52d do not start if already running in tmux 2021-01-30 20:44:13 +01:00
Frédéric Péters b0d13c9439 remove all digits to get cluster name 2021-01-30 20:44:13 +01:00
Frédéric Péters 8ce27b32d5 do not try disabling ssh connection sharing
Whatever the command line options connection sharing configured in
~/.ssh/config stays somehow active, and cause errors.

Ansible has custom code to detect the situation and automatically
restart a SSH connection (see AnsibleControlPersistBrokenPipeError usage
in lib/ansible/plugins/connection/ssh.py, also relevant is bug#16731).

The only reliable fix is thus to change ~/.ssh/config to limit
connection sharing to apply to some hosts only.
2021-01-30 20:44:13 +01:00
Frédéric Péters adc884a972 add support for a --noinput flag 2021-01-30 20:44:13 +01:00
Frédéric Péters 46c83e0484 disable connection sharing as it proved unreliable 2021-01-30 20:44:13 +01:00
Frédéric Péters 5985587b4a offer choices when a command fails 2021-01-30 20:44:13 +01:00
Frédéric Péters 34883be7d5 execute actual ssh command in a fork, to get return code 2021-01-30 20:44:13 +01:00