{"id":26059689,"url":"https://github.com/orange-cloudfoundry/bosh-commander","last_synced_at":"2026-04-21T19:33:04.386Z","repository":{"id":57588886,"uuid":"96779054","full_name":"orange-cloudfoundry/bosh-commander","owner":"orange-cloudfoundry","description":"Run a set of commands on multiple vms found by deployments, jobs name and bosh directors.","archived":false,"fork":false,"pushed_at":"2017-09-20T09:32:07.000Z","size":807,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-06-20T11:59:30.729Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orange-cloudfoundry.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-10T13:12:36.000Z","updated_at":"2017-09-19T20:29:18.000Z","dependencies_parsed_at":"2022-09-26T19:42:55.676Z","dependency_job_id":null,"html_url":"https://github.com/orange-cloudfoundry/bosh-commander","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orange-cloudfoundry%2Fbosh-commander","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orange-cloudfoundry%2Fbosh-commander/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orange-cloudfoundry%2Fbosh-commander/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orange-cloudfoundry%2Fbosh-commander/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orange-cloudfoundry","download_url":"https://codeload.github.com/orange-cloudfoundry/bosh-commander/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242555569,"owners_count":20148727,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-08T13:27:43.278Z","updated_at":"2026-04-21T19:32:59.339Z","avatar_url":"https://github.com/orange-cloudfoundry.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bosh-commander\n\nRun a set of commands on multiple vms found by deployments, jobs name and bosh directors.\n\n## Why ?\n\nThis was primary created to be able to fix `consul` and `etcd` clusters on a cloud foundry \ndeployment when cluster wasn't shutdown gracefully.\n\n## Installation\n\n### On *nix system\n\nYou can install this via the command-line with either `curl` or `wget`.\n\n#### via curl\n\n```bash\n$ sh -c \"$(curl -fsSL https://raw.github.com/orange-cloudfoundry/bosh-commander/master/bin/install.sh)\"\n```\n\n#### via wget\n\n```bash\n$ sh -c \"$(wget https://raw.github.com/orange-cloudfoundry/bosh-commander/master/bin/install.sh -O -)\"\n```\n\n### On windows\n\nYou can install it by downloading the `.exe` corresponding to your cpu from releases page: https://github.com/orange-cloudfoundry/bosh-commander/releases .\nAlternatively, if you have terminal interpreting shell you can also use command line script above, it will download file in your current working dir.\n\n### From go command line\n\nSimply run in terminal:\n\n```bash\n$ go get github.com/orange-cloudfoundry/bosh-commander\n```\n\n## Usage\n\nYou will need to set available directors by creating a `.bosh_commander.yml` config file in your home directory:\n\n```yml\nlog_level: INFO # Can be also ERROR, WARN or DEBUG\nbosh_directors:\n- name: mybosh\n  director_url: https://127.0.0.1:25555\n  username: myboshusername\n  password: myboshpassword\n  uaa_url: https://127.0.0.1:8443 # if you use use an uaa url, it will use uaa to authenticate user\n  ca_cert_file: path/to/pem.pem\n  client_id: ~ # if you use a special client for uaa you should set it\n  client_secret: ~ # if you use a special client for uaa you should set it\n```\n\nYou will now have to create a script file to perform commands on your vm following this schema:\n\n```yml\njob_match: myjob # this is the name of your job, it can be a regex\nsudo: true # to run your commands in privilegied mode\ndeployments: # This is optionnal, if set it will looking only deployments which match regex given\n- mydeployment.*\nscript: # It will be the set of command you want to run on your vms, if command fail it will continue to perform the next command\n- echo \"my super command\"\nafter_all: # this is optionnal, this is a set of commands to run after all commands in script have been ran in all vms\n- echo \"this is ran after all vms ran scripts commands\"\n```\n\nYou can found useful scripts in [/scripts](/scripts).\n\nYou can now run `bosh-commander run -f myscript.yml`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forange-cloudfoundry%2Fbosh-commander","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forange-cloudfoundry%2Fbosh-commander","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forange-cloudfoundry%2Fbosh-commander/lists"}