Commit Graph

15 Commits

Author SHA1 Message Date
anyushevai
35309d13d0 add warning & abort if tljh-config is called as non-root user 2018-10-21 23:55:47 +03:00
Min RK
5df106fa82 move config migration to its own file 2018-08-31 12:17:16 +02:00
Min RK
37ad207be9 centralize logging initialization
so it can be shared across modules
2018-08-31 12:00:42 +02:00
Min RK
2bf23f0b28 put config in a single config directory
instead of top-level files

- ensure directory is private
- both tljh and jupyterhub config go in there
- move old config.yaml to new location at install time
2018-08-28 14:15:45 +02:00
Matthias Bussonnier
8650aacd57 Fix some typos
Using `codespell -q3 -w` that I just discovered.

(https://github.com/codespell-project/codespell, pip install codespell)
2018-08-27 17:58:26 -07:00
Chris Holdgraf
f8526c1a2f fixing copybutton and maybe the integration bug 2018-08-10 17:26:35 -07:00
Min RK
a4427068cc tests and fixes in tljh-config
- add remove-item to cli
- fix setting non-string values (int, bool, float)
- show help when no action is given
- test coverage for cli
2018-07-31 13:25:30 +02:00
Min RK
c6654aea08 avoid circular imports 2018-07-31 12:05:47 +02:00
Min RK
2760e1adcd consolidate paths in config.py 2018-07-31 12:04:40 +02:00
yuvipanda
75ffa91c85 Fix traefik config reload
Simply reloading traefik is not enough - we need to actually
write the new traefik.toml file.
2018-07-30 23:59:33 -07:00
Min RK
7f07bfbec4 reload traefik on tljh-config reload proxy 2018-07-30 15:04:37 +02:00
yuvipanda
7e9e2d375c Add tljh-config remove-item to remove an item from a list 2018-07-28 11:57:11 -07:00
yuvipanda
f0c944aeb8 Add code + tests for adding items to a list 2018-07-28 11:14:53 -07:00
yuvipanda
0d0dbc828c Fix typo in tljh-config 2018-07-27 22:57:19 -07:00
yuvipanda
70785f9fd3 Add tljh-config command
We do not want users to hand-edit YAML files. This has been a
major source of bugs and confusion for users in z2jh. Doing so
in a terminal text editor makes it even worse.

This lets users type commands directly to modify config.yaml file
rather than edit files directly. This makes it a lot less error
prone and user friendly.

Advanced users can still edit config.yaml manually.

Fixes #38
2018-07-27 21:36:29 -07:00