https://github.com/dpb587/bosh-concourse-tasks
Execute BOSH tasks via Concourse tasks.
https://github.com/dpb587/bosh-concourse-tasks
Last synced: 12 months ago
JSON representation
Execute BOSH tasks via Concourse tasks.
- Host: GitHub
- URL: https://github.com/dpb587/bosh-concourse-tasks
- Owner: dpb587
- License: other
- Created: 2017-04-01T17:58:56.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-01T18:48:52.000Z (about 9 years ago)
- Last Synced: 2025-04-05T03:41:46.707Z (about 1 year ago)
- Language: Go
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bosh-concourse-tasks
Execute [BOSH](https://bosh.io/) tasks via [Concourse](https://concourse.ci/) tasks.
## Director Tasks
Requires `client`, `client_secret`, and `environment`; and accepts `ca_cert` parameters.
* `clean-up.yml`
* `clean-up-all.yml`
### Deployment Tasks
Also requires `deployment` parameter.
* `run-errand.yml` (requires `errand` parameter)
#### Instance Group / ID Tasks
Also accepts `instance_group` and `id` parameters.
* `recreate.yml`
* `ssh.yml` (requires `command` parameter)
* `start.yml`
* `stop.yml`
* `stop-hard.yml`
* `take-snapshot.yml`
## Example
```yaml
meta:
bosh_environment: &bosh_environment
ca_cert: ((bosh_ca_cert))
client: ((bosh_client))
client_secret: ((bosh_client_secret))
environment: ((bosh_environment))
bosh_deployment: &bosh_deployment
<<: *bosh_environment
deployment: legacy
jobs:
- name: start
plan:
- get: weekday-start
trigger: true
- get: bosh-concourse-tasks
- task: start-database
file: bosh-concourse-tasks/start.yml
params:
<<: *bosh_deployment
instance_group: database
- task: start-app-server
file: bosh-concourse-tasks/start.yml
params:
<<: *bosh_deployment
instance_group: app-server
serial_groups:
- restart
- name: stop
plan:
- get: weekday-stop
trigger: true
- get: bosh-concourse-tasks
- task: stop-database
file: bosh-concourse-tasks/stop.yml
params:
<<: *bosh_deployment
instance_group: database
- task: stop-app-server
file: bosh-concourse-tasks/stop.yml
params:
<<: *bosh_deployment
instance_group: app-server
serial_groups:
- restart
- name: clean-up
plan:
- get: daily
trigger: true
- get: bosh-concourse-tasks
- task: clean-up
file: bosh-concourse-tasks/clean-up-all.yml
params: *bosh_environment
resources:
- name: bosh-concourse-tasks
type: git
source:
uri: https://github.com/dpb587/bosh-concourse-tasks.git
- name: daily
type: timer
source:
interval: "24h"
- name: weekday-start
type: timer
source:
location: America/Denver
start: "07:00"
stop: "08:00"
days: [ Monday, Tuesday, Wednesday, Thursday, Friday ]
- name: weekday-stop
type: timer
source:
location: America/Denver
start: "20:00"
stop: "21:00"
days: [ Monday, Tuesday, Wednesday, Thursday, Friday ]
```
## License
[MIT License](LICENSE)