Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
Merge pull request #50 from hpcloud/marky-release-name
Browse files Browse the repository at this point in the history
HCF-329: Generate spec store with BOSH releases as directories.
  • Loading branch information
aarondl committed Nov 6, 2015
2 parents fc5f3da + 646fe1b commit 0a45219
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ The following configuration stores are required:
- The descriptions for all keys: `/<prefix>/descriptions/<key-path>/`

- Default sets
- The default values from the job specs, per job: `/<prefix>/spec/R-<release-name>-J-<job-name>/<key-path>/`
- The default values from the job specs, per job: `/<prefix>/spec/<release-name>/<job-name>/<key-path>/`
- Opinions retrieved from generated manifest files: `/<prefix>/opinions/<key-path>/`

- User sets
Expand Down
2 changes: 1 addition & 1 deletion config-store/config_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func (c *Builder) writeSpecConfigs(release *model.Release, confWriter configWrit

for _, job := range release.Jobs {
for _, property := range job.Properties {
key, err := c.boshKeyToConsulPath(fmt.Sprintf("R-%s-J-%s.%s", release.Name, job.Name, property.Name), SpecStore)
key, err := c.boshKeyToConsulPath(fmt.Sprintf("%s.%s.%s", release.Name, job.Name, property.Name), SpecStore)
if err != nil {
return err
}
Expand Down
7 changes: 5 additions & 2 deletions scripts/dockerfiles/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ ip_address=`/bin/hostname -i`
--consul "${consul_address}" \
--prefix "${config_store_prefix}" \
--role "{{$role.Name}}" \
--job "R-{{$job.Release.Name}}-J-{{$job.Name}}" \
--release "{{$job.Release.Name}}" \
--job "{{$job.Name}}" \
"/var/vcap/jobs-src/{{ $job.Name }}/templates/{{ $template.SourcePath }}"
# =====================================================
{{ end }}
Expand All @@ -57,7 +58,8 @@ ip_address=`/bin/hostname -i`
--consul "${consul_address}" \
--prefix "${config_store_prefix}" \
--role "{{$role.Name}}" \
--job "R-{{$job.Release.Name}}-J-{{$job.Name}}" \
--release "{{$job.Release.Name}}" \
--job "{{$job.Name}}" \
"/var/vcap/jobs-src/{{ $job.Name }}/monit"
# =====================================================
{{ end }}
Expand All @@ -71,6 +73,7 @@ ip_address=`/bin/hostname -i`
--consul "${consul_address}" \
--prefix "${config_store_prefix}" \
--role "{{$role.Name}}" \
--release "{{with $l := index $role.JobNameList 0}}{{$l.ReleaseName}}{{end}}" \
--job "hcf-monit-master" \
"/opt/hcf/monitrc.erb"
chmod 0600 /etc/monitrc
Expand Down

0 comments on commit 0a45219

Please sign in to comment.