vmware-archive / omen

omen cli tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OMEN

Installation

From your $GOPATH dir run go get github.com/pivotal-cloudops/omen

Dependencies aren't committed to this repo, but are expected to be fetched with dep.

Usage

The tool uses OPSMAN_HOSTNAME, OPSMAN_USER, and OPSMAN_PASSWORD environment variables.

Grab Ops Manager diagnostic report with:

omen diagnostics

Write out staged tiles report with:

omen staged-tiles -o outputDir

This command will write out the config of all tiles (including BOSH).

Grab the manifest report with:

omen manifests

Apply changes with:

omen apply-changes

Toggle product errands

The toggle-errands command requires the --errand-type option, which currently only accepts post-deploy as its value; and the target errand state --action which can be one of enable, disable or default.

Optionally, a comma-delimited list of product guids can be supplied as a value for the --products option.

Some example calls:

# Enable post-deploy errands for p-bosh-e43806ad5d741db12345
$ omen toggle-errands --errand-type post-deploy --action enable --products p-bosh-e43806ad5d741db12345

# Reset post-deploy errands for all products to their default settings
$ omen toggle-errands --errand-type post-deploy --action default

Running tests

  • The .envrc sources the enemytest opsmanager credentials from the secrets-cf-cloudops-sandbox repo. Make sure you have that checked out in your workspace.
  • Run direnv allow
  • Run ginkgo -r in the root of this repo.

About

omen cli tool

License:BSD 2-Clause "Simplified" License


Languages

Language:Go 98.6%Language:Makefile 1.0%Language:Shell 0.3%