providers: # Provider: Github Config # ================== github: services: local.github: desc: Github client input: gh_token: "MISSING_TOKEN" commands: shell_enable: desc: Enable git identity cmd: | export GH_TOKEN='{{gh_token}}' export GH_REPO='{{ident}}' shell_disable: desc: Disable git identity cmd: | unset GH_TOKEN GH_REPO resources_def: account.github: desc: A github account service.local.github: desc: Configure gh client uses: - account.github:{user} resources: # account.github: # desc: Github account # input: # gh_token: TOKEN789456123 service.local.github: enabled: true uses: - account.github:{user} # Provider: Gitea Config # ================== gitea: services: local.gitea: desc: Gitea client input: gitea_server_url: "MyGiteaServer.com" commands: shell_enable: desc: Enable git identity cmd: | export GITEA_SERVER_URL='{{gitea_server_url}}' export GITEA_LOGIN='{{email}}' shell_disable: desc: Disable git identity cmd: | unset GITEA_SERVER_URL GITEA_LOGIN resources_def: account.gitea: desc: A gitea account service.local.gitea: desc: Configure gitea client needs: - account.gitea:{user} resources: # account.gitea: # desc: Gitea account # input: # gh_token: TOKEN789456123 service.local.gitea: enabled: true uses: - account.gitea:{user} # Provider: Minio Config # ================== minio: services: local.minio: desc: Minio client input: minio_url: "minio.org" minio_access: ident minio_secret: secret commands: shell_enable: desc: Enable minio alias cmd: | export MINIO_ACCESS_KEY={{minio_access}} export MINIO_SECRET_KEY={{minio_secret}} # cmd_FUTURE: | # $ export MINIO_ACCESS_KEY=$(cat /dev/urandom | LC_CTYPE=C tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) # # this one is actually a secret, so careful # $ export MINIO_SECRET_KEY=$(cat /dev/urandom | LC_CTYPE=C tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) shell_disable: desc: Disable minio alias cmd: | unset MINIO_ACCESS_KEY MINIO_SECRET_KEY minio new alias: desc: Create alias cmd: | mc alias set {{ident}} {{api_url}} {{minio_user}} {{minio_password}} minio delete alias: desc: Remove alias cmd: | mc alias rm {{ident}} resources_def: account.minio: desc: A minio account service.local.minio: desc: Configure minio client uses: - account.minio:{user} resources: # account.minio: # desc: Minio account # input: # gh_token: TOKEN789456123 service.local.minio: enabled: true uses: - account.minio:{user} # Other tools # libvirt-url # terraform_endpoint # openstack-endpoint # minio aliases