chef / automate

Chef Automate provides a full suite of enterprise capabilities for maintaining continuous visibility into application, infrastructure, and security automation.
https://automate.chef.io/
Apache License 2.0
227 stars 113 forks source link

Tech debt for Chef Automate HA #5597

Open karunesh-tech opened 3 years ago

karunesh-tech commented 3 years ago

Description:

This epic will primarily focus on all tech debt items related to automate HA. We will add a tech-debt label as well to all the issues associated with this epic.

List of stories/items in their priority order along with the issue link

#################FOR GA#################

Other tech debt:

btm commented 2 years ago

HA specific command should not be visible in CLI on automate non-HA.

$ sudo chef-automate version
Version: 2
  CLI Build: 20211028055409
  Server Build: 20211102170523

$ sudo chef-automate --help | grep -i HA
  info                   InFo about automate HA
  init-config-ha         Initialize default config for HA
  provision-infra        Provison automate HA infra.
  secrets                set secrets to automate HA
  ssh                    Set Ssh env for automate HA.
  test                   Run automate HA smoke tests
  workspace              set workspace env for automate HA.
  1. Can/should these all be moved under a top level "HA" command?
    • sudo chef-automate ha info
    • sudo chef-automate ha test
    • etc
  2. Fix the descriptions
    • capitalize the first letter of each description, e.g. "Set secrets..."
    • capitalize Automate everywhere
    • remove the trailing period
    • Fix "InFo" to Info
    • Fix typo in Provison to Provision
  3. do not display these commands if automate-cluster-ctl is not installed / check for dependencies
    
    $ sudo chef-automate info
    Automate HA info
    CommandExecutionError: An issue occurred when running an executable command: please refer

This command will be used to get information of all the components deployed for Automate HA . Usage: chef-automate info : exec: "automate-cluster-ctl": executable file not found in $PATH


4. should 'info' be merged into 'status'? can status simply show HA information if we're in an HA mode rather than adding a similar command?
5. should 'init-config-ha' be merged into 'init-config' ? can we just have `sudo chef-automate init-config --ha aws` ?