Skip to content

Commit

Permalink
Add cf-cli job to errand vms
Browse files Browse the repository at this point in the history
  • Loading branch information
keshto committed May 16, 2019
1 parent 5d2ade2 commit b646444
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions tile_generator/templates/jobs/delete-all.sh.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash

export PATH="/var/vcap/packages/cf-cli-6-linux/bin:$PATH"
export CF=`which cf`

function cf() {
Expand Down
1 change: 1 addition & 0 deletions tile_generator/templates/jobs/deploy-all.sh.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash

export PATH="/var/vcap/packages/cf-cli-6-linux/bin:$PATH"
export CF=`which cf`

function cf() {
Expand Down
4 changes: 4 additions & 0 deletions tile_generator/test_metadata_expected_output.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1652,6 +1652,8 @@ job_types:
from: redis
name: deploy-all
release: test-tile
- name: cf-cli-6-linux
release: cf-cli
- dynamic_ip: 1
errand: true
instance_definition:
Expand Down Expand Up @@ -1819,6 +1821,8 @@ job_types:
from: redis
name: delete-all
release: test-tile
- name: cf-cli-6-linux
release: cf-cli


runtime_configs:
Expand Down
5 changes: 5 additions & 0 deletions tile_generator/tile_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,11 @@ def _build_job_types(self):
],
"manifest": literal_unicode(template_helper.render_yaml(job.get('manifest')))
}
if job['name'] == 'deploy-all' or job['name'] == 'delete-all':
job_type['templates'].append({
"release": 'cf-cli',
"name": 'cf-cli-6-linux',
})
if job.get('run_post_deploy_errand_default'):
job_type['run_post_deploy_errand_default'] = job.get('run_post_deploy_errand_default')
if job.get('run_pre_delete_errand_default'):
Expand Down

0 comments on commit b646444

Please sign in to comment.