Skip to content

Instantly share code, notes, and snippets.

@shinji62
Created March 22, 2018 07:46
Show Gist options
  • Save shinji62/9ab6cfdae66c1ad9e5ad16eee957647d to your computer and use it in GitHub Desktop.
Save shinji62/9ab6cfdae66c1ad9e5ad16eee957647d to your computer and use it in GitHub Desktop.
---
jobs:
- name: stop
serial: true
plan:
- task: stop
config:
platform: linux
image_resource:
type: docker-image
source: {repository: bosh/cli2}
params:
BOSH_CLIENT: {{client_id_opsman}}
BOSH_CLIENT_SECRET: {{client_secret_opsman}}
BOSH_CA_CERT: {{bosh_cert}}
BOSH_ENVIRONMENT: {{bosh_ip}}
run:
path: bash
args:
- -c
- |
bosh update-resurrection off
bosh -n stop -d $(bosh deployments | grep ubuntu | awk '{print $1}' | grep cf-) diego_brain --hard
bosh -n stop -d $(bosh deployments | grep ubuntu | awk '{print $1}' | grep cf-) --hard
- name: start
serial: true
plan:
- task: start
config:
platform: linux
image_resource:
type: docker-image
source: {repository: bosh/cli2}
params:
BOSH_CLIENT: {{client_id_opsman}}
BOSH_CLIENT_SECRET: {{client_secret_opsman}}
BOSH_CA_CERT: {{bosh_cert}}
BOSH_ENVIRONMENT: {{bosh_ip}}
run:
path: bash
args:
- -c
- |
bosh update-resurrection on
bosh -n start consul_server -d $(bosh deployments | grep ubuntu | awk '{print $1}' | grep cf-)
bosh -n start mysql -d $(bosh deployments | grep ubuntu | awk '{print $1}' | grep cf-)
bosh -n start -d $(bosh deployments | grep ubuntu | awk '{print $1}' | grep cf-)
bosh -n -d $(bosh deployments | grep ubuntu | awk '{print $1}' | grep cf-) run-errand smoke_tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment