All-in-one CLI for Beliven Ops daily usage!
The aim of this tool is to group all the daily and most used commands for OPS activities into a single tool.
This tool interact with some entities:
GitLabfor create, setup the repos.1Passwordfor create groups and templates.Postmarkfor interact with the servers linked.Hostsfor interact with ours hosts
## Configuration
Opsi automatically create the configuration file if not exist
in the system in `~/.config/opsi/config.yml`
The configuration file follow this schema:
```yml
gitlab:
api_url: "https://company.gitlab.com/api/v4"
token: "<GITLAB_TOKEN>"
exclusions:
cleanup_policies: [<PROJECT_IDS_LIST>]
group_settings: [<GROUP_IDS_LIST>]
mirror:
api_url: "https://gitlab.com/api/v4"
group_id: "<GITLAB_MIRROR_GROUP_ID>"
group_path: "gitlab.com/<GROUP_NAME>"
username: "<GITLAB_MIRROR_USERNAME>"
token: "<GITLAB_MIRROR_TOKEN>"
onepassword:
address: "<ONEPASSWORD_ADDRESS>"
Some notes about these settings:
GITLAB_TOKENis an access token. You can generate in your gitlab settings here. Make sure to select theapiandadmin_modescope in order to work.GITLAB_MIRROR_TOKENis an access token. You can generate in your gitlab settings here. Make sure to select theapiscope in order to work.ONEPASSWORD_ADDRESSthe 1password address of your tenant. Like:my-tenant.1password.com
Licensed under MIT