Skip to content

beliven-it/opsi

Repository files navigation







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:

  • GitLab for create, setup the repos.
  • 1Password for create groups and templates.
  • Postmark for 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:

gitlab:
  api_url: "https://company.gitlab.com/api/v4"
  token: "<GITLAB_TOKEN>"
  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_TOKEN is an access token. You can generate in your gitlab settings here. Make sure to select the api scope in order to work.
  • ONEPASSWORD_ADDRESS the 1password address of your tenant. Like: my-tenant.1password.com













License

Licensed under MIT