https://github.com/devopsmariocom/virgo-upgrade
Simple python script to upgrade requirements.yml file
https://github.com/devopsmariocom/virgo-upgrade
Last synced: 4 months ago
JSON representation
Simple python script to upgrade requirements.yml file
- Host: GitHub
- URL: https://github.com/devopsmariocom/virgo-upgrade
- Owner: devopsmariocom
- License: mit
- Created: 2018-11-27T22:10:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-01-10T12:30:09.000Z (about 6 years ago)
- Last Synced: 2025-02-25T00:07:20.303Z (about 1 year ago)
- Language: Python
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Virgo upgrade
Simple python script to upgrade requirements.yml file
Bundled in docker see https://cloud.docker.com/u/elmariofredo/repository/docker/elmariofredo/virgo-upgrade
## Usage
### Check if there are outdated roles
$ docker run -it -v $HOME/.ssh/id_rsa:/root/.ssh/id_rsa -v $PWD:/ansible elmariofredo/virgo:v2.0 /upgrade.py --check
$ echo $?
1
### Update outdated roles
$ docker run -it -v $HOME/.ssh/id_rsa:/root/.ssh/id_rsa -v $PWD:/ansible elmariofredo/virgo:v2.0 /upgrade.py
Writing new role versions to ./requirements.yml
$ echo $?
0
## Options
$ ./upgrade.py -h
usage: upgrade.py [-h] [-f FILE] [--check]
Check/Upgrade requirements.yml file
optional arguments:
-h, --help show this help message and exit
-f FILE path to requirements.yml file
--check Fail on outdated roles