Skip to content

Features

ssh machines

machine1: #(1)
  ssh: root@X.X.X.X #(2)
  tags: #(3)
    - foo
    - foo1
  message_rich: hello #(5)
otherMachine1: {ssh: "root@X.X.X.X", tags:["foo1"]}
myGroup: # (4)
    otherotherMachine1: {ssh: "root@X.X.X.X", tags:["foo1"]}
  1. name_of_element
    type: key

    obligatory

  2. user@host
    type: string
    you can add same extra argument of open ssh command like root@x.X.X.X -t sudo ssh user@X.X.X.X -t

    obligatory

  3. list of tags
    type: array

    facultatif

  4. name_of_group
    type: dict

    must contain sub group or any elements

    facultatif

  5. message
    type: string

    message before ssh session, support riche syntax like ":warning:[bold red] hello"

    facultatif

include other starterTree config files

Local Files

example:
  file_content_relative: subDir/anotherConf.yml # read an other config file on relative path

TO DO

TO DO

External Files

example:
  web_content: "https://raw.githubusercontent.com/thomas10-10/starterTree/master/configExample/config.yml"
example:
  github_api_content_prompt_token: https://api.github.com/repos/username/example/contents/perso.yml
example:
  gitlab_api_content_prompt_token: "https://myGitlab/api/v4/projects/35/wikis/example_config.yml"

Encrypted files

it's support encrypted files with gnu, if extension file is .asc, it will prompt your password to decrypt file

pull mofifs

if external files is modified, use st> example --pull to pull modifs (it will erase your local config file example.yml in ~/.starterTree )

manage kubernetes config

example:
  kubeconfig_file: "~/.kube/kindLocal"

Encrypted files

it's support encrypted files with gnu, if extension file is .asc, it will prompt your password to decrypt file

TO DO

TO DO

web_site:
    www: "www.google.fr"

command

shutdown_pc:
    cmd: "shutdown"

with a prompt for dangerous command

shutdown_pc:
    cmdP: "shutdown"

search mod

execute ssh command on many server

Back to top