Skip to content

Commit

Permalink
micro jobs need cpi name appended
Browse files Browse the repository at this point in the history
- relies on change in stemcell builder and bosh/package_compiler
  to pick the right cpi

Change-Id: If88b63a690f40cad66eb8daa027437816dd42082
  • Loading branch information
pmenglund committed Jun 25, 2012
1 parent 153fd04 commit bc80728
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
9 changes: 3 additions & 6 deletions .gitignore
@@ -1,10 +1,7 @@
.idea
jobs/micro/monit
jobs/micro/spec
jobs/micro/templates/
jobs/micro_aws/monit
jobs/micro_aws/spec
jobs/micro_aws/templates/
jobs/micro_*/monit
jobs/micro_*/spec
jobs/micro_*/templates/
config/dev.yml
config/private.yml
releases/*.tgz
Expand Down
7 changes: 4 additions & 3 deletions jobs/micro/prepare → jobs/micro_vsphere/prepare
Expand Up @@ -7,6 +7,7 @@ require 'erb'
TEMPLATES = "templates"
OVERRIDE = "override"

MICRO="micro_vsphere"

def job_dir(job)
File.expand_path("../../#{job}", __FILE__)
Expand All @@ -16,7 +17,7 @@ end
jobs = %w[ nats redis postgres blobstore director health_monitor ]

spec = {
"name" => "micro",
"name" => MICRO,
"templates" => {
"post_install" => "bin/post_install"
},
Expand Down Expand Up @@ -91,10 +92,10 @@ for DIR in /var/vcap/jobs /var/vcap/data/jobs; do
cd $DIR
for JOB in <%= jobs.join(" ") %>; do
mkdir -p ${JOB}/bin ${JOB}/config
for FILE in micro/$JOB/bin/*; do
for FILE in <%= MICRO %>/$JOB/bin/*; do
ln -nsf ../../$FILE $JOB/bin
done
for FILE in micro/$JOB/config/*; do
for FILE in <%= MICRO %>/$JOB/config/*; do
ln -nsf ../../$FILE $JOB/config
done
done
Expand Down

0 comments on commit bc80728

Please sign in to comment.