shantanoo-desai / komponist

A Composer for your favorite IoT/ IIoT container stacks with Ansible + Jinja2 + Docker Compose v2
GNU Affero General Public License v3.0
25 stars 2 forks source link

[TUI] Bash Script to generate config/creds YAML file based on User Selection #72

Closed shantanoo-desai closed 1 year ago

shantanoo-desai commented 1 year ago

Description

This bash script will use the following tools:

yq will be used to generate the a config.yml and cred.yml file via the user-defined inputs through gum Components.

Interface Design

  1. Ask the user for project_name. Default is komponist
  2. Ask the user for deploy_dir. Default is ./deploy
  3. Ask user if they wish to set a user id. Skippable
  4. Ask user whether to data_persistence. Default is false
  5. Let user choose which services to include a. Traefik Proxy is included as default b. Depending on selected services generate / update the config.yml, creds.yml

The creds.yml should have the required YAML structure but the values should be placeholders.