-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
roles.py: script to replace Ansible Galaxy #5
Conversation
d333e6c
to
f467db2
Compare
f7a2140
to
6e7cb7d
Compare
494c404
to
cfb8e8c
Compare
|
|
Is it |
For my taste only DIRTY is a warning, others are INFO if not DEBUG. |
|
I've ran an install, but it doesn't look good:
|
@yakimant in what doesn't it doesn't look good? Yes, the warnings are there for debugging, I will switch it to debug level, but other than that, did it work or not? |
cfb8e8c
to
8732aa8
Compare
Yes, I mean the log level should be lower, thanks! |
I will continue testing it by using insted of PS I've put it to ~/bin and my PATH, changing in code:
|
Doesn't work with git + yubikey-fido ssh key + touch:
|
galaxy was stuck here with yubikey blinking:
So I had to touch it for every role. |
When role is missing - check is crashing:
|
00ce0ae
to
0877a85
Compare
3e8cc3a
to
476743a
Compare
I've fixed the issue in the last comment and a few others. It seems to be pretty stable, but I'd like to take a stab at fixing the issue with FIDO based auth with YubiKey. |
476743a
to
c750d19
Compare
I reproduced the issue (kind of).
This is a prompt for failing command:
And that's for clone:
|
Workaround for the issues is to use 1 worker for |
BTW, here is a discussion about not asking for touch on GitHub: |
d8c8bf0
to
02e4dd5
Compare
Usage: ``` usage: roles.py [-h] [-f FILTER] [-w WORKERS] [-r REQUIREMENTS] [-s ROLES_SYMLINK] [-l LOG_LEVEL] [-d] [-a] [-i | -c | -u] This tool managed Ansible roles as Git repositories. It is both faster and simpler than Ansible Galaxy. By default ~/.ansible/roles is symlinked to ~/work. Override it using --roles-symlink or ROLES_SYMLINK. Installation behavior: - If no version is specified newest is pulled. - If version is matching nothing is done. - If repo is dirty or detached nothing is done. - If version is newer user is notified. options: -h, --help show this help message and exit -f FILTER, --filter FILTER Filter role repo names. -w WORKERS, --workers WORKERS Max workers to run in parallel. -r REQUIREMENTS, --requirements REQUIREMENTS Location of requirements.yml file. -s ROLES_SYMLINK, --roles-symlink ROLES_SYMLINK Actual location of installed roles. -l LOG_LEVEL, --log-level LOG_LEVEL Logging level. -d, --fail-dirty Fail if repo is dirty. -a, --fail-detached Fail if repo has detached head. -i, --install Clone and update required roles. -c, --check Only check roles, no installing. -u, --update Update requirements with current commits. Examples: ./roles.py --install ./roles.py --check ./roles.py --update ``` Signed-off-by: Jakub Sokołowski <[email protected]>
02e4dd5
to
49df6d5
Compare
A few extra fixes I had to apply:
|
status-im/infra-template#5 Signed-off-by: Jakub Sokołowski <[email protected]>
status-im/infra-template#5 Signed-off-by: Jakub Sokołowski <[email protected]>
status-im/infra-template#5 Signed-off-by: Jakub Sokołowski <[email protected]>
status-im/infra-template#5 Signed-off-by: Jakub Sokołowski <[email protected]>
Introduced in: status-im/infra-template#5 Signed-off-by: Jakub Sokołowski <[email protected]>
Usage:
Examples: