Commit Graph

147 Commits

Author SHA1 Message Date
Tortue Torche
3d5ca94b9e Change version to 1.0.0-alpha.11 2020-01-17 12:56:02 +00:00
Tortue Torche
b8e210dace Add comment markers to delimit inputs, prints, actions and helpers sections of the script 2020-01-17 12:56:02 +00:00
Tortue Torche
32e1069d43 Move env_file_to_json next to other helper functions 2020-01-17 12:56:01 +00:00
Tortue Torche
804010c88d Enable -x flag in shell if PSU_TRACE is set 2020-01-17 12:56:01 +00:00
Tortue Torche
adeb5519e7 Add "Help" section to help 2020-01-17 12:56:01 +00:00
Tortue Torche
3957b6d8dd Update script header comment about it's benefits 2020-01-17 12:56:01 +00:00
Tortue Torche
506965c788 Several changes
- Merge --compose-file and --stack-file flags
- Add --env-file-base64 and --compose-file-base64 flags
- Update action aliases
2020-01-17 12:56:01 +00:00
Tortue Torche
ab1c30e3f1 Update action aliases usage notice 2020-01-17 12:56:01 +00:00
Tortue Torche
2bc1f20cba Extract actions table transform to transform_actions_table function 2020-01-17 12:56:01 +00:00
Tortue Torche
566fdfa657 Extract options table transform to transform_options_table function 2020-01-17 12:56:01 +00:00
Tortue Torche
5e74beaa05 Remove -n flag from echo in service tasks printing 2020-01-17 12:56:01 +00:00
Tortue Torche
7bc538aee9 Update PYTHONWARNINGS for Debian and Ubuntu 2020-01-17 12:56:01 +00:00
Tortue Torche
139ab770b1 Update verbose message for when the stack to be deleted does not exist 2020-01-17 12:56:01 +00:00
Tortue Torche
aeb5cccbea Remove -n flag from echo in healthy tasks printing 2020-01-17 12:56:01 +00:00
Tortue Torche
339772a9bb Add verbose message after linting about using the default psu Docker image 2020-01-17 12:56:01 +00:00
Tortue Torche
95c3ec548f Echo OK after linting only if current action is "lint" 2020-01-17 12:56:01 +00:00
Tortue Torche
7fe05a227d Change default --lint flag value to true 2020-01-17 12:56:01 +00:00
Tortue Torche
e9a12a54c3 Update --lint flag help 2020-01-17 12:56:01 +00:00
Tortue Torche
96fda89e24 Update --masked-variables flag help 2020-01-17 12:56:01 +00:00
Tortue Torche
82c34b7080 Fix typo in --sevice flag help 2020-01-17 12:56:01 +00:00
Tortue Torche
10750eb35f Change version to 0.2.0-alpha.20 2020-01-17 12:56:01 +00:00
Tortue Torche
69b22e5815 Add StackOverflow link to parallel requests TODO 2020-01-17 12:56:01 +00:00
Tortue Torche
c0a98d6505 Add --lint flag for the 'deploy' action and a 'lint' action to validate the Docker compose/stack file
For this (optional) new feature, the 'docker-compose' tool must be installed,
see: https://docs.docker.com/compose/install/
2020-01-17 12:56:01 +00:00
Tortue Torche
a494dcbb79 Update --masked-variables flag help 2020-01-17 12:56:01 +00:00
Tortue Torche
6733971dde Change version to 0.2.0-alpha.19 2020-01-17 12:56:01 +00:00
Tortue Torche
f702bcb032 Update --masked-variables flag help 2020-01-17 12:56:01 +00:00
Tortue Torche
a186b30e8f Add -t flag to timeout calls 2020-01-17 12:56:01 +00:00
Tortue Torche
43935fb3c6 Add "login" action 2020-01-17 12:56:01 +00:00
Tortue Torche
6b65ab626e Add --auth-token flag
This will avoid multiple login requests when using
psu in a CI tool.
2020-01-17 12:56:01 +00:00
Tortue Torche
e373965987 Rename AUTH_TOKEN to PORTAINER_AUTH_TOKEN 2020-01-17 12:56:01 +00:00
Tortue Torche
c502679056 Change version to 0.2.0-alpha.16 2020-01-17 12:56:01 +00:00
Tortue Torche
542e2149d5 Mask AUTH_TOKEN value 2020-01-17 12:56:01 +00:00
Tortue Torche
ad2f8affd8 Change --masked-variables flag default value to "false" 2020-01-17 12:56:01 +00:00
Tortue Torche
13d51a3b60 Change version to 0.2.0-alpha.15 2020-01-17 12:56:01 +00:00
Tortue Torche
f2da35e813 Rename 'system' action to 'system:info' 2020-01-17 12:56:01 +00:00
Tortue Torche
7b39a06913 Bring back --compose-file flag and make --stack-file flag an alias 2020-01-17 12:56:01 +00:00
Tortue Torche
01a110b161 Separate auth token from it's related JSON response 2020-01-17 12:56:01 +00:00
Tortue Torche
c615ef737f Enhance options printing 2020-01-17 12:56:01 +00:00
Tortue Torche
55b45769d3 Add sensible information masking through --masked-variables flag
In debug and/or verbose mode, the value of sensitive variables will be hidden,
useful to avoid leaking passwords or tokens in your logs.

Possible values: true|extended|false. Defaults to 'true'.
Useful when running 'psu' in a CI tool, to avoid leaking passwords or tokens
in the logs.
2020-01-17 12:56:01 +00:00
Tortue Torche
18827605c8 Change version to 0.2.0-alpha.10 2020-01-17 12:56:01 +00:00
Tortue Torche
ebe6e907c5 Update FIXME comments 2020-01-17 12:56:01 +00:00
Tortue Torche
60c2bd1dfd Add 'system' action to get Docker info of the Portainer instance 2020-01-17 12:56:01 +00:00
Tortue Torche
2d55a3638f Extract endpoint docker inspection to a function 2020-01-17 12:56:01 +00:00
Tortue Torche
e67a7b4440 Change version to 0.2.0-alpha.9 2020-01-17 12:56:01 +00:00
Tortue Torche
11c1b98d60 Add filter to skip services with replicas set to 0 2020-01-17 12:56:01 +00:00
Tortue Torche
8082eb7823 Extract services stack filter to a local variable 2020-01-17 12:56:01 +00:00
Tortue Torche
d4c11ec5eb Remove '--arg state "$state"' from tasks filter when $state is not set 2020-01-17 12:56:01 +00:00
Tortue Torche
50a5fa17ca Add PASSWORD and TOKEN variables hiding FIXMEs 2020-01-17 12:56:01 +00:00
Tortue Torche
52ed1a5538 Add --detect-job as an optional flag to status, tasks and tasks:healthy actions 2020-01-17 12:56:01 +00:00
Tortue Torche
617c17482d Update deprecation messages for --secure flag 2020-01-17 12:56:01 +00:00